Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dex problems have returned #202

Closed
amiralichesser3 opened this issue Apr 17, 2018 · 6 comments
Closed

Dex problems have returned #202

amiralichesser3 opened this issue Apr 17, 2018 · 6 comments

Comments

@amiralichesser3
Copy link

Since the android studio new update, even enabling the D8 does not help and I still the the dex builder problem with piwikSdk

@d4rken
Copy link
Member

d4rken commented Apr 17, 2018

What dex builder problem?

Please post used versions and the error itself.

@amiralichesser3
Copy link
Author

I'm using piwik version 3.0.1 , D8 is enabled and android studio version is 3.1.1

This is the error i get:
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/amirali/.gradle/wrapper/dists/gradle-4.1-all/bzyivzo6n839fup2jbap0tjew/gradle-4.1/caches/transforms-1/files-1.1/piwik-sdk-3.0.1.aar/f2791f8d750fa70532857317fd29f013/jars/classes.jar

@d4rken
Copy link
Member

d4rken commented Apr 17, 2018

Is that the complete error? I think there should also be a stacktrace.

A google search for the error brings up:
yandex/mapkit-android-demo#2
which links:
https://issuetracker.google.com/issues/77240639

This would be a bug in Android Studio 3.1's D8 dex compiler, the proposed solution is to deactivate D8 until it's fixed: android.enableD8=false

@amiralichesser3
Copy link
Author

I did try with the enableD8 = false. still i get the same error: (when i remove piwik from my dependencies everything is working just fine)

Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/amirali/.gradle/wrapper/dists/gradle-4.1-all/bzyivzo6n839fup2jbap0tjew/gradle-4.1/caches/transforms-1/files-1.1/piwik-sdk-3.0.1.aar/f2791f8d750fa70532857317fd29f013/jars/classes.jar

Caused by: com.android.builder.dexing.DexArchiveBuilderException: Error while dexing org/piwik/sdk/extra/DownloadTracker.class

Caused by: com.android.dx.cf.code.SimException: ERROR in org.piwik.sdk.extra.DownloadTracker.trackNewAppDownload:(Lorg/piwik/sdk/TrackMe;Lorg/piwik/sdk/extra/DownloadTracker$Extra;)V: invalid opcode ba - invokedynamic requires --min-sdk-version >= 26 (currently 15)

@d4rken
Copy link
Member

d4rken commented Apr 17, 2018

See

#196

@d4rken d4rken closed this as completed Apr 17, 2018
@rovkinmax
Copy link

rovkinmax commented May 14, 2018

@d4rken solution from #196 is not help me, I already have compileOptions in my build.gradle file, but I still have exception

com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/rovkinmax/.gradle/caches/transforms-1/files-1.1/piwik-sdk-3.0.2.aar/3760fd43b5fab6eab41c6640bfdff7d0/jars/classes.jar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants