[英]I have changed the Firebase name in my app but still the app loads the old firebase
I change all the setting to my own settings. 我将所有设置更改为自己的设置。 the firebase settings is my own.
firebase的设置是我自己的。
"firebase_url": "https://xxxxxxxxx.firebaseio.com",
I rebuild the app in android studio, the build apk. 我在android studio中重建应用程序,即生成apk。 uppload it to my phone, when i then try it, it still have the old firebase in the app.
将其上传到我的手机上,当我再尝试时,它在应用程序中仍然有旧的firebase。 I dont now what to do, and hope someone can help me.
我现在不做什么,并希望有人可以帮助我。
Uppdate: 更新时间:
Can it be something in the package names? 包名称中可以包含吗? This is the name i have.
这是我的名字。
root/app/build.gradle 根/应用程序/ build.gradle
applicationId: com.xxxxxxx.user.app
root/app/src/main/AndroidManifest root / app / src / main / AndroidManifest
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xxxxxxx.app">
Root/app/google-services.json 根目录/app/google-services.json
{
"project_info": {
"project_number": "xxxxxxxxxxxxxxxxxxx",
"firebase_url": "https://xxxxxxx-user.firebaseio.com",
"project_id": "xxxxxxx-user",
"storage_bucket": "xxxxxxx-user.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "xxxxxxxxxxxxxxxxxxxxxxxxxx",
"android_client_info": {
"package_name": "com.xxxxxx.user.app"
}
},
Firebase Console: Firebase控制台:
Project name : xxxxxxx-user
Project ID : xxxxxxx-user
root/app/src/main/java/com/xxxxxxx/user/app/Helper root / app / src / main / java / com / xxxxxxx / user / app / Helper
package com.xxxxxxx.user.app.Helper;
make sure to create new google-services.json in firebase, or delete the one already in your project root folder. 确保在firebase中创建新的google-services.json,或删除项目根文件夹中已有的一个。
From the Firebase Console: 从Firebase控制台:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.