あぷりのバージョンは、4.03の実機を使っているため、4.03です。
File/ProjectStructre/+/AndroidLibraryとすると、
java
1Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner.Underlined'. 2Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner.Underlined'. 3Error:(4, 21) No resource found that matches the given name: attr 'android:textAlignment'. 4Error:(8, 21) No resource found that matches the given name: attr 'android:paddingEnd'. 5
//src build.gradle
java
1apply plugin: 'com.android.application' 2 3android { 4 compileSdkVersion 15 5 buildToolsVersion "25.0.2" 6 defaultConfig { 7 applicationId "com.example.android.sample.myapplication" 8 minSdkVersion 15 9 targetSdkVersion 25 10 versionCode 1 11 versionName "1.0" 12 testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 13 } 14 buildTypes { 15 release { 16 minifyEnabled false 17 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 } 19 } 20} 21 22dependencies { 23 compile fileTree(include: ['*.jar'], dir: 'libs') 24 androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 25 exclude group: 'com.android.support', module: 'support-annotations' 26 }) 27 compile 'com.android.support:appcompat-v7:25.3.0' 28 compile 'com.android.support.constraint:constraint-layout:1.0.2' 29 testCompile 'junit:junit:4.12' 30} 31
//build.gradle
java
1// Top-level build file where you can add configuration options common to all sub-projects/modules. 2 3buildscript { 4 repositories { 5 jcenter() 6 } 7 dependencies { 8 classpath 'com.android.tools.build:gradle:2.3.0' 9 10 // NOTE: Do not place your application dependencies here; they belong 11 // in the individual module build.gradle files 12 } 13} 14 15allprojects { 16 repositories { 17 jcenter() 18 } 19} 20 21task clean(type: Delete) { 22 delete rootProject.buildDir 23} 24
このようなエラー出ます。
なぜなのでしょうか?
教えていただけないでしょうか?
どうぞよろしくお願いします。
回答1件
あなたの回答
tips
プレビュー