Android Question No Resourse Found

Stefano Di Chiano

Active Member
Licensed User
Hi,
I was making a project that used to work until I tried to implement Firebase Google Authentication. As said in the tutorial I went on the SDK Manager and downloaded all reccomended resources and now I'm getting this error:
B4A Version: 10.0
Java Version: 8
Parsing code. (0.00s)
Building folders structure. (0.06s)
Compiling code. (0.18s)
Compiling layouts code. (0.04s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. Error
AndroidManifest.xml:138: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.IAPTheme').

This is my Manifest:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="28"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)
'End of default text.
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)
CreateResourceFromFile(Macro, FirebaseAdMob.FirebaseAds)
CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)

How can I solve this?
 

Stefano Di Chiano

Active Member
Licensed User
I also updated B4a to the last version. New error message:
B4A Version: 10.2
Java Version: 8
Parsing code. (0.00s)
Building folders structure. (0.04s)
Compiling code. (0.03s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. (0.00s)
Compiling debugger engine code. (0.00s)
Compiling generated Java code. (0.02s)
Convert byte code - optimized dex. (3.72s)
Packaging files. Error
AndroidManifest.xml:146: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.IAPTheme').

AAPT path: C:\Android\tools\..\build-tools\27.0.1\aapt.exe
Exit code:1

EDIT: I removed the firebase snippets that I don't use (Ads, Analytics and Notifications) from the manifest and it worked.
 
Last edited:
Upvote 0
Top