問題描述
<塊引用>警告:android.dexOptions.incremental
屬性已棄用它對構建過程沒有影響./home/midhilaj/.gradle/caches/transforms-1/files-1.1/appcompat-v7-26.1.0.aar/be3106efb0df111fe5a3f7b356dd070b/res/values/values.xml錯誤:(246, 5) 錯誤:資源 android:attr/fontVariationSettings 沒有成立./project/bkup/7_march_2018/hyshoper/milla/build/intermediates/incremental/mergeDebugAndroidTestResources/merged.dir/values/values.xml錯誤:(246, 5) 錯誤:找不到資源 android:attr/ttcIndex.錯誤:(269) 資源 android:attr/ttcIndex 未找到.錯誤:(269)資源 android:attr/fontVariationSettings 未找到.錯誤:java.util.concurrent.ExecutionException:java.util.concurrent.ExecutionException:com.android.tools.aapt2.Aapt2Exception:AAPT2 錯誤:檢查日志詳細信息錯誤:鏈接引用失敗.錯誤:java.util.concurrent.ExecutionException:com.android.tools.aapt2.Aapt2Exception:AAPT2 錯誤:檢查日志詳細信息錯誤:com.android.tools.aapt2.Aapt2Exception:AAPT2錯誤:檢查日志以獲取詳細信息錯誤:任務執(zhí)行失敗':milla:processDebugAndroidTestResources'.
未能執(zhí)行 aapt 信息:9 個錯誤信息:BUILD FAILED in 2s 信息:1 個警告信息:查看控制臺中的完整輸出
如何解決這個問題?我的依賴項
依賴項{編譯文件樹(包括:['*.jar'],目錄:'libs')androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {排除組:'com.android.support',模塊:'support-annotations'})編譯'de.hdodenhof:circleimageview:2.2.0'編譯('com.alibaba.android:ultraviewpager:1.0.6.1@aar'){傳遞=真}編譯('org.apache.httpcomponents:httpmime:4.3.6'){排除模塊:'httpclient'}編譯'com.synnapps:carouselview:0.1.4'編譯'com.sun.mail:android-mail:1.5.5'編譯'com.sun.mail:android-activation:1.5.5'實施 'com.muddzdev:styleabletoast:2.0.2'編譯'javax.annotation:javax.annotation-api:1.2'編譯'me.grantland:autofittextview:0.2.+'//基礎庫//滑塊編譯'com.ss.bannerslider:bannerslider:1.8.0'//無檢查 GradleCompatible編譯'jp.wasabeef:recyclerview-animators:2.2.7'編譯'com.android.support:multidex:1.0.1'編譯'com.squareup.picasso:picasso:2.5.2'編譯'com.google.code.gson:gson:2.6.2'編譯'com.github.satyan:sugar:1.4'編譯'com.android.support:multidex:1.0.1'編譯'com.squareup.picasso:picasso:2.5.2'編譯'com.android.support:percent:26.1.0'編譯'com.google.code.gson:gson:2.6.2'編譯'com.github.satyan:sugar:1.4'編譯'jp.wasabeef:recyclerview-animators:2.2.6'編譯'pl.droidsonroids.gif:android-gif-drawable:1.1.+'編譯'com.afollestad.material-dialogs:core:0.9.4.2'編譯'com.google.android.gms:play-services:9.8.0'編譯'com.google.android.gms:play-services-auth:9.8.0'編譯'com.google.android.gms:play-services-location:9.8.0'編譯'com.google.firebase:firebase-core:9.8.0'編譯'com.google.firebase:firebase-auth:9.8.0'編譯'com.google.firebase:firebase-database:9.8.0'編譯'com.google.firebase:firebase-config:9.8.0'編譯 'com.google.firebase:firebase-crash:9.8.0'編譯 'com.google.firebase:firebase-invites:9.8.0'編譯'com.google.firebase:firebase-storage:9.8.0'編譯'cn.pedant.sweetalert:library:1.3'編譯'at.blogc:expandabletextview:1.0.3'編譯'com.joanzapata.iconify:android-iconify-fontawesome:2.1.+'編譯'com.android.support:appcompat-v7:26.1.0'實施 'com.github.bumptech.glide:glide:4.6.1'annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'編譯'com.android.support:design:26.1.0'編譯'com.android.support:cardview-v7:26.1.0'編譯'com.android.support:support-v4:26.1.0'編譯'com.android.support:recyclerview-v7:26.1.0'編譯'com.nineoldandroids:library:2.4.0'編譯'com.daimajia.slider:library:1.1.5@aar'編譯'com.android.support.constraint:constraint-layout:1.0.2'測試編譯'junit:junit:4.12'實施 'com.android.support:design:26.1.0'}
嘗試將compileSdkVersion改為:
compileSdkVersion 28
在 api 級別 28 中添加了 fontVariationSettings.此處為 API 文檔 p>
Warning:The
android.dexOptions.incremental
property is deprecated and it has no effect on the build process. /home/midhilaj/.gradle/caches/transforms-1/files-1.1/appcompat-v7-26.1.0.aar/be3106efb0df111fe5a3f7b356dd070b/res/values/values.xml Error:(246, 5) error: resource android:attr/fontVariationSettings not found. /project/bkup/7_march_2018/hyshoper/milla/build/intermediates/incremental/mergeDebugAndroidTestResources/merged.dir/values/values.xml Error:(246, 5) error: resource android:attr/ttcIndex not found. Error:(269) resource android:attr/ttcIndex not found. Error:(269) resource android:attr/fontVariationSettings not found. Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details Error:failed linking references. Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details Error:Execution failed for task ':milla:processDebugAndroidTestResources'.Failed to execute aapt Information:9 errors Information:BUILD FAILED in 2s Information:1 warning Information:See complete output in console
How to solve this issue? my dependencies
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'de.hdodenhof:circleimageview:2.2.0'
compile('com.alibaba.android:ultraviewpager:1.0.6.1@aar') {
transitive = true
}
compile('org.apache.httpcomponents:httpmime:4.3.6') {
exclude module: 'httpclient'
}
compile 'com.synnapps:carouselview:0.1.4'
compile 'com.sun.mail:android-mail:1.5.5'
compile 'com.sun.mail:android-activation:1.5.5'
implementation 'com.muddzdev:styleabletoast:2.0.2'
compile 'javax.annotation:javax.annotation-api:1.2'
compile 'me.grantland:autofittextview:0.2.+'
// base library
//slider
compile 'com.ss.bannerslider:bannerslider:1.8.0'
//noinspection GradleCompatible
compile 'jp.wasabeef:recyclerview-animators:2.2.7'
compile 'com.android.support:multidex:1.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.google.code.gson:gson:2.6.2'
compile 'com.github.satyan:sugar:1.4'
compile 'com.android.support:multidex:1.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:percent:26.1.0'
compile 'com.google.code.gson:gson:2.6.2'
compile 'com.github.satyan:sugar:1.4'
compile 'jp.wasabeef:recyclerview-animators:2.2.6'
compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.+'
compile 'com.afollestad.material-dialogs:core:0.9.4.2'
compile 'com.google.android.gms:play-services:9.8.0'
compile 'com.google.android.gms:play-services-auth:9.8.0'
compile 'com.google.android.gms:play-services-location:9.8.0'
compile 'com.google.firebase:firebase-core:9.8.0'
compile 'com.google.firebase:firebase-auth:9.8.0'
compile 'com.google.firebase:firebase-database:9.8.0'
compile 'com.google.firebase:firebase-config:9.8.0'
compile 'com.google.firebase:firebase-crash:9.8.0'
compile 'com.google.firebase:firebase-invites:9.8.0'
compile 'com.google.firebase:firebase-storage:9.8.0'
compile 'cn.pedant.sweetalert:library:1.3'
compile 'at.blogc:expandabletextview:1.0.3'
compile 'com.joanzapata.iconify:android-iconify-fontawesome:2.1.+'
compile 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.github.bumptech.glide:glide:4.6.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
compile 'com.android.support:design:26.1.0'
compile 'com.android.support:cardview-v7:26.1.0'
compile 'com.android.support:support-v4:26.1.0'
compile 'com.android.support:recyclerview-v7:26.1.0'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.slider:library:1.1.5@aar'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
implementation 'com.android.support:design:26.1.0'
}
try to change the compileSdkVersion to:
compileSdkVersion 28
fontVariationSettings added in api level 28. Api doc here
這篇關于錯誤:找不到資源 android:attr/fontVariationSettings的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!