Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+6 votes

I added firebase to my android birdcounter project and after following google's tutorial gradle tried building my project and threw a dex size too big error. Has anyone else had this problem? Does anyone know a solution?

asked in CSC490_Spring202021 by (1 point)

1 Answer

+1 vote
 
Best answer

I followed a guide over at stack overflow that enabled multi-dex:
Simply put you add this to your app's gradle file:

 implementation 'com.android.support:multidex:1.0.3'

Then add this to the defaultConfig file:

multiDexEnabled true

I found the answer here

answered by (1 point)
selected by
...