me too had this same error, and i was able to debug it using the command ./gradlew assembleDebug --stacktrace(inside android folder) and for me it was because i had two libraries and both were having same package name, on changing package name of one resolved the issue