android studio 升級到2.3 不支援apt
android studio 升級到2.3以後提示:
Warning:Using incompatible plugins for the annotation processing: android-apt. This may result in an unexpected behavior.
原因:
android studio 2.3以後不支援 apt
解決方式:
把專案中build.gradle中的
apply plugin: ‘com.neenbedankt.android-apt’ 刪掉
dependencies下所有apt的引用
dependencies {
apt ‘com.jakewharton:butterknife-compiler:8.8.1’
}
全部換成
dependencies {
annotationProcessor ‘com.jakewharton:butterknife-compiler:8.8.1’
}
相關推薦
android studio 升級到2.3 不支援apt
android studio 升級到2.3以後提示: Warning:Using incompatible plugins for the annotation processing: android-apt. This may result in an unexpected beha
Android studio升級2.3之後gradle報錯的解決方法
發現剛開始自己搜尋的方式不對:Android Studio下,gradle project sync failed 錯誤,結果悲劇地沒有搞定,還越來越亂 按照這個善良的教程http://blog.csdn.net/lpy1223745637/article/details/
Android Studio從2.3升級到3.1註意事項
刪除 -c 默認 clas 空白 repo wrap 如果 not 原文:https://blog.csdn.net/lithiumyoung/article/details/80111111 Android Studio從2.3升級到3.1註意事項 項目根目錄下的bu
Android Studio升級到3.2後部分第三方庫引入報紅
Android Studio升級到3.2後引入的第三方庫會出現報紅的現象,如圖: 雖然不影響編譯,但是這樣總歸是不爽, 原因:原因是我們的build.gradle中的dependencies--classpath版本太低如: classpath 'com.android.too
android studio升級到3.0.1後apt報錯解決
1.現象描述 原來專案在Android studio 2.3一切正常,升級3.0之後報如下錯誤: Error:Cannot choose between the following configurations of project :android_sdk: - d
Android Studio 從 2.3 升級到3.2
Android Studio 從 2.3 升級到3.2以後,對於舊工程的引入,需要如下處理: 工程下的引入studio 版本和 gradle 的版本需要跟進,如studio 3.2.1和gradle 4.6: dependencies { classpath 'c
Android Studio 升級到3.0 提示 java.lang.NoClassDefFoundError
nvi mpi ogl end 其他 註意 .com ner 功能 Android Studio 升級到3.0 提示 java.lang.NoClassDefFoundError 這個問題折騰了2個小時,最後解決了,Stack Overflow 上也有一次類似的問題,但是
Android Studio升級到3.1出現的變化
Android Studio3.1 AS3.1 升級AS到3.1 AS升級到3.1項目不能編譯 Configuration ‘compile‘ is obsolete and has been replaced with ‘implementation‘.It will be removed
Android studio 升級到3.0後各種報錯解決方法
最近把AS升級到3.2.1後老工程出現了一系列問題 總的來說, 不要隨便用最新的東西, SDK也好,AS也好,對老工程都不友好, 要等其他人躺坑躺的差不多再搞 我是先把gradle直接升級到了5.0, AS升級到了3.2.1 , SDK升到了28, 然後就
Android Studio 升級到3.0後出現編譯錯誤Error:Cannot choose between the following configurations of project
前段時間將Android Studio 升級到3.0後,原本一切正常的專案出現編譯錯誤 Error:Cannot choose between the following configurations of project :**: - debugApiElements
Android Studio升級到3.1.3後項目報 Failed to resolve: 錯誤
解決方案情景1: 找到專案的build.gradle檔案,在buildscript裡的repositories裡新建一條 maven { url 'https://maven.google.com' } 確保它位於 jcenter()的上方!!,之後重新build專案就可以了。 舉例
Android Studio升級到3.1之後匯入其他低版本專案遇到的問題
1.修改gradle檔案,匹配現在的gradle版本 。包括不同級別的build.gradle和gradle-wrapper.properties 2.用到apt的要移除,使用annotationProcessor 3.倉庫要寫全 不要忘了加google()
更新Android Studio到2.3.1出現的問題
1、要更新kotlin外掛,不然程式都無法開啟。 2、更新sdk(根據提示更新就可以了) 3、Error:(3) Error retrieving parent for item: No resource found that matches the given name
Android Studio升級到3.0的打包配置
以前在build.gradle檔案中經常有這樣的配置: 1. applicationVariants.all { variant -> variant.outputs.each { output -> def outputFile =
坑爹的ANDRODI STUDIO升級2.3之後導致databinding報錯
Your app level gradle dependencies should include (as per butterknife website instructions): compile 'com.jakewharton:butterknife:8.5.1' annotationProces
關於Android Studio升級至3.1(打包)出現AAPT2 error的解決辦法+我自己的實踐
在gradle.properties中加入一行程式碼:android.enableAapt2=false (看到次數最多的辦法......本人的Android studio沒有效果) 2:(.....................................
Android Studio 從2.3遷移到3.0遇到的問題及解決方法
1. 之前的gradle版本:3.3-all 現在的gradle版本:4.1-all 原因是我用了 butterknife 配置問題: 解決辦法: (1).刪除: apply plugin: 'com.jakewharton.butterknife'
Android Studio升級到3.3出現的問題-手動解決辦法
轉自:http://blog.csdn.net/adeel1989/article/details/61914090 Android Studio中自動更新,系統會自動去下載相應的資原始檔,在下載gradle時國內網路無法直接下載,所以可以單獨下載gradle壓縮檔案
Android Studio升級到3.0,丟擲Aapt2Exception異常
問題描述 昨天把Android Studio 升級到了3.0。一開啟專案或者新建專案都會丟擲Aapt2Exception異常。具體log如下: 解決方案 最後在萬能的stackoverflow
Android Studio 升級到3.0後出現編譯錯誤\.gradle\caches\transforms-1\files-1.1\*****-release.aar
Android Studio 升級到3.0後出現各種編譯問題,其中有一個問題是關於資源找不到的問題,百度了半天,也沒有相關的文章 C:\Users.gradle\caches\transforms-1\files-1.1***-release.aar\be5a