You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.
Now the project is packaged as a plug-in, installed in andoird and run with an error,
Because I only use firebase for analysis and keep track of the number of mobile phones running every day, I only added firebase to the game project, added google-services.json as required, and added func _ready():
if Engine.has_singleton("GDFirebase"):
firebase = Engine.get_singleton("GDFirebase")
firebase.initialize({dev_mode = true})
Implement the plugin
AndroidExportPlugin
class AndroidExportPlugin extends EditorExportPlugin:
。 。 。 。 。
10-23 21:19:47.036 16242 16305 E GDFirebase: Firebase Initialization failed, Default FirebaseApp is not initialized in this process happy.games.synthetic.watermelon. Make sure to call FirebaseApp.initializeApp(Context) first.
10-23 21:19:47.036 16242 16305 E GDFirebase: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process happy.games.synthetic.watermelon. Make sure to call FirebaseApp.initializeApp(Context) first.
ready2. I suspect that the library is too old, try to upgrade the library to the latest, and upgrade all modules
3.1 firebase
dependencies {
compileOnly fileTree(dir: './libs', include: ['godot-lib*.aar'])
implementation platform('com.google.firebase:firebase-bom:33.5.0')
implementation 'com.google.firebase:firebase-analytics-ktx:22.1.2'
implementation 'com.google.firebase:firebase-installations-ktx:18.0.0'
implementation 'androidx.work:work-runtime-ktx:2.8.1'
implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.google.android.material:material:1.12.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
}
Manifest merger failed: Attribute property#android.adservices.AD_SERVICES_CONFIG@resource value=(@xml/ga_ad_services_config) from [com.google.android.gms:play-services-measurement-api:22.1.2] AndroidManifest.xml:32:13-58 is also present at [com.google.android.gms:play-services-ads-lite:23.4.0] AndroidManifest.xml:109:13-59 value=(@xml/gma_ad_services_config). Suggestion: add 'tools:replace="android:resource"' to element at AndroidManifest.xml to override.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Problems with use
Because I only use firebase for analysis and keep track of the number of mobile phones running every day, I only added firebase to the game project, added google-services.json as required, and added func _ready():
if Engine.has_singleton("GDFirebase"):
firebase = Engine.get_singleton("GDFirebase")
firebase.initialize({dev_mode = true})
Implement the plugin
AndroidExportPlugin
func _enter_tree() -> void:
Initialization of the plugin goes here.
exportPlugin = AndroidExportPlugin.new()
add_export_plugin(exportPlugin)
func _exit_tree() -> void:
Clean-up of the plugin goes here.
remove_export_plugin(exportPlugin)
exportPlugin = null
class AndroidExportPlugin extends EditorExportPlugin:
。 。 。 。 。
10-23 21:19:47.036 16242 16305 E GDFirebase: Firebase Initialization failed, Default FirebaseApp is not initialized in this process happy.games.synthetic.watermelon. Make sure to call FirebaseApp.initializeApp(Context) first.
10-23 21:19:47.036 16242 16305 E GDFirebase: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process happy.games.synthetic.watermelon. Make sure to call FirebaseApp.initializeApp(Context) first.
ready2. I suspect that the library is too old, try to upgrade the library to the latest, and upgrade all modules
3.1 firebase
dependencies {
compileOnly fileTree(dir: './libs', include: ['godot-lib*.aar'])
implementation platform('com.google.firebase:firebase-bom:33.5.0')
implementation 'com.google.firebase:firebase-analytics-ktx:22.1.2'
implementation 'com.google.firebase:firebase-installations-ktx:18.0.0'
implementation 'androidx.work:work-runtime-ktx:2.8.1'
implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.google.android.material:material:1.12.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
}
2.2 firebaseAdmob
dependencies {
implementation project(path: ':Firebase')
compileOnly fileTree(dir: './libs', include: ['godot-lib*.aar'])
}
Manifest merger failed: Attribute property#android.adservices.AD_SERVICES_CONFIG@resource value=(@xml/ga_ad_services_config) from [com.google.android.gms:play-services-measurement-api:22.1.2] AndroidManifest.xml:32:13-58 is also present at [com.google.android.gms:play-services-ads-lite:23.4.0] AndroidManifest.xml:109:13-59 value=(@xml/gma_ad_services_config). Suggestion: add 'tools:replace="android:resource"' to element at AndroidManifest.xml to override.
The text was updated successfully, but these errors were encountered: