Adding JsonPath in Android Studio causes non-zero exit value 2 error

前端 未结 2 534
暖寄归人
暖寄归人 2021-01-21 03:46

When I add the JsonPath library to my Android Studio (1.4) project I get an error as following:

Error:Execution failed for task \':app:dexDebug\'. \\>
com.an         


        
2条回答
  •  有刺的猬
    2021-01-21 03:59

    in your build.gradle file add following codes :

        defaultConfig {
         multiDexEnabled true
         minSdkVersion 15
         targetSdkVersion 23
         versionCode 1
         versionName "1.0"
       }
    
       dexOptions {
         javaMaxHeapSize "4g"
     }
    

提交回复
热议问题