android - Upgraded to Firebase and having many issues now restarting app -
i've upgraded firebase gcm. forced me upgrade build tools ect. app uses play services check subscription status, , other wise it's basic push talk application. running fine on gcm build tools 22... i've implemented firebase fine , works properly. problem i'm having no matter 3 of activities launch or (widget, notification, icon) results in anr. mind first time launch activities run expected. activity launched second time gives anr. going on here?
log errors
06-11 02:45:49.913 32009-32009/com.cb3g.channel19 w/displaylistcanvas: displaylistcanvas started on unbinded rendernode (without mowningview) 06-11 02:45:59.883 32009-32030/com.cb3g.channel19 e/dynamitemodule: failed load module descriptor class: didn't find class "com.google.android.gms.dynamite.descriptors.com.google.firebase.auth.moduledescriptor" on path: dexpathlist[[zip file "/data/app/com.cb3g.channel19-3/base.apk"],nativelibrarydirectories=[/data/app/com.cb3g.channel19-3/lib/arm64, /vendor/lib64, /system/lib64]] 06-11 02:45:59.883 32009-32030/com.cb3g.channel19 w/resourcesmanager: gettoplevelresources: /data/app/com.google.android.gms-2/base.apk / 1.0 running in com.cb3g.channel19 rsrc of package com.google.android.gms 06-11 02:49:36.923 32009-32009/com.cb3g.channel19 w/audiomanager: setstreammute deprecated. adjuststreamvolume should used instead.
build.gradle:
android { signingconfigs { config { } } defaultconfig { applicationid "com.cb3g.channel19" minsdkversion 16 targetsdkversion 23 versioncode 278 versionname "2.1" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt' } } compilesdkversion 23 buildtoolsversion '22.0.1' } dependencies { compile 'com.squareup.okhttp3:okhttp:3.3.1' compile 'com.google.firebase:firebase-messaging:9.0.2' compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.android.support:recyclerview-v7:23.4.0' compile 'com.google.android.gms:play-services-gcm:9.0.2' compile 'com.google.android.gms:play-services:9.0.2' compile 'com.google.android.gms:play-services-ads:9.0.2' compile 'com.android.support:support-v4:23.4.0' compile 'com.android.support:design:23.4.0' } apply plugin: 'com.google.gms.google-services' buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.1.2' classpath 'com.google.gms:google-services:3.0.0' } } allprojects { repositories { jcenter() } }
manifest:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.cb3g.channel19"> <uses-permission android:name="android.permission.record_audio" /> <uses-permission android:name="android.permission.internet" /> <uses-permission android:name="com.android.vending.billing" /> <uses-permission android:name="android.permission.bluetooth" /> <uses-permission android:name="android.permission.wake_lock" /> <uses-permission android:name="android.permission.broadcast_sticky" /> <uses-permission android:name="android.permission.modify_audio_settings" /> <uses-permission android:name="android.permission.bluetooth_admin" /> <uses-permission android:name="android.permission.access_network_state" /> <uses-permission android:name="android.permission.read_phone_state" /> <uses-permission android:name="android.permission.vibrate" /> <uses-permission android:name="android.permission.manage_documents" /> <uses-permission android:name="android.permission.clear_app_cache" /> <uses-permission android:name="android.permission.read_external_storage" /> <uses-permission android:name="android.permission.write_external_storage" /> <application android:allowbackup="false" android:icon="@drawable/smallicon" android:label="@string/app_name" android:persistent="true" android:theme="@style/mytheme" android:value="aizasyadfadfaljklkjkldfk"> <activity android:name=".main_activity" android:launchmode="singletask" android:statenotneeded="true" android:windowsoftinputmode="adjustnothing|statealwayshidden"/> <activity android:name=".settings_activity" android:statenotneeded="true" android:theme="@style/pmstyle" android:windowsoftinputmode="adjustpan|statealwayshidden"/> <activity android:name=".login_activity" android:statenotneeded="true" android:theme="@style/mytheme" android:windowsoftinputmode="adjustpan|statealwayshidden" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> <intent-filter android:priority="247483647"> <action android:name="android.intent.action.voice_command" /> <category android:name="android.intent.category.default" /> </intent-filter> </activity> <service android:name=".radio_service" android:exported="false"/> <service android:name=".myfcmlistenerservice" android:exported="false"> <intent-filter> <action android:name="com.google.firebase.messaging_event" /> </intent-filter> </service> <receiver android:name=".channel19"> <intent-filter> <action android:name="android.appwidget.action.appwidget_update" /> </intent-filter> <meta-data android:name="android.appwidget.provider" android:resource="@xml/channel19_info" /> </receiver> </application> </manifest>
what cause anr upon returning activity?
update: without firebase compile app runs correctly. ive added firebase crash compile attempt firebase log of situation no avail here dependencies.
`compile 'com.google.firebase:firebase-messaging:9.0.2' `compile 'com.google.firebase:firebase-crash:9.0.2'
Comments
Post a Comment