Android Question Problems with drawable/icon

Waldemar Lima

Well-Known Member
Licensed User
Longtime User
has anyone encountered these problems?

B4X:
B4A Version: 10.70
Parsing code.    (0.10s)
    Java Version: 8
Building folders structure.    (0.02s)
Compiling code.    (0.12s)
Compiling layouts code.    (0.00s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Compiling resources    (0.07s)
Linking resources    Error
AndroidManifest.xml:24: error: resource drawable/icon (aka com.pecatudo.main:drawable/icon) not found.
AndroidManifest.xml:24: error: resource style/LightTheme (aka com.pecatudo.main:style/LightTheme) not found.
error: failed processing manifest.


manifest :

B4X:
'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="14" android:targetSdkVersion="29"/>
<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)

AddApplicationText(
<meta-data
  android:name="com.google.android.geo.API_KEY"
  android:value="AIzaSyBo_4iUxHHPaukNWJyS4ILHwhT8zT4qsf8"/>
)

AddApplicationText(
<uses-library
      android:name="org.apache.http.legacy"
      android:required="false" />
)
AddManifestText(<uses-feature android:name="android.hardware.location.gps"/>)
SetApplicationAttribute(android:usesCleartextTraffic, "true")
AddPermission("android.permission.INTERNET")

AddApplicationText(
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"  />
)
 
Top