Reputation: 31
I have imported modules(multiple projects). after importing them the sync was perfect but then when tried running the app , it showed this error error
here is my build.gradle file:
apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services'
android { compileSdkVersion 29 buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.example.secondyr"
minSdkVersion 16
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies { implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.firebase:firebase-database:19.3.1'
implementation 'com.google.firebase:firebase-storage:19.1.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation project(path: ':SecondYearCivil')
implementation project(path: ':SecondYearCs')
implementation project(path: ':SecondYearElectronics')
implementation project(path: ':SecondYearElectronicsandTelecom')
implementation project(path: ':SecondYearProd')
implementation project(path: ':SecondYearMech')
implementation project(path: ':SecondYearTextile')
implementation project(path: ':SecondYearIT')
implementation project(path: ':SecondYearETC')
}
I have seen similar questions on stackoverflow but i int understand . i read about this solution to change the package name in .json file to the package name in manisfest , i didnt understand which one to change becuase since there were many package name's
Upvotes: 2
Views: 7427
Reputation: 154
Check your package name on your google-services.json it should be same with your local package name of your app
Something like this
"client_info": {
"mobilesdk_app_id": "1:6596814400689:android:65d6f25f5006145",
"android_client_info": {
"package_name": "com.my.app.package.name"
}
Upvotes: 2