Android Question Project won't compile on B4a v11-50

FrostCodes

Active Member
Licensed User
Longtime User
Hello everyone. I upgraded my B4A today to v11-50 I have not been able to compile my project ever since.
The project was working perfectly well this afternoon.

I keep getting this error... I use firebase in the project by the way.


B4X:
Compiling generated Java code.    (26.82s)
Finding libraries that need to be dexed.    (0.15s)
Dex code    (13.93s)
Dex merge    Error
Error: Cannot fit requested classes in a single dex file (# methods: 75493 > 65536). Try supplying a main-dex list
Compilation failed
 

FrostCodes

Active Member
Licensed User
Longtime User
@Erel I Have a suggestion, can this flag be turned on by default or make the IDE detect when the project build is falling because of this issue and it turns it on for the project automatically? I own an app studio that makes a lot of apps, one of my staff can forget about this and end up spending hours debugging or reinstalling our whole IDE setup.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
can this flag be turned on by default
This flag shouldn't be added when it isn't needed as it makes the compilation a bit slower.

one of my staff can forget about this and end up spending hours debugging
The first thing to do is to search the site. The developer would have found the solution immediately: https://www.b4x.com/android/forum/p...ot+fit+requested+classes+in+a+single+dex+file

It is not trivial for the IDE to know the cause of the error in this case.
 
Upvote 0
Top