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

回眸只為那壹抹淺笑 提交于 2019-12-02 00:01:25

If you add compile 'net.minidev:json-smart:2.2', the problem will be resolved.

For more background on the problem, see https://github.com/jayway/JsonPath/issues/116 and https://github.com/jayway/JsonPath/pull/108. Version 2.1.0 of json-path, which hasn't been released yet, will point to the 2.2 version of json-smart, resolving this issue. Until then the above workaround is necessary.

in your build.gradle file add following codes :

    defaultConfig {
     multiDexEnabled true
     minSdkVersion 15
     targetSdkVersion 23
     versionCode 1
     versionName "1.0"
   }

   dexOptions {
     javaMaxHeapSize "4g"
 }
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!