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
Android support libs not found when predexing #712
Comments
I noticed a size difference in the APK file as well. With predex set to false:
With predex set to true:
|
It might have to do with you using a file repository. Could you try with that removed? You can get the artifacts into your main repository with the Maven Android SDK Deployer.. https://github.com/simpligility/maven-android-sdk-deployer |
I removed the local repository and installed the support-v13 and android sdk 23 into the main repo. Although the dexing step adds additional jars now in the predexedlibs folder, it still does not work. The file sizes I posted above are still the same and the one that is predexed is crashing because of missing support classes still. The additional jars it added to the predexedlibs folders were:
Still missing over 600 kb of classes it seems in the APK. |
Here is a diff between predex false / true when run with:
Output:
I also checked the content of the generated APK's. The only difference is the size of the classes.dex (missing 600 kb). |
Still having this problem with 4.4.3, I try every now and then with |
Closing old issues as part of cleanup effort. Feel free to re-open and submit a PR with fix. |
I have the problem that when I use the predex option to shave off some build time, the deployed application will not function correctly because of missing classes that are provided by the android support libraries:
When I disable the predexing, the application functions as expected.
I've noticed two things:
The predexedLibs folder does not contain predexed versions of the android support libs (but it does contain one for the other aar and all the jars that I include in my project)... seems odd to me.
The plugin gives me a warning right at the start regarding the android support libs, but I'm unsure what to do about it, or what it means (and why it would be different with predex on/off -- the warnings is there in both cases):
This is my pom.xml:
And here's the maven output:
The text was updated successfully, but these errors were encountered: