-
Notifications
You must be signed in to change notification settings - Fork 25
Java class com/google/firebase/FirebaseApp not found. Please verify the AAR which contains the com/google/firebase/FirebaseApp class is included in your app. #17
Comments
Which version of cocos and firebase cpp sdk do you use? |
I added this , But it's not working ! And then i created a new project named "sampleAdmob" , i also followed the guide https://firebase.google.com/docs/admob/cpp/cocos2d-x . **After completing step : **
I use : Have you built the cocos2dx-cpp-sample with release mode ? Could you please give me a sample project with successful release build ? Thanks you very much @formatCvt ! |
yes, we have about 5 projects with admob integration. Cocos developers made a lot of changes in 3.17 for Android and samples a little bit not valid right now.
|
@formatCvt Thanks you very much! *project.android/gradle.properties:
ref : https://github.com/firebase/quickstart-cpp/blob/master/admob/testapp/build.gradle Hope this help you ! If you cannot solve your problem, plz contact @formatCvt for help ! He is very good 👍 ^^ |
you're welcome =) by the way, don't forget enable Test Ads IDs for development builds (https://developers.google.com/admob/android/test-ads). Using production Ads IDs for developments builds can be reason for account suspension (our account is suspended right now and it is very-very hard to unsuspend account) |
I enabled Test Ads IDs ! Thanks you for your help ! 👍 👍 Have a nice day bro ! |
Uh oh!
There was an error while loading. Please reload this page.
When i build debug mode, (debug.apk) it works fine , but when i build release mode , it error with log :
06-11 09:33:07.161 2083-2109/com.mygame.game1 E/FirebaseInstanceId: Google Play services missing or without correct permission.
06-11 09:33:07.353 2083-2111/com.mygame.game1 E/firebase: Java class com/google/firebase/FirebaseApp not found. Please verify the AAR which contains the com/google/firebase/FirebaseApp class is included in your app.
clazz
06-11 09:33:07.353 2083-2111/com.mygame.game1 A/firebase: Java class com/google/firebase/FirebaseApp not found. Please verify the AAR which contains the com/google/firebase/FirebaseApp class is included in your app.
*build.grade (Project:proj.android)
buildscript {
repositories {
google()
jcenter()
}
}
allprojects {
repositories {
google()
jcenter()
}
}
*build.grade (Module App)
......
dependencies {
}
apply plugin: 'com.google.gms.google-services'
Is my application missing the firebase-ads-x-x.aar file ?
Can someone help me ? Thanks you very much!
The text was updated successfully, but these errors were encountered: