1. 程式人生 > >關於使用Android Studio 2.1+ 出現AGPBI錯誤的處理

關於使用Android Studio 2.1+ 出現AGPBI錯誤的處理

1.問題描述:編譯專案的時候出現:    
:app:transformClassesWithDexForDebug
    AGPBI: {"kind":"error","text":"warning: Ignoring InnerClasses attribute for an anonymous inner class","sources":[{}]}
    AGPBI: {"kind":"error","text":"(org.ccil.cowan.tagsoup.Parser$1) that doesn\u0027t come with an","sources":[{}]}
    AGPBI: {"kind":"error","text":"associated EnclosingMethod attribute. This class was probably produced by a","sources":[{}]}
    AGPBI: {"kind":"error","text":"compiler that did not target the modern .class file format. The recommended","sources":[{}]}
    AGPBI: {"kind":"error","text":"solution is to recompile the class from source, using an up-to-date compiler","sources":[{}]}
    AGPBI: {"kind":"error","text":"and without specifying any \"-target\" type options. The consequence of ignoring","sources":[{}]}
    AGPBI: {"kind":"error","text":"this warning is that reflective operations on this class will incorrectly","sources":[{}]}  
    AGPBI: {"kind":"error","text":"indicate that it is *not* an inner class.","sources":[{}]}
等資訊;
2.參考文件:https://code.google.com/p/android/issues/detail?id=215748
3.解決方案:按照google的issue的描述:
Confirmed that this still happens in 2.2 Preview 6.
Owner: [email protected] 
Cc: [email protected] [email protected] [email protected] 
Labels: -Priority-High Priority-Critical Triaged2-yes Version-Studio-2.2 之後升級了Android Studio 的2.2版本,果然編譯速度快多了,且不再出現該問題;
4.穩定版到bate版本的升級

相關推薦

關於使用Android Studio 2.1+ 出現AGPBI錯誤處理

