Android Studio 3.1.1 打Jar包出現AGPBI異常

joytoy發表於2021-09-09

今天,寫好Demo興致勃勃準備打個Jar包在Unity中測試下,不料,突然出現AGPBI這個異常,日誌如下:

AGPBI: {"kind":"error","text":"Program type already present: android.support.v4.app.BackStackRecord$Op","sources":[{}],"tool":"D8"}

:app:transformClassesWithDexBuilderForDebug UP-TO-DATE
AGPBI: {"kind":"error","text":"Program type already present: android.support.v4.app.BackStackRecord$Op","sources":[{}],"tool":"D8"}
:app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: E:AiYouDemoUcenterSdkTestappbuildintermediatestransformsdexBuilderdebug

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4650/viewspace-2811895/,如需轉載,請註明出處,否則將追究法律責任。

相關文章