我正在尝试使用 Android Studio 构建一个旧项目,但该过程失败。我得到的错误信息是这样的:
错误:无法读取本机 JSON 数据使用 JsonReader.setLenient(true) 在第 1 行第 1 列路径处接受格式错误的 JSON
我相信应用程序的 build.gradle 文件是导致错误的原因。该文件的代码是:
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 …Run Code Online (Sandbox Code Playgroud)