Android Question Cannot compile app

Richard Phipps

Member
Licensed User
Longtime User
APOLOGIES I FIXED THIS!!


Hi. I havnt used b4a for sometime so i updated the SDK and resources and am using javac 19.0.02

On compiling to my Samsung s25 Ultra i get this error:

"Linking resources Error
res\values-v20\theme.xml:6: error: style attribute 'android:attr/windowOptOutEdgeToEdgeEnforcement' not found.
error: failed linking references."

How do I fix this please
 
Last edited:

Alex_197

Well-Known Member
Licensed User
Longtime User
APOLOGIES I FIXED THIS!!


Hi. I havnt used b4a for sometime so i updated the SDK and resources and am using javac 19.0.02

On compiling to my Samsung s25 Ultra i get this error:

"Linking resources Error
res\values-v20\theme.xml:6: error: style attribute 'android:attr/windowOptOutEdgeToEdgeEnforcement' not found.
error: failed linking references."

How do I fix this please
please read carefully this info https://www.b4x.com/b4a.html
 
Upvote 0

Maxcfgos

Member
Licensed User
Try this:

1. Update your "android.jar" Path​

The most likely culprit is that your B4A is still pointing to an older version of the Android platforms (like 33 or 34).

  1. Open B4A.
  2. Go to Tools > Configure Paths.
  3. Look at the android.jar path. It probably looks something like: C:\Android\platforms\android-34\android.jar
  4. Change it to point to android-35 (or the highest version you have downloaded): C:\Android\platforms\android-35\android.jar

2. Check the SDK Manager​

If you don't see an android-35 folder in your SDK path:

  1. Open the B4A SDK Manager.
  2. Ensure that Platforms;android-35 is installed.
  3. Also, ensure Build-Tools (version 35.0.0 or higher) is installed.

3. Update the Manifest (If needed)​

If you are specifically trying to target the latest Android features on your S25 Ultra, ensure your Manifest contains the correct targetSdkVersion.

  1. Go to the Manifest Editor.
  2. Ensure your target SDK is set to 35: android:targetSdkVersion="35"
 
Upvote 0
Top