当前位置: 首页 > 知识库问答 >
问题:

java.lang.NoSuch方法错误:没有静态方法组合测量状态(II)类中的I

连俊智
2023-03-14

我有一个问题,我不知道为什么,还是个新手,请帮忙。

错误:java.lang.NoSuch方法错误:没有静态方法组合测量状态(II)我在类Landroid/support/v7/小部件/ViewUtils;或其超级类(声明android.support.v7.widget.ViewUtils出现在 /data/app/com.example.marvin.test-1/split_lib_dependencies_apk.apk:classes58.dex

构建渐变:

     apply plugin: 'com.android.application'

android {
useLibrary 'org.apache.http.legacy'

compileSdkVersion 27
buildToolsVersion "27.0.2"
defaultConfig {
    applicationId "com.example.marvin.test"
    minSdkVersion 16
    targetSdkVersion 27
    multiDexEnabled true
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', 
{
    exclude group: 'com.android.support', module: 'support-annotations'
})

compile 'com.android.support:appcompat-v7:27.0.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha7'
compile 'com.android.support:design:25.3.1'
compile 'com.google.android.gms:play-services:11.4.0'
compile 'com.google.firebase:firebase-auth:11.4.0'
testCompile 'junit:junit:4.12'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.android.support:multidex:1.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:exifinterface:25.3.1'
}



apply plugin: 'com.google.gms.google-services'

共有1个答案

从元明
2023-03-14

使用相同版本的依赖项

compile 'com.android.support:appcompat-v7:27.0.1'
compile 'com.android.support:design:27.0.1'
compile 'com.android.support:exifinterface:27.0.1'
 类似资料: