Krishan
Krishan

Reputation: 427

Android Studio Error:Error converting bytecode to dex: Cause: java.lang.RuntimeException: Exception parsing classes

Error:Error converting bytecode to dex: Cause: java.lang.RuntimeException: Exception parsing classes

I got this error after merging my files. I spend around one day to resolve this. Searched other stackoverflow answers, nothing worked.

Upvotes: 1

Views: 1920

Answers (1)

Krishan
Krishan

Reputation: 427

after spending about a day, i found the answer. There was package capitalization mismatch. my package was com.example.utils, but in some android file it was imported as com.example.Utils

I hope this will help others to save a day or two. Gradle should be more smart to point right problem than giving some general Exception parsing classes

Upvotes: 4

Related Questions