错误:使用JsonReader.setLenient(true)在第1行第1列路径$

时间:2019-02-27 12:22:49

标签: android json jsonreader

第一次打开android studio现有项目时出现以下错误错误:使用JsonReader.setLenient(true)在第1行第1列路径$

接受格式错误的JSON

我在android 3.3.1中遇到此错误

我的项目构建文件

buildscript {

repositories {
    google()
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.3.0'


    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
}

allprojects {
repositories {
    google()
    jcenter()
    maven {
        url "https://maven.google.com"
    }
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

App Grade模块文件

apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
    applicationId "xxxxxxxx"
    minSdkVersion 18
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"
    multiDexEnabled true
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    externalNativeBuild {
        cmake {
            cppFlags "-std=c++11"
        }
    }
}
buildTypes {
    debug {
        minifyEnabled true
        useProguard true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    release {
        minifyEnabled true
        debuggable false
        shrinkResources true
        useProguard true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }

    android.applicationVariants.all { variant ->
        variant.outputs.all {
            outputFileName = "DPandStatus_CAD-${variant.name}-vc-${variant.versionCode}-vn-${variant.versionName}.apk"
        }
    }
}
externalNativeBuild {
    cmake {
        path "CMakeLists.txt"
    }
}
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0'
//noinspection GradleCompatible
implementation 'com.android.support:design:28.0.0'
//noinspection GradleCompatible
implementation 'com.android.support:support-v4:28.0.0'
//noinspection GradleCompatible
implementation 'com.android.support:recyclerview-v7:28.0.0'
//noinspection GradleCompatible
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.google.android.gms:play-services-ads:17.0.0'
//    implementation 'com.android.volley:volley:1.0.0'
implementation 'com.loopj.android:android-async-http:1.4.9'
//    implementation 'com.github.bumptech.glide:glide:4.0.0-RC0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
implementation 'com.facebook.android:audience-network-sdk:5.1.0'
}

提前谢谢您。.请帮帮我...上周我陷入困境

0 个答案:

没有答案