Error:Execution failed for task ':app:dexDebug'. > comcommand finished with non-zero exit value 2

后端 未结 5 1102
抹茶落季
抹茶落季 2020-12-21 14:10

In android studio I implement push notification. I downloaded a demo and import in android studio. There is no problem in source code but when I run this program it will sh

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-21 14:38

    Try to add dexOptions block to android

    android {
    
        dexOptions {
            javaMaxHeapSize "4g"
        } 
    }
    

    It worked for me.

提交回复
热议问题