設定画面の作成をしていましたが
うまくいかず、一旦作成をやめて
作りかけていたコードたちを消しました。
前に作っていたところまで戻ったのですが
エラーが出てどうにもいじれなくなってしまいました。
解決方法がどこを調べてもわかりません
コードはこちらです
error: style attribute 'attr/colorBackground (aka jp.aftech.myapplication:attr/colorBackground)' not found. Message{kind=ERROR, text=error: style attribute 'attr/colorBackground (aka jp.aftech.myapplication:attr/colorBackground)' not found., sources=[/Users/shoichi/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/2d3e2ed35fddb328f4a6d0df363c67ad/res/values/values.xml], original message=, tool name=Optional.of(AAPT)}
写真も確認お願いいたします
java 【build.gradle】 apply plugin: 'com.android.application' android { compileSdkVersion 27 defaultConfig { applicationId "jp.-----.myapplication" minSdkVersion 21 targetSdkVersion 27 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:27.1.1' implementation 'com.android.support:design:27.1.1' implementation 'com.android.support.constraint:constraint-layout:1.1.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' }
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。