When I try to run my project which works great on Android Studio 1.5 I get the following error:
Error:Access to the dex task is now impossible, starting with 1.4.0
1.4.0 introduces a new Transform API allowing manipulation of the .class files.
See more information: http://tools.android.com/tech-docs/new-build-system/transform-api
I saw some questions here regarding this error, but all answer are to downgrade Gradle to 1.3 version, which I can't do with the new Android Studio and the Instant Run option.
Is there another solution to this problem?
I was able to solve this by enlarging the max heap size in my build.gradle add this to your android closure:
dexOptions {
javaMaxHeapSize "4g"
}
not sure what it has to do with the new api
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With