включает мультидекс, но все равно сбой приложения скачать из магазина игр - PullRequest
0 голосов
/ 04 июля 2019

Приложение работало нормально на Android Studio, но всякий раз, когда загрузка приложения из Play Store приводила к сбою на Android-нуге или ниже, тогда я включал мультидекс, но все та же ошибка

Сборка Gradle:

    compileSdkVersion 29
    buildToolsVersion "29.0.0"
    defaultConfig {
        applicationId "com.------.--"
        minSdkVersion 15                    //lowsdk then 20
        targetSdkVersion 29
        multiDexEnabled true               //enable multiDexEnabled
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

зависимости:

dependencies {

    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'com.google.android.gms:play-services-ads:18.0.0'
    implementation 'com.android.support:multidex:1.0.3'
    implementation 'com.google.android.material:material:1.0.0'


    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.2.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

}

MainActivity:


public class MainActivity extends AppCompatActivity  implements View.OnClickListener  {

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base)
        MultiDex.install(this)
    }

   continue

}

Изображение трассировки стека

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...