dandar3 / android-androidx-browser

Eclipse library project based on Android JetPack 'androidx.browser' AAR releases.
https://developer.android.com/jetpack/androidx/releases/browser
0 stars 2 forks source link

Conversion to Dalvik format failed with error 1 #2

Open Bolfish opened 3 months ago

Bolfish commented 3 months ago

@dandar3

When I use android-androidx-browser version 1.2 or above to build google-play-services-ads, an 'Conversion to Dalvik format failed with error 1' error will appear when I export the signed apk. I changed android-androidx-browser back to version 1.0 and everything works fine. Would you please help this?

dandar3 commented 3 months ago

@Bolfish Are you getting the error below?

[2024-03-18 23:33:39 - androidx-browser] R.java was modified manually! Reverting to generated version!
[2024-03-18 23:33:44 - demo] Dx 
PARSE ERROR:
[2024-03-18 23:33:44 - demo] Dx unsupported class file version 52.0
...while parsing android/support/customtabs/ICustomTabsCallback.class
[2024-03-18 23:33:44 - demo] Dx 1 error; aborting
[2024-03-18 23:33:44 - demo] Conversion to Dalvik format failed with error 1

Try if this works (backup your original dx.jar) https://dandar3.blogspot.com/2022/06/updating-dxjar-library-to-fix-dx.html

Let me know if still doesn't work (please post your errors from the Android Console view in Eclipse), I might have another solution.

Bolfish commented 3 months ago

@dandar3

Uncaught translation error: com.android.dx.cf.code.SimException: ERROR in androidx.browser.customtabs.CustomTabsService$1.newSessionInternal:(Landroid/support/customtabs/ICustomTabsCallback;Landroid/app/PendingIntent;)Z: invalid opcode ba - invokedynamic requires --min-sdk-version >= 26 (currently 13)
Uncaught translation error: com.android.dx.cf.code.SimException: ERROR in androidx.browser.trusted.ConnectionHolder.getServiceWrapper:()Lcom/google/common/util/concurrent/ListenableFuture;: invalid opcode ba - invokedynamic requires --min-sdk-version >= 26 (currently 13)
Uncaught translation error: com.android.dx.cf.code.SimException: ERROR in androidx.browser.trusted.TokenContents.createToken:(Ljava/lang/String;Ljava/util/List;)[B: invalid opcode ba - invokedynamic requires --min-sdk-version >= 26 (currently 13)
Uncaught translation error: com.android.dx.cf.code.SimException: ERROR in androidx.browser.trusted.TrustedWebActivityServiceConnectionPool.connect:(Landroid/net/Uri;Ljava/util/Set;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture;: invalid opcode ba - invokedynamic requires --min-sdk-version >= 26 (currently 13)
4 errors; aborting

[2024-03-19 19:24:31 - Conversion to Dalvik format failed with error 1

dandar3 commented 2 months ago

@Bolfish Can you please try / test the following and let me know how it works for you, thanks.