After Implementing D8 compiler

[java] INFO: ____Executing C:\Program Files\Java\jdk1.8.0_361\jre/bin/java -mx1848M -cp C:\Users\Rudra\AppData\Local\Temp\d8_6366249797521188725.jar com.android.tools.r8.D8 --min-api 21 --no-desugaring --lib C:\Users\Rudra\AppData\Local\Temp\android1740226348500704442.jar --release --output C:\Users\Rudra\AppData\Local\Temp\1681665195203_0.05408451210829601-0\youngandroidproject\..\build\tmp  C:\Users\Rudra\AppData\Local\Temp\AndroidRuntime1238769783788423107.jar C:\Users\Rudra\AppData\Local\Temp\kawa77698648083261914.jar C:\Users\Rudra\AppData\Local\Temp\annotation402930350626176399.jar C:\Users\Rudra\AppData\Local\Temp\startup1084098098449210752.jar C:\Users\Rudra\AppData\Local\Temp\swiperefreshlayout6821985565342151993.jar C:\Users\Rudra\AppData\Local\Temp\kt-annotations6400199187795330771.jar C:\Users\Rudra\AppData\Local\Temp\repackaged2053694870779514670.jar C:\Users\Rudra\AppData\Local\Temp\core-common7194814554995623904.jar C:\Users\Rudra\AppData\Local\Temp\legacy-support-core-utils3313340803082053246.jar C:\Users\Rudra\AppData\Local\Temp\interpolator1173498202344779752.jar C:\Users\Rudra\AppData\Local\Temp\constraintlayout3628048953565449520.jar C:\Users\Rudra\AppData\Local\Temp\kotlin-stdlib3981980574618414924.jar C:\Users\Rudra\AppData\Local\Temp\emoji21514558081901145327.jar C:\Users\Rudra\AppData\Local\Temp\lifecycle-common327860281801327808.jar C:\Users\Rudra\AppData\Local\Temp\customview4592752968681453995.jar C:\Users\Rudra\AppData\Local\Temp\lifecycle-viewmodel-savedstate6203520883466024955.jar C:\Users\Rudra\AppData\Local\Temp\asynclayoutinflater1241754055734584002.jar C:\Users\Rudra\AppData\Local\Temp\appcompat-resources264440672977200763.jar C:\Users\Rudra\AppData\Local\Temp\lifecycle-runtime5850414195614716362.jar C:\Users\Rudra\AppData\Local\Temp\tracing1897235050993433193.jar C:\Users\Rudra\AppData\Local\Temp\collection5055588480563913601.jar C:\Users\Rudra\AppData\Local\Temp\versionedparcelable4044922001457432307.jar C:\Users\Rudra\AppData\Local\Temp\savedstate1959755987398985053.jar C:\Users\Rudra\AppData\Local\Temp\lifecycle-viewmodel5518426295325283684.jar C:\Users\Rudra\AppData\Local\Temp\print812205154522269863.jar C:\Users\Rudra\AppData\Local\Temp\vectordrawable8938231834467628187.jar C:\Users\Rudra\AppData\Local\Temp\core-runtime7771654902318694822.jar C:\Users\Rudra\AppData\Local\Temp\core5742456751083831465.jar C:\Users\Rudra\AppData\Local\Temp\lifecycle-livedata-core3527214873336870821.jar C:\Users\Rudra\AppData\Local\Temp\material3024195039126045441.jar C:\Users\Rudra\AppData\Local\Temp\documentfile811653835403299699.jar C:\Users\Rudra\AppData\Local\Temp\viewpager5792444438244435296.jar C:\Users\Rudra\AppData\Local\Temp\slidingpanelayout9081301228991788776.jar C:\Users\Rudra\AppData\Local\Temp\appcompat816692891385799915.jar C:\Users\Rudra\AppData\Local\Temp\vectordrawable-animated2543255180615007251.jar C:\Users\Rudra\AppData\Local\Temp\lifecycle-livedata682512641557497527.jar C:\Users\Rudra\AppData\Local\Temp\coordinatorlayout7301143228883697590.jar C:\Users\Rudra\AppData\Local\Temp\cursoradapter1022642593322958660.jar C:\Users\Rudra\AppData\Local\Temp\legacy-support-core-ui5211052235975038770.jar C:\Users\Rudra\AppData\Local\Temp\localbroadcastmanager1145357305203953820.jar C:\Users\Rudra\AppData\Local\Temp\fragment8979963392642816773.jar C:\Users\Rudra\AppData\Local\Temp\drawerlayout4027976603951531328.jar C:\Users\Rudra\AppData\Local\Temp\loader5805998922299412566.jar C:\Users\Rudra\AppData\Local\Temp\acra-4.4.04103946090403997616.jar C:\Users\Rudra\AppData\Local\Temp\constraintlayout-solver7923059684377895320.jar C:\Users\Rudra\AppData\Local\Temp\json6796076852480360184.jar C:\Users\Rudra\AppData\Local\Temp\google-http-client-jackson22370507271824403180.jar C:\Users\Rudra\AppData\Local\Temp\mpandroidchart6603374478570089725.jar C:\Users\Rudra\AppData\Local\Temp\gson-2.18016978703777297053.jar C:\Users\Rudra\AppData\Local\Temp\jetty-util6487208304072964536.jar C:\Users\Rudra\AppData\Local\Temp\google-http-client-android3-beta3499749423096226170.jar C:\Users\Rudra\AppData\Local\Temp\jts1576417476210838034.jar C:\Users\Rudra\AppData\Local\Temp\guava3594836692566916700.jar C:\Users\Rudra\AppData\Local\Temp\google-api-client2069049182357584358.jar C:\Users\Rudra\AppData\Local\Temp\physicaloid359597715345315918.jar C:\Users\Rudra\AppData\Local\Temp\cardview7290470858347773088.jar C:\Users\Rudra\AppData\Local\Temp\twitter4jmedia2776495645380304026.jar C:\Users\Rudra\AppData\Local\Temp\jackson-core5244949301306278938.jar C:\Users\Rudra\AppData\Local\Temp\jedis522460233031203800.jar C:\Users\Rudra\AppData\Local\Temp\httpmime1186666228250185591.jar C:\Users\Rudra\AppData\Local\Temp\googlesheets296568901095243433.jar C:\Users\Rudra\AppData\Local\Temp\webrtc2697990317983617206.jar C:\Users\Rudra\AppData\Local\Temp\recyclerview423889377516097512.jar C:\Users\Rudra\AppData\Local\Temp\opencensus-contrib-http-util3112543274038852040.jar C:\Users\Rudra\AppData\Local\Temp\google-http-client-android2-beta9175095948851148127.jar C:\Users\Rudra\AppData\Local\Temp\androidsvg6765697105102263178.jar C:\Users\Rudra\AppData\Local\Temp\google-oauth-client-jetty669339231219828647.jar C:\Users\Rudra\AppData\Local\Temp\jetty3372190124297222651.jar C:\Users\Rudra\AppData\Local\Temp\google-oauth-client761015000294413813.jar C:\Users\Rudra\AppData\Local\Temp\osmdroid5403399910926744824.jar C:\Users\Rudra\AppData\Local\Temp\opencensus7302843815997213934.jar C:\Users\Rudra\AppData\Local\Temp\google-http-client6167504904396729545.jar C:\Users\Rudra\AppData\Local\Temp\google-api-client-android2-beta6357916431769604441.jar C:\Users\Rudra\AppData\Local\Temp\Barcode6659194302396117810.jar C:\Users\Rudra\AppData\Local\Temp\firebase6122727011260078880.jar C:\Users\Rudra\AppData\Local\Temp\fusiontables3943842000301291836.jar C:\Users\Rudra\AppData\Local\Temp\QRGenerator6100165242341986775.jar C:\Users\Rudra\AppData\Local\Temp\protobuf-java-3.0.0941067741152407494.jar C:\Users\Rudra\AppData\Local\Temp\google-api-client-jackson21528176527475314839.jar C:\Users\Rudra\AppData\Local\Temp\twitter4j7680242592745981408.jar C:\Users\Rudra\AppData\Local\Temp\grpc-context3922512687993719038.jar @C:\Users\Rudra\AppData\Local\Temp\argfile4055504432650804347.txt
     [java] Info in C:\Users\Rudra\AppData\Local\Temp\kawa77698648083261914.jar:gnu/kawa/slib/conditions.class:
     [java]   Malformed inner-class attribute:
     [java]     outerTypeInternal: gnu/kawa/slib/conditions
     [java]     innerTypeInternal: gnu/kawa/slib/condition$Mntype
     [java]     innerName: Mntype
     [java]
     [java] Info in C:\Users\Rudra\AppData\Local\Temp\kawa77698648083261914.jar:gnu/kawa/slib/conditions$frame.class:
     [java]   Malformed inner-class attribute:
     [java]     outerTypeInternal: gnu/kawa/slib/conditions
     [java]     innerTypeInternal: gnu/kawa/slib/condition$Mntype
     [java]     innerName: Mntype
     [java]
     [java] Info in C:\Users\Rudra\AppData\Local\Temp\kawa77698648083261914.jar:gnu/kawa/slib/condition$Mntype.class:
     [java]   Malformed inner-class attribute:
     [java]     outerTypeInternal: gnu/kawa/slib/conditions
     [java]     innerTypeInternal: gnu/kawa/slib/condition$Mntype
     [java]     innerName: Mntype
     [java]
     [java] Info in C:\Users\Rudra\AppData\Local\Temp\kawa77698648083261914.jar:gnu/kawa/slib/raise$Mnobject$Mnexception.class:
     [java]   Malformed inner-class attribute:
     [java]     outerTypeInternal: gnu/kawa/slib/srfi34
     [java]     innerTypeInternal: gnu/kawa/slib/raise$Mnobject$Mnexception
     [java]     innerName: Mnexception
     [java]
     [java] Info in C:\Users\Rudra\AppData\Local\Temp\kawa77698648083261914.jar:gnu/kawa/slib/srfi34.class:
     [java]   Malformed inner-class attribute:
     [java]     outerTypeInternal: gnu/kawa/slib/srfi34
     [java]     innerTypeInternal: gnu/kawa/slib/raise$Mnobject$Mnexception
     [java]     innerName: Mnexception
     [java]
     [java] Info in C:\Users\Rudra\AppData\Local\Temp\kawa77698648083261914.jar:gnu/kawa/slib/test$Mnrunner.class:
     [java]   Malformed inner-class attribute:
     [java]     outerTypeInternal: gnu/kawa/slib/testing
     [java]     innerTypeInternal: gnu/kawa/slib/test$Mnrunner
     [java]     innerName: Mnrunner
     [java]
     [java] Info in C:\Users\Rudra\AppData\Local\Temp\kawa77698648083261914.jar:gnu/kawa/slib/testing.class:
     [java]   Malformed inner-class attribute:
     [java]     outerTypeInternal: gnu/kawa/slib/testing
     [java]     innerTypeInternal: gnu/kawa/slib/test$Mnrunner
     [java]     innerName: Mnrunner
     [java]
     [java] Info in C:\Users\Rudra\AppData\Local\Temp\kawa77698648083261914.jar:gnu/kawa/slib/conditions$frame.class:
     [java]   Malformed inner-class attribute:
     [java]     outerTypeInternal: gnu/kawa/slib/conditions
     [java]     innerTypeInternal: gnu/kawa/slib/condition$Mntype
     [java]     innerName: Mntype
     [java]
     [java] Info in C:\Users\Rudra\AppData\Local\Temp\kawa77698648083261914.jar:gnu/kawa/slib/conditions.class:
     [java]   Malformed inner-class attribute:
     [java]     outerTypeInternal: gnu/kawa/slib/conditions
     [java]     innerTypeInternal: gnu/kawa/slib/condition$Mntype
     [java]     innerName: Mntype
     [java]
     [java] Info in C:\Users\Rudra\AppData\Local\Temp\kawa77698648083261914.jar:gnu/kawa/slib/condition$Mntype.class:
     [java]   Malformed inner-class attribute:
     [java]     outerTypeInternal: gnu/kawa/slib/conditions
     [java]     innerTypeInternal: gnu/kawa/slib/condition$Mntype
     [java]     innerName: Mntype
     [java]
     [java] Info in C:\Users\Rudra\AppData\Local\Temp\kawa77698648083261914.jar:gnu/kawa/slib/raise$Mnobject$Mnexception.class:
     [java]   Malformed inner-class attribute:
     [java]     outerTypeInternal: gnu/kawa/slib/srfi34
     [java]     innerTypeInternal: gnu/kawa/slib/raise$Mnobject$Mnexception
     [java]     innerName: Mnexception
     [java]
     [java] Info in C:\Users\Rudra\AppData\Local\Temp\kawa77698648083261914.jar:gnu/kawa/slib/srfi34.class:
     [java]   Malformed inner-class attribute:
     [java]     outerTypeInternal: gnu/kawa/slib/srfi34
     [java]     innerTypeInternal: gnu/kawa/slib/raise$Mnobject$Mnexception
     [java]     innerName: Mnexception
     [java]
     [java] Info in C:\Users\Rudra\AppData\Local\Temp\kawa77698648083261914.jar:gnu/kawa/slib/test$Mnrunner.class:
     [java]   Malformed inner-class attribute:
     [java]     outerTypeInternal: gnu/kawa/slib/testing
     [java]     innerTypeInternal: gnu/kawa/slib/test$Mnrunner
     [java]     innerName: Mnrunner
     [java]
     [java] Info in C:\Users\Rudra\AppData\Local\Temp\kawa77698648083261914.jar:gnu/kawa/slib/testing.class:
     [java]   Malformed inner-class attribute:
     [java]     outerTypeInternal: gnu/kawa/slib/testing
     [java]     innerTypeInternal: gnu/kawa/slib/test$Mnrunner
     [java]     innerName: Mnrunner
     [java]
     [java] Error in C:\Users\Rudra\AppData\Local\Temp\AndroidRuntime1238769783788423107.jar:com/google/appinventor/components/annotations/Asset.class:
     [java] Type com.google.appinventor.components.annotations.Asset is defined multiple times: C:\Users\Rudra\AppData\Local\Temp\AndroidRuntime1238769783788423107.jar:com/google/appinventor/components/annotations/Asset.class, C:\Users\Rudra\AppData\Local\Temp\AndroidRuntime1238769783788423107.jar:com/google/appinventor/components/annotations/Asset.class
     [java] Compilation failed
     [java] Exception in thread "main" java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: C:\Users\Rudra\AppData\Local\Temp\AndroidRuntime1238769783788423107.jar:com/google/appinventor/components/annotations/Asset.class
     [java]     at com.android.tools.r8.utils.w.a(SourceFile:92)
     [java]     at com.android.tools.r8.D8.main(D8.java:4)
     [java] Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: C:\Users\Rudra\AppData\Local\Temp\AndroidRuntime1238769783788423107.jar:com/google/appinventor/components/annotations/Asset.class
     [java]     at Version.fakeStackEntry(Version_3.0.41-sc03.java:0)
     [java]     at com.android.tools.r8.utils.w.a(SourceFile:68)
     [java]     at com.android.tools.r8.utils.w.a(SourceFile:28)
     [java]     at com.android.tools.r8.utils.w.a(SourceFile:27)
     [java]     at com.android.tools.r8.utils.w.b(SourceFile:3)
     [java]     at com.android.tools.r8.D8.a(D8.java:17)
     [java]     at com.android.tools.r8.D8.a(D8.java:15)
     [java]     at com.android.tools.r8.utils.w.a(SourceFile:84)
     [java]     ... 1 more
     [java] Caused by: com.android.tools.r8.internal.b: Type com.google.appinventor.components.annotations.Asset is defined multiple times: C:\Users\Rudra\AppData\Local\Temp\AndroidRuntime1238769783788423107.jar:com/google/appinventor/components/annotations/Asset.class, C:\Users\Rudra\AppData\Local\Temp\AndroidRuntime1238769783788423107.jar:com/google/appinventor/components/annotations/Asset.class
     [java]     at com.android.tools.r8.internal.TA.a(SourceFile:14)
     [java]     at com.android.tools.r8.internal.TA.a(SourceFile:22)
     [java]     at com.android.tools.r8.internal.Ew.b(SourceFile:6)
     [java]     at com.android.tools.r8.internal.Ew.a(SourceFile:23)
     [java]     at com.android.tools.r8.internal.Ew.a(SourceFile:10)
     [java]     at java.util.concurrent.ConcurrentHashMap.merge(ConcurrentHashMap.java:1990)
     [java]     at com.android.tools.r8.internal.Ew.a(SourceFile:6)
     [java]     at com.android.tools.r8.graph.I0$c.f(SourceFile:3)
     [java]     at com.android.tools.r8.dex.a.a(SourceFile:94)
     [java]     at com.android.tools.r8.dex.a.a(SourceFile:23)
     [java]     at com.android.tools.r8.D8.a(D8.java:21)
     [java]     at com.android.tools.r8.D8.d(D8.java:6)
     [java]     at com.android.tools.r8.D8.c(D8.java:1)
     [java]     at com.android.tools.r8.utils.w.a(SourceFile:24)
     [java]     ... 5 more
     [java] Apr 16, 2023 10:43:40 PM com.google.appinventor.buildserver.Compiler setProgress
     [java] INFO: The current progress is 75%
     [java] Apr 16, 2023 10:43:40 PM com.google.appinventor.buildserver.Compiler runMultidex
     [java] INFO: DX time: 2.385000 seconds
     [java] Apr 16, 2023 10:43:40 PM com.google.appinventor.buildserver.Compiler runMultidex
     [java] WARNING: YAIL compiler - DX execution failed.

BUILD FAILED
C:\Users\Rudra\Documents\sources-beta\appinventor\build.xml:22: The following error occurred while executing this line:
C:\Users\Rudra\Documents\sources-beta\appinventor\buildserver\build.xml:200: Java returned: 1

Total time: 42 seconds
PS C:\Users\Rudra\Documents\sources-beta\appinventor>

After implementing the D8 dexing tool, These errors are appearing.

@ewpatton Kindly take a look at this issue. D8 is the fundamental requirement for the new Android Apis. The new android sdk depend upon Lambdas and other features that require desugarring.

1 Like

If they require desugarring, why are you passing --no-desugaring?

Let me check sir.

Same issue with desugarring enabled

Nevermind. I finally implemented the D8, thanks for your guidance sir :slightly_smiling_face:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.