我在Android Studio上制作了一个应用程序,它运行良好,但是当我制作apk并尝试将其安装在Oppo A7上时,它失败了。这段视频是https://youtu.be/bZWcboOuGu4,我的应用代码是https://github.com/aakashvats2910/pragya,请告诉我我在做什么错。在其他手机上,它可以正常工作并安装正常。
我的build.gradle(:app)看起来像这样:
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.kashipro.ml.pragya"
minSdkVersion 22
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.1.0'
implementation 'com.github.bumptech.glide:glide:4.11.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
// Image cropping dependency
implementation 'com.github.yalantis:ucrop:2.2.4-native'
api 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
// Picasso dependency.
implementation 'com.squareup.picasso:picasso:2.71828'
// Admob sdk
implementation 'com.google.android.gms:play-services-ads:19.1.0'
// Raygun sdk
// Firebase sdk
implementation 'com.google.firebase:firebase-analytics:17.3.0'
implementation 'com.firebaseui:firebase-ui-auth:6.2.0'
implementation 'com.google.firebase:firebase-firestore:21.4.2'
implementation 'com.google.firebase:firebase-storage:19.1.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation files('libs/YouTubeAndroidPlayerApi.jar')
}