toolbar제작시 구글링을 해보니 다들 v7을 사용해서 만들던데 저는 똑같이 따라하면 첫번째 코드가 빨간색으로 뜹니다
아래 코드는 빌드 코드 인데 구글링으로 여러번 바꿔보아도 계속 빨간색이 뜨는데 어떻게 수정해야 할까요?
버전들도 필요한거같아서 전체 코드를 올립니다!
<android.support.v7.widget.Toolbar
apply plugin: 'com.android.application'
android {
compileSdkVersion 30
buildToolsVersion "30.0.1"
defaultConfig {
applicationId "com.example.y_mise"
minSdkVersion 16
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}