Представляем здесь sdk3.14, и проект сборки завершается неудачно, когда включен minifyEnable - PullRequest
0 голосов
/ 23 марта 2020

При представлении здесь sdk3.14, и проект сборки завершается неудачно, когда включен minifyEnable. это журнал

Unexpected error while performing partial evaluation:
  Class       = [com/here/odnp/cell/PlatformCellManagerApi29]
  Method      = [requestCellUpate(Z)V]
  Exception   = [java.lang.IllegalArgumentException] (Can't find common super class of [com/here/odnp/cell/PlatformCellManagerApi29$ImplicitCellInfoListener] (with 1 known super classes) and [com/here/odnp/cell/PlatformCellManagerApi29$ExplicitCellInfoListener] (with 1 known super classes))
Unexpected error while preverifying:
  Class       = [com/here/odnp/cell/PlatformCellManagerApi29]
  Method      = [requestCellUpate(Z)V]
  Exception   = [java.lang.IllegalArgumentException] (Can't find common super class of [com/here/odnp/cell/PlatformCellManagerApi29$ImplicitCellInfoListener] (with 1 known super classes) and [com/here/odnp/cell/PlatformCellManagerApi29$ExplicitCellInfoListener] (with 1 known super classes))
Warning: Exception while processing task java.io.IOException: java.lang.IllegalArgumentException: Can't find common super class of [com/here/odnp/cell/PlatformCellManagerApi29$ImplicitCellInfoListener] (with 1 known super classes) and [com/here/odnp/cell/PlatformCellManagerApi29$ExplicitCellInfoListener] (with 1 known super classes)

и моя конфигурация build.gradle:

android {
    compileSdkVersion(27)
    buildToolsVersion("27.0.3")
    defaultConfig {
        applicationId = "com.sfic.extmse.operator"
        minSdkVersion(19)
        targetSdkVersion(22)
        multiDexEnabled = true
        versionCode = property("APP_VERSION_CODE").toString().toInt()
        versionName = property("APP_VERSION_NAME").toString()
        ndk {
            abiFilters("armeabi", "x86", "armeabi-v7a")
        }
    }
    buildTypes {
        create("preRelease") {
            isMinifyEnabled = true
            isShrinkResources = false
            isDebuggable = false
            isJniDebuggable = false
            isRenderscriptDebuggable = false
            matchingFallbacks = listOf("release")
            proguardFile(getDefaultProguardFile("proguard-android.txt"))
            proguardFile(file("proguard-rules.pro"))
        }
    }
}

Я пытаюсь использовать Proguard, чтобы исправить это:

# HERE
-dontwarn com.here.**
-keep  class com.here.**{*;}
-dontoptimize
-dontshrink

, но это бесполезно .

проект использует android .support, а не androidx. я пытаюсь просто изменить complieSdkVersion с 27 на 29, это успешно, но я не могу изменить поддержку на androidx, потому что мои зависимости используют поддержку

...