You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Invoke-customs are only supported starting with Android O (--min-api 26) com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: Unable to pre-dex '/Users/qq/.gradle/caches/transforms-1/files-1.1/mapbox-android-sdk-6.0.0-beta.3.aar/deab756594fb90ee5107d36fe1944279/jars/classes.jar' to '/Users/qq/Android/AndroidStudioProjects/proj/maps/build/intermediates/transforms/preDex/flavor/release/5.jar'
I'm using Android Studio 3.1 beta but I had the same issue with the stable AS version
Compile SDK set to 27.0.3
I need to have minSDK 21 for the application though. Is version 6 running on that?
Thanks for reporting your issue @leelx78. Our upcoming 6.0.0 release includes support for Java 8 features, therefore in order to run it (or any of the betas) you need to upgrade your project to include Java 8 support by adding this into you app's gradle file:
1.Goto File ->Project Structrure
2.Click on "Modules" at left side
3.Choose the value as 1.8 in source compatibility
4.Choose the value as 1..8 in target compatibility
5.Click Apply and ok.
6.Click on Build Menu item and Rebuild it.
Reacted by Ali Hajiloo, parag, Poorix, Димыч, Andree, SHIHES and RNY IT
Activity
LukasPaczos commentedon Mar 5, 2018
Thanks for reporting your issue @leelx78. Our upcoming
6.0.0release includes support for Java 8 features, therefore in order to run it (or any of the betas) you need to upgrade your project to include Java 8 support by adding this into you app's gradle file:or enabling Java 8 support for your project from Android Studio menu.
leelx78 commentedon Mar 5, 2018
Thanks!
paulkugaev commentedon Aug 27, 2018
Does not work for me
Xgamefactory commentedon Sep 25, 2018
we have same error even setting compileoptions for java version in gradle.
Xgamefactory commentedon Oct 16, 2018
i hope you wil remove these java8 problematic features soon.
there are tons of problems with java8.
Rajanchidambaram commentedon Nov 19, 2019
Follow these simple steps:
1.Goto File ->Project Structrure
2.Click on "Modules" at left side
3.Choose the value as 1.8 in source compatibility
4.Choose the value as 1..8 in target compatibility
5.Click Apply and ok.
6.Click on Build Menu item and Rebuild it.
ManishPingale7 commentedon Dec 1, 2020
It worked for me
Thanks!!
dineshchavhan commentedon Feb 9, 2021
its worked, OMG thank you save my day
dulakshanwije commentedon Sep 15, 2021
Its worked. Thank you
Rutikpatil0123 commentedon Sep 19, 2021
Thanks dude for help!!
Yasaswini-Dhulipala commentedon Nov 30, 2021
it worked thaks a lot