title: Failed to read native JSON Data
body: <p>I am trying to build an old project using Android studio but the process fails. The error message I get is this:</p>
  
  <p><em>Error:Failed to read native JSON data
      Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $</em></p>
  
  <p>I get a more detailed error message in the Build tab:<a href="https://i.stack.imgur.com/M5ks2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/M5ks2.png" alt="enter image description here"></a></p>
  
  <p>I believe that the build.gradle file of the app, is responsible for the error. The code of the file is:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
  compileSdkVersion 25
  buildToolsVersion "25.0.3"
  defaultConfig {
      applicationId "com.example.despoina.ldtest"
      minSdkVersion 15
      targetSdkVersion 25
      versionCode 1
      versionName "1.0"
      ndk {
          abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
      }
      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      externalNativeBuild {
          cmake {
              arguments '-DANDROID_PLATFORM=android-13',
                      '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=gnustl_static'
          }
      }
  }
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
  }
  
  sourceSets {
      main {
          // let gradle pack the shared library into apk
          jniLibs.srcDirs += ['../gen-libs/gmp']
          jniLibs.srcDirs += ['../distribution/ecc/lib']
          jniLibs.srcDirs += ['../distribution/smodbus/lib']
          resources.includes = [ 'res/parameters.txt' ]
      }
  }
  
  externalNativeBuild {
      cmake {
          path 'src/main/cpp/CMakeLists.txt'
      }
  }
  }dependencies {
      implementation fileTree(include: ['*.jar'], dir: 'libs')
      implementation 'com.android.support:appcompat-v7:25.2.0'
      implementation 'com.android.support.constraint:constraint-layout:1.0.1'
      // uncomment out this one to generate lib binaries,
      // and also uncommented out the one in settings.gradle
      // after lib is generated, just comment them out again
      //implementation project(':gen-libs')
  }
  </code></pre>
  
  <p>Any help will be appreciated!!</p>