我在我的应用中添加了一些功能,例如AndroidSVG和GoogleAds,然后在lg g2手机上无法正常工作。
上一个app.gradle在后面
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
signingConfigs {
release {
storeFile file('E:\\MobileDev\\Turkey\\android\\TurkeyLiveScore\\tlivescore.jks')
storePassword '!123123'
keyAlias = 'key0'
keyPassword '!123123'
}
}
compileSdkVersion 28
defaultConfig {
applicationId 'com.taraftartv.global.livescores'
minSdkVersion 16
targetSdkVersion 28
versionCode 102
versionName '1.02'
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
flavorDimensions 'normal'
productFlavors {
paid {
dimension = 'normal'
minSdkVersion 16
targetSdkVersion 29
maxSdkVersion 29
signingConfig signingConfigs.release
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.squareup.picasso:picasso:2.71828'
//implementation 'com.caverock:androidsvg-aar:1.3'
implementation 'com.google.firebase:firebase-core:16.0.9'
implementation 'com.google.firebase:firebase-messaging:18.0.0'
//implementation 'com.google.firebase:firebase-ads:17.0.0'
}
apply plugin: 'com.google.gms.google-services'
我在上面的代码中添加了注释库。 我希望任何人都可以帮助我解决这个问题,并帮助我在与lg g2相同的模拟器上调试应用程序。