Android Question Trouble writing output: Too many field references

wimpie3

Well-Known Member
Licensed User
Longtime User
I have added Firebase services and now my project won't compile anymore.

trouble writing output: Too many field references: 79332; max is 65536.

What should I do now?
 

DonManfred

Expert
Licensed User
Longtime User
you are using which b4a version? What is the exact error? too many field references?
Or method references? Based on this i would guess you are using an old b4a which is not using the new maven repos...
Or you are adding the jars to your project using #additionaljar?

Help us to help you. Upload a sample project which shows the problem

You can try to add
B4X:
#MultiDex: True
to your main activity code (if you are using a uptodate b4a)
 
Upvote 0

wimpie3

Well-Known Member
Licensed User
Longtime User
I'm using the latest B4A.

Adding the MultiDex parameter resolved the issue. I hope there are no side effects?
 
Upvote 0
Top