Hello,please help.I write mistakes. I'm writing a ...
# android
j
Hello,please help.I write mistakes. I'm writing a bug.No matching client found for package name 'com.example.jurajsolarml.simpleapp.dev'.How can I fix it? Thanks I try to run an application and list the error, specifically I want to run a firebase registration. google-services.json "package_name": "com.example.jurajsolarml.simpleapp" Firebase setup: Package name com.example.jurajsolarml.simpleapp
j
No matching client found for package name ‘com.example.jurajsolarml.simpleapp.dev’.
Looks like you’re adding a suffix (
.dev
) to the package name for a buildVariant, you need to update your google-services.json
hackaround: copy the json file to app/src/$buildVariant/ and add the suffix to the package name in that file
j
ok,thanks
That's how you thought it was right?
j
try copying the json file to app/src/debug and change the content like this: “package_name”: “com.example.jurajsolarml.simpleapp.dev”
The error log from your last screenshot tells you explicitly where the plugin looked for the file, but obviously it’s in none of those locations
j
I copied the subor to the debug and changed the package in google-services.json To change all the need? Android resource linking failed Output: C\DOKUMENTy\Workspace\SimpleApp\app\src\main\res\layout\contacts item list.xml9: error: resource string/ivImageView3 (aka com.example.jurajsolarml.simpleapp.dev:string/ivImageView3) not found. C\DOKUMENTy\Workspace\SimpleApp\app\src\main\res\layout\contacts item list.xml17: error: resource string/ivImageView2 (aka com.example.jurajsolarml.simpleapp.dev:string/ivImageView2) not found. C\DOKUMENTy\Workspace\SimpleApp\app\src\main\res\layout\contacts item list.xml33: error: resource string/txtName1 (aka com.example.jurajsolarml.simpleapp.dev:string/txtName1) not found. C\DOKUMENTy\Workspace\SimpleApp\app\src\main\res\layout\contacts item list.xml42: error: resource string/txtName2 (aka com.example.jurajsolarml.simpleapp.dev:string/txtName2) not found. C\DOKUMENTy\Workspace\SimpleApp\app\src\main\res\layout\contacts item list.xml50: error: resource string/txtName3 (aka com.example.jurajsolarml.simpleapp.dev:string/txtName3) not found. error: failed linking file resources. Command: C:\Users\juraj\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\f74952f4cb3ae08b988391875b8a55c9\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\ C:\Users\juraj\AppData\Local\Android\Sdk\platforms\android-28\android.jar\ --manifest\ C:\DOKUMENTy\Workspace\SimpleApp\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\ -o\ C:\DOKUMENTy\Workspace\SimpleApp\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\ -R\ @C:\DOKUMENTy\Workspace\SimpleApp\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\ --auto-add-overlay\ --java\ C:\DOKUMENTy\Workspace\SimpleApp\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\ --proguard-main-dex\ C:\DOKUMENTy\Workspace\SimpleApp\app\build\intermediates\legacy_multidex_aapt_derived_proguard_rules\debug\processDebugResources\manifest_keep.txt\ --custom-package\ com.example.jurajsolarml.simpleapp\ -0\ apk\ -c\ en\ --preferred-density\ xxhdpi\ --output-text-symbols\ C:\DOKUMENTy\Workspace\SimpleApp\app\build\intermediates\symbols\debug\R.txt\ --no-version-vectors Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
j
one problem solved, next problem arrived 😉. Did you do a gradle sync and a rebuild? If yes, check the layout files from the error log for the missing resources
j
Yes, gradle synchro, I'm checking for error linking resource failed.Thanks, Good Jobs :))
👍
I still want to ask, overwrite all packages to .dev in AndroidManifest and Firebase, because then they are not the same? Thank you
j
hm, my question is rather: why do you add the
.dev
suffix at all? Any requirement for that? If yes, you should have been aware of that issue regarding the json file(s). If not, just don’t do it 😉