1.問題描述:編譯專案的時候出現:   :app:transformClassesWithDexForDebug AGPBI: {"kind":"error","text":"warning: Ignoring InnerClasses attribute fo

Android studio程式設計時出現錯誤:unspecified on project app resolves to an APK archive which is not supported

用Android Studio中匯入第三方庫工程的時候出現的問題: Error:Dependency MyApplication.libraries:MaterialDesign:unspecified on project app resolves to an APK arch

android studio程式設計時出現錯誤:Error:Execution failed for task ':app:buildInfoDebugLoader'. > Exception whi

用Android Studio中設定navigation的menu時候出現的問題:(其他問題同理) Error:Execution failed for task ':app:buildInfoDebugLoader'. >  Exception while doing pa

Android studio 2.1 整合第三方簡訊驗證類庫

新手弄第三方類庫也許會很納悶,有時弄幾天都不行。那就讓我帶大家10分鐘做一個簡單的簡訊驗證吧! 3.進入Mob賬號後臺 4.新增一個android應用 5.我們在android s

[已解決]Android Studio 2.1.1 執行時候顯示 No changes To Deploy 但是其實已經更新了的,閃電執行的問題

Android Studio 更新成2.1.1 之後遇到一個問題,它有一個閃電執行的機制,出發點是好的,就是如果只是更新了一點點東西,那麼我使用熱部署來更新相應的activity 就好了。 但是我們經常遇到的情況是code 已經更新了,但是點選執行的時候還是提示 No c

Android Studio 2.1.1沒法預覽的可能原因及解決方法

環境: Android Studio 2.1.1 Android SDK API 24 Android  Build Tool 24.0.0 問題: 開啟layout下的佈局檔案,沒法預覽。提示: Exception raised during rendering: co

Android Studio 2.1中的instant run功能 介紹

Studio 2.0 之後就有了instant run 功能 說說 instant run  功能:字面意思就能明白 即時執行 這個功能在2.1是預設開啟的 而它的相關設定介面呢如下: 就是右邊的是個設定了  如何判斷是否可以呢 通過 看到了 執行案例左邊的⚡️ 了嗎?

Android Studio NDK build 時的錯誤處理

Android Studio專案中包含jni檔案時,編譯會遇到 Error:Execution failed for task ':app:compileDebugNdk'. 這是因為gradle android plugin試圖自己去呼叫ndk-build來編譯專案中

Android Studio更新3.2.1 出現 Could not GET錯誤 與 gradel得不到pom檔案

Studio更新3.2.1 冒出一個Could not GET錯誤,找了下勾選了setting 裡gradle中studio的enable,以為順利解決,問題又來了變成gradel得不到pom檔案,類似這樣的Error:Unable to resolve dependency

Android7.1.1手機使用android studio開發時出現解析包時出現錯誤的問題

在工作的時候,使用android studio開發,除錯工具是android7.1.1手機vivo x20,遇到我每次不管run自己的專案,還是我新建一個Hello World的demo也都是不行。一開始我懷疑是自己專案的問題,結果Hello World也不行。網上的相關問題

Android studio 2.3.3 升級到 3.1.3最新版本 匯入舊專案遇到的諸多錯誤,終極解決辦法!!

                                                         如果上天再給我一次機會,我不會將舊專案匯入到最新的studio版本。薩瓦迪卡,歡迎大家來到我們美麗的泰國。我們的東西很好吃。 如果你是跟我一樣升級完stu

Android Studio運行出現項目 錯誤:非法字符:“ufeff”

格式 項目 image 方法 自動 錯誤 bom 運行 bsp 導入項目時,遇到編碼問題。 主要原因是: eclipse可以自動把UTF-8+BOM文件轉為普通的UTF-8文件,但Android Studio需要重新轉換一下編碼 解決方法: 將編碼格式UTF-8+BO

Android】實用教程:匯入android-gif-drawable包,不用在GitHub下載(Android Studio 3.1.2

轉載請註明出處,原文連結:https://blog.csdn.net/u013642500/article/details/80193877 【AS版本】 【步驟】 1、開啟Project Structural。(可點選圖示,也可以在File選單中開啟,也可以按Ctrl+Al

Android】實用教程:匯入SlidingMenu包,不用在GitHub下載(Android Studio 3.1.2

轉載請註明出處,原文連結:https://blog.csdn.net/u013642500/article/details/80192923 【AS版本】 【步驟】 1、開啟Project Structural。(可點選圖示,也可以在File選單中開啟,也可以按Ctrl+Al

Android Studio 3.1.1新版本 修改 compileSdkVersion sdk版本的各種錯誤

在新版本3.0以上的Android Studio裡面,有了很多的改動,大家都知道新建立一個專案,compileSdkVersion是最新版本的sdk 我的是Android Studio 3.1.1,最新的是complieSdkVesion 27 新建專案app/build.grad

Android Studio 2.3.3 出現Error:(26.13) Fail to resole: com.android.support.appcompat永久解決方法...

Android Studio 出現Error(26.13):Fail to resole:com.android.support.appcompat-v7.28_ Install Repository sync project show in file Show in project structure di

Android Studio 3.1 編譯錯誤Connection refused

檢視詳細出錯內容        Connect to 127.0.0.1:1080 [/127.0.0.1] failed: Connection refused: connect 修改C:\Users\XXX(使用者名稱)\.gradle\gradle.properti

Android Studio APK打包出現 AAPT2 error: check logs for details.錯誤

    繼續學習Android,打包的時候出現了AAPT2 error: check logs for details.錯誤,不清楚什麼問題,網上找到了解決辦法,分享如下,但是具體什麼原因還沒懂,歡迎大佬們指點一二。 也不知道我幹了什麼 打包突然出現了AAPT2 err

Android Studio 3.1升級3.2 實踐

1.升級Android Studio 開啟Android Studio 選擇 help,選擇check for updates,選擇update and restart 也可以選擇官網下載升級:https://developer.android.google.cn/st

Android Studio調試出現 Error running app 錯誤

Error running app:Instant Run requires 'Tool | Android | Enable ADB integration‘ to be enabled. 在第一次除錯寫android程式的時候出現的問題。我第一次使用Android