When I debug my app, I see many log from Firebase, like these:
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
W/DynamiteModule: Local module descriptor class for com.google.android.gms.crash not found.
but I do not use any Firebase method. In my api manager developer console I've enabled the following service:
Mobile Crash and Performance Reporting API
App Engine Admin API
BigQuery API
Firebase Rules API
Google Cloud APIs
Google Cloud Datastore API
Google Cloud Messaging
Google Cloud SQL
Google Cloud Storage
Google Cloud Storage JSON API
Google Places API Web Service
Google+ API
Identity Toolkit API
Stackdriver Debugger API
Stackdriver Logging API
Stackdriver Monitoring API
Stackdriver Trace API
Token Service API
And these are my dependencies in build.gradle (app):
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'com.android.support:cardview-v7:24.2.1'
compile 'com.android.support:recyclerview-v7:24.2.1'
compile 'com.google.android.gms:play-services:9.4.0'
compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.4.1' //zoom image view
compile 'com.soundcloud.android:android-crop:1.0.1#aar' //crop image
compile 'com.google.android.gms:play-services-ads:9.4.0'
compile "com.google.android.gms:play-services-gcm:9.4.0"
compile 'com.melnykov:floatingactionbutton:1.3.0' //fab
compile ('com.quinny898.library.persistentsearch:library:1.1.0-SNAPSHOT'){exclude group: 'com.nineoldandroids'} //search bar
compile 'com.google.android.gms:play-services-auth:9.4.0'
compile 'com.pkmmte.view:circularimageview:1.1' //circle image view
compile 'org.apache.commons:commons-lang3:3.4'
compile 'com.android.support:multidex:1.0.1'
}
This problem is related to Firebase, I think, but there are another problem. I've an app to change wallpaper. It works with Nougat on Nexus 5 or with Marshmallow on emulator.
I've the following error when I closed it but there is a broadcast with alarm manager in background to change wallpaper:
Thread[2,tid=7185,WaitingInMainSignalCatcherLoop,Thread*=0xaee57000,peer=0x12c560a0,"Signal Catcher"]: reacting to signal 3
then, a message tell me to see traces.txt in anr: https://drive.google.com/file/d/0B8qwgteGjSYIV19iQXZUU2U0S1k/view?usp=sharing
I think that the Firebase's logs doesn't create problem, but I would to resolve the "WaitingInMainSignalCatcherLoop".
Related
mAuth!!.createUserWithEmailAndPassword(email,password)
.addOnCompleteListener(this){ task ->
if (task.isSuccessful){
Toast.makeText(applicationContext,"Successful login",Toast.LENGTH_LONG).show()
var currentUser =mAuth!!.currentUser
//save in database
if(currentUser!=null) {
myRef.child("Users").child(SplitString(currentUser.email.toString())).child("Request").setValue(currentUser.uid)
}
LoadMain()
}else
{
Toast.makeText(applicationContext,"fail login",Toast.LENGTH_LONG).show()
}
}
I get "developer warning for package 'com.example.package' Failed to post notification on channel 'null' See log for more details"
In the log
DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
GooglePlayServicesUtil: Google Play services out of date. Requires 11020000 but found 10932470
Notification: Use of stream types is deprecated for operations other than volume control
Notification: See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case
I have
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:26.0.1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.google.firebase:firebase-core:11.2.0'
compile 'com.google.firebase:firebase-auth:11.2.0'
compile 'com.google.firebase:firebase-database:11.2.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.0'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.0'
}
in build.gradle
I've been lookin at this https://developer.android.com/guide/topics/ui/notifiers/notifications.html#ManageChannels, but I don't know how to work on this
your version of play services is old.
use latest google play services in gradle:
dependencies {
compile 'com.google.android.gms:play-services:11.2.0'
}
For Oreo Copatability you must use channels and group them to run on Oreo (android O) otherwise your notifications will be dropped.
Use this link to Learn more about channels in Android O link
medium link
Read about android O changes here
After having started using Firebase for event logging in my android app I keep getting these error messages when I fire up my app:
E/System: java.lang.IllegalStateException: The database '/...folder here.../google_app_measurement_local.db' is not open.
at android.database.sqlite.SQLiteDatabase.throwIfNotOpenLocked(SQLiteDatabase.java:2169)
at android.database.sqlite.SQLiteDatabase.createSession(SQLiteDatabase.java:365)
at android.database.sqlite.SQLiteDatabase$1.initialValue(SQLiteDatabase.java:84)
at android.database.sqlite.SQLiteDatabase$1.initialValue(SQLiteDatabase.java:83)
at java.lang.ThreadLocal$Values.getAfterMiss(ThreadLocal.java:430)
at java.lang.ThreadLocal.get(ThreadLocal.java:65)
at android.database.sqlite.SQLiteDatabase.getThreadSession(SQLiteDatabase.java:359)
at android.database.sqlite.SQLiteProgram.getSession(SQLiteProgram.java:101)
at android.database.sqlite.SQLiteQuery.setLastStmt(SQLiteQuery.java:96)
at android.database.sqlite.SQLiteQuery.close(SQLiteQuery.java:111)
at android.database.sqlite.SQLiteCursor.close(SQLiteCursor.java:300)
at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:366)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:202)
at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:185)
at java.lang.Thread.run(Thread.java:818)
Here's a snippet from my build.gradle:
dependencies {
compile 'com.android.support:support-v4:25.0.0'
compile 'com.google.firebase:firebase-analytics:9.8.0'
compile 'com.google.firebase:firebase-crash:9.8.0'
compile files('src/main/resources/simple-xml-2.7.jar')
compile files('src/main/resources/date4j.jar')
compile 'com.android.support:appcompat-v7:25.0.0'
compile files('src/main/resources/picasso-2.5.2.jar')
}
All I do is call
_firebaseAnalytics = FirebaseAnalytics.getInstance(context);
and then
_firebaseAnalytics.logEvent(FirebaseAnalytics.Event.SHARE, payload);
I have not been able to find any solutions online and am now hoping for help here...
Please move to latest version of firebase SDK. Firebase solved this memory leak issue in their updated sdk. Remove your old SDK and add below line in your gradle file.
compile 'com.google.firebase:firebase-core:11.0.1'
I have just faced with this when enabling strictmode, when adding
compile 'com.google.firebase:firebase-core:9.8.0'
I had to use earlier version:
compile 'com.google.firebase:firebase-core:9.6.0'
I've found latest version from Firebase Android SDK Release Notes
I met this issue today once I started application on my emulator but everything is right yesterday, I haven't edited any changes on the day before. Also the API key is valid after investigating.
Things I've tried:
Downgrading the version of com.google.android.gms services
updating all of services to the latest version
rebuild/clean project
Invalidate/Restart the Android Studio
but the error still exists.
The Logcat shows when the emulator turned on the application:
09-20 09:49:09.261 25985-25985/com.abc.abc I/c: Token loaded from file. Expires in: 174900321 ms.
09-20 09:49:11.339 25985-26088/com.abc.abc W/DynamiteModule: Local module descriptor class for com.google.android.gms.googlecertificates not found.
09-20 09:49:11.341 25985-26088/com.abc.abc I/DynamiteModule: Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:1
09-20 09:49:11.341 25985-26088/com.abc.abc I/DynamiteModule: Selected remote version of com.google.android.gms.googlecertificates, version >= 1
09-20 09:49:11.343 25985-26088/com.abc.abc D/GoogleCertificates: com.google.android.gms.googlecertificates module is loaded
My build.grade(Module:app) compiled those services on my application:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.google.android.gms:play-services-maps:9.4.0'
compile 'com.google.android.gms:play-services-ads:9.4.0'
compile 'com.google.android.gms:play-services-auth:9.4.0'
compile 'com.google.android.gms:play-services-gcm:9.4.0'
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
compile 'com.android.support:design:24.2.1'
compile 'com.android.support:support-v4:24.2.1'
compile 'me.angrybyte.picker:picker:1.2.0'
compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
compile 'com.android.support:recyclerview-v7:24.2.1'
compile 'de.hdodenhof:circleimageview:1.2.1'
}
I found someone who met this problem and ask on this site but I am not sure where the error is caused on my application. Thank you.
UPDATED:
The google map can shows but I cannot be gathered the data of console.log(country code/country name) by clicking the map (onClick function).
I am using Firebase inside my app with Facebook authentication. After the 3th restart of my app, it freezes and then shows an ANR (please see my last question). After some doing some research i found out that something is blocking the main thread. I have no clue why this is happening. The error below show up a couple of times when my app is running (my app does not freeze when this error appears). Does anyone have an idea?
I have included some info below, maybe it helps
Note: Google play services on test device (Samsung SM-G920F) is running version: 9.0.83 (440-121911109)
Getting this error:
05-28 02:35:56.798 29479-29506/? E/DynamiteModule: Failed to 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.package.myapp-1/base.apk"],nativeLibraryDirectories=[/data/app/com.package.myapp-1/lib/arm64, /vendor/lib64, /system/lib64]]
Theads:
Dependencies:
compile 'com.facebook.android:facebook-android-sdk:4.12.1'
compile 'com.google.code.gson:gson:2.6.2'
compile 'com.spotify.sdk:spotify-auth:1.0.0-beta12#aar'
compile 'com.google.firebase:firebase-database:9.0.1'
compile 'com.google.firebase:firebase-auth:9.0.1'
compile 'com.google.firebase:firebase-core:9.0.1'
compile 'com.google.firebase:firebase-crash:9.0.1'
compile 'com.squareup.okhttp3:okhttp:3.3.0'
compile 'com.google.guava:guava:19.0'
compile 'com.google.android.gms:play-services:9.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.squareup.retrofit2:retrofit:2.0.2'
compile 'com.squareup.retrofit2:converter-gson:2.0.2'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.android.support:cardview-v7:23.4.0'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
I had the exact same ANR as you using Firebase and Google Play Services. I solved my problem with the answer in After Upgrading to Google Play Services 9.0.0, App Hangs in DynamiteModulesC -- remove the general play-services and only include the specific play service libraries you need.
I was working my Android app for sending push notifications using Firebase cloud messaging. I was setting up my server referring the guide https://firebase.google.com/docs/server/setup#prerequisites.
My project level build.gradle is like :
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.google.gms:google-services:3.0.0'
}
App level build.grade :
dependencies {
compile 'com.firebase:firebase-client-android:2.5.2'
compile 'com.firebase:geofire:1.1.0'
compile 'com.google.android.gms:play-services-gcm:9.0.0'
compile 'com.google.android.gms:play-services:9.0.0'
compile 'com.google.firebase:firebase-messaging:9.0.0'
compile 'com.google.firebase:firebase-server-sdk:[3.0.0,)'
compile 'com.google.firebase:firebase-core:9.0.0'
}
I have created the service account credentials on the console as well but while I am initializing the SDK referring https://firebase.google.com/docs/server/setup#add_the_sdk
FirebaseOptions options = new FirebaseOptions.Builder()
.setServiceAccount
(new FileInputStream("path/to/serviceAccountCredentials.json"))
.setDatabaseUrl("https://databaseName.firebaseio.com/")
.build();
I am getting compile Error:(116, 21) error: cannot find symbol method setServiceAccount(FileInputStream)
I have checked many places but I am unable to find what I am doing wrong. Any help would be highly appreciated.
In your server project you need to use only the dependency:
com.google.firebase:firebase-server-sdk:[3.0.0,) and remove:
compile 'com.firebase:firebase-client-android:2.5.2'
compile 'com.google.android.gms:play-services-gcm:9.0.0'
compile 'com.google.android.gms:play-services:9.0.0'
compile 'com.google.firebase:firebase-messaging:9.0.0'
compile 'com.google.firebase:firebase-core:9.0.0'
The first is a server sdk while the others are client sdk and they will have conflicts if you try to use them together.
You're including a different version of the Firebase Database SDK than what you have for the other Firebase features:
compile 'com.firebase:firebase-client-android:2.5.2'
If you change it to:
compile 'com.google.firebase:firebase-database:9.0.0'
It will work better.
For more information, see the Firebase documentation for Android developers, from where I copied the line above.