Google-services.json file not found in assets

I have searched the whole community and tried all methods but still facing this error. Please help me to solve this issue. Thanks in advance.

Kodular is unable to compile this project.
The compiler error output was
[ReadBuildInfo] Starting Task
[ReadBuildInfo] Task succeeded in 0.004 seconds
[LoadComponentInfo] Starting Task
[LoadComponentInfo] INFO: Generating assets…
[LoadComponentInfo] Component assets needed, n = 7
[LoadComponentInfo] INFO: Generating activities…
[LoadComponentInfo] Component activities needed, n = 0
[LoadComponentInfo] INFO: Component “cn.kevinkun.KevinkunEnhance.KevinkunEnhance” does not specify activityMetadata
[LoadComponentInfo] Component activity metadata needed, n = 0
[LoadComponentInfo] INFO: Generating broadcast receivers…
[LoadComponentInfo] INFO: Component “cn.kevinkun.KevinkunEnhance.KevinkunEnhance” does not specify contentProviders
[LoadComponentInfo] INFO: Generating libraries…
[LoadComponentInfo] Libraries needed, n = 35
[LoadComponentInfo] INFO: Component “cn.kevinkun.KevinkunEnhance.KevinkunEnhance” does not specify metadata
[LoadComponentInfo] Component metadata needed, n = 0
[LoadComponentInfo] INFO: Generating Android minimum SDK…
[LoadComponentInfo] INFO: Generating native libraries…
[LoadComponentInfo] Native Libraries needed, n = 0
[LoadComponentInfo] INFO: Generating permissions…
[LoadComponentInfo] usesLocation = False
[LoadComponentInfo] Permissions needed, n = 16
[LoadComponentInfo] INFO: Component “cn.kevinkun.KevinkunEnhance.KevinkunEnhance” does not specify queries
[LoadComponentInfo] INFO: Component “cn.kevinkun.KevinkunEnhance.KevinkunEnhance” does not specify services
[LoadComponentInfo] INFO: Component “cn.kevinkun.KevinkunEnhance.KevinkunEnhance” does not specify xmls
[LoadComponentInfo] Component xmls needed, n = 0
[LoadComponentInfo] INFO: Generating component broadcast receivers…
[LoadComponentInfo] Task succeeded in 0.005 seconds
[KodularCommissionAnalyzer] Starting Task
[KodularCommissionAnalyzer] Task succeeded in 0.0 seconds
[PrepareAppIcon] Starting Task
[PrepareAppIcon] INFO: Creating mipmap dirs…
[PrepareAppIcon] INFO: Generating icons…
[PrepareAppIcon] Generating icons for mipmap-mdpi
[PrepareAppIcon] Generating icons for mipmap-hdpi
[PrepareAppIcon] Generating icons for mipmap-xhdpi
[PrepareAppIcon] Generating icons for mipmap-xxhdpi
[PrepareAppIcon] Generating icons for mipmap-xxxhdpi
[PrepareAppIcon] Task succeeded in 0.297 seconds
[XmlConfig] Starting Task
[XmlConfig] INFO: Creating animation xml
[XmlConfig] Creating zoom_enter.xml
[XmlConfig] Creating fadeout.xml
[XmlConfig] Creating slide_v_exit.xml
[XmlConfig] Creating fadein.xml
[XmlConfig] Creating zoom_exit.xml
[XmlConfig] Creating slide_v_enter.xml
[XmlConfig] Creating zoom_exit_reverse.xml
[XmlConfig] Creating slide_v_enter_reverse.xml
[XmlConfig] Creating zoom_enter_reverse.xml
[XmlConfig] Creating slide_enter_reverse.xml
[XmlConfig] Creating slide_exit.xml
[XmlConfig] Creating hold.xml
[XmlConfig] Creating slide_enter.xml
[XmlConfig] Creating slide_v_exit_reverse.xml
[XmlConfig] Creating slide_exit_reverse.xml
[XmlConfig] INFO: Creating colors xml
[XmlConfig] INFO: Creating styles xml
[XmlConfig] INFO: Creating provider_path xml
[XmlConfig] INFO: Creating network_security_config xml
[XmlConfig] INFO: Generating adaptive icon file
[XmlConfig] INFO: Generating round adaptive icon file
[XmlConfig] INFO: Generating adaptive icon background file
[XmlConfig] INFO: Creating fragment xml
[XmlConfig] INFO: Creating listview xml
[XmlConfig] INFO: Creating listview-21 xml
[XmlConfig] INFO: Creating drawable xml
[XmlConfig] INFO: Creating drawable-21 xml
[XmlConfig] INFO: Creating strings xml
[XmlConfig] INFO: Firebase components detected, creating firebase config
[XmlConfig] ERROR: google-services.json file not found in assets directory
[XmlConfig] ERROR: There was an error creating the firebase config
[XmlConfig] Task errored in 0.003 seconds
.

You’re app detect Google components, but in asset there’s no Google service file, you can get it from Firebase >project settings >download file named Google service and upload it in your assets

google-services.json file not found in assets directory. This is the main problem why exporting won’t complete

Thanks dear.

1 Like