-
-
Notifications
You must be signed in to change notification settings - Fork 458
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
The number of method references in a .dex file cannot exceed 64K. with versions > 8 #325
Comments
Hi @almothafar, You can enable multidex, or just change the minSDK |
@almothafar v8 of this plugin adds support for various Firebase authentication methods, Firestore and Inapp Messaging. The solution is to enable multidex or increase the min SDK as suggested by @kelpie278. Closing as this is not a specific issue that requires fixing within the plugin code. |
@kelpie278 thanks, what the minSdkVersion value should be? currently is 19 as you see. Edit: I went to 22 and it seems to solve the issue. |
I had the same issue last night with Android... Changed the min version, reinstalled plugin and then platform and it worked. I'm using v24 right now.. Got some other changes to make so will be using min v26 going forward. |
Bug report
Current behavior:
When I upgraded to 8.1.0 from 7.0.2, building a bundle for android is failing with error about" The number of method references in a .dex file cannot exceed 64K.", I tried 8.1.1, 8.0.0 and 8.0.1 and the issue is the same, for 7.0.2 there are no issues, so I'm not sure what changed, and why I'm facing this.
Expected behavior:
Steps to reproduce:
Having an ionic project with the following packages (in package.json):
And config.xml:
And finally tried to build bundle using the following command:
ionic cordova build android --no-interactive --confirm --prod --aot --minifyjs --minifycss --optimizejs --release --buildConfig=build.json -- -d
Environment information
9.0.0 (cordova-lib@9.0.1)
Android build issue:
v12.16.0
5.6.4 buildOutputCleanup vcs-1
android-28
Console output
Other Information
After I tried to search in issues, I found nothing, but when I did write this one, I found a similar one:
#277
But my consideration is about, why this issue is happening with the new version, why methods went to
122286
and it is less that than65536
in the older version? It does not make sense that the new version of this plugin doubled the methods number, so I feel it is something else.The text was updated successfully, but these errors were encountered: