我的应用发布了很长时间。现在我正在进行更新,当我将我的谷歌播放服务更新到9.0.1时,我的应用在每次启动时都会继续显示ANR状态,并向我展示完整的空白屏幕。 我所做的只是添加了更新所需的新依赖项。 这里是build.gradle
文件应用程序:更新至Google Play服务9.0.1后的每次发布ANR Android
apply plugin: 'com.android.application'android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId 'xxxxxxxxxxxxxxxxxxxxxx'
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "5.2"
ndk {
moduleName "Constants"
}
sourceSets.main {
jni.srcDirs = []
jniLibs.srcDir "src/main/libs"
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}}dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.mcxiaoke.volley:library:1.0.18'
compile 'com.android.support:cardview-v7:23.4.0'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.google.android.gms:play-services-gcm:9.0.1'
compile 'com.google.android.gms:play-services-ads:9.0.1'
compile 'com.devbrackets.android:exomedia:2.5.6'
compile 'com.google.android.gms:play-services-analytics:9.0.1'}apply plugin: 'com.google.gms.google-services'
这里是应用层面build.gradle
:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.google.gms:google-services:3.0.0'
}}allprojects {
repositories {
jcenter()
}
}task clean(type: Delete) {
delete rootProject.buildDir
}
和日志中显示没有错误。任何人都可以帮助我解决这个问题吗? Thankyou。
那么它变成我的NDK代码中的错误..它没有显示我在我的LogCat中,但调试后我发现它。但仍然感谢您的详细解答。 – awaistoor