Android Question Compiling with API 35

RichardN

Well-Known Member
Licensed User
Longtime User
After the necessary changes I am attempting to update my apps to API 35.

When the compilation is taking place I observe the following in the dialog:
Compiling resources (4.85s)
Linking resources (1.29s)
build tools: 34.0.0, android jar: android-35
Compiling debugger engine code. (2.37s)
Compiling generated Java code. (7.62s)
Why am I seeing 'build tools: 34.0.0' ? Compilation appears otherwise correct. Is this normal behaviour or have I missed something in setting up the SDK for API 35?
 

Cliff McKibbin

Member
Licensed User
I modified my targetSdkVersion to 35 as follows:

B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="35"/>
<supports-screens android:largeScreens="true" 
    android:normalScreens="true" 
    android:smallScreens="true" 
    android:anyDensity="true"/>)

but the compile showed android jar still at 34 as follows:

B4X:
B4A Version: 13.30
Parsing code.    (0.08s)
    Java Version: 19
Building folders structure.    (0.05s)
Running custom action.    (0.04s)
Compiling code.    (0.08s)
Compiling layouts code.    (0.01s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Compiling resources    (0.04s)
Linking resources    (0.25s)
    build tools: 34.0.0, android jar: android-34
Compiling generated Java code.    (0.05s)
Finding libraries that need to be dexed.    (0.01s)

I loaded the update to my device but the main menu screen which has menu items in a 'custom list view' was not lined up and I couldn't see the top two menu items.

I think we are going to need a new B4A version with the proper SDK update to 35.
Thanks, Cliff McKibbin
 
Upvote 0

Flavio SOuza

Member
Licensed User
Longtime User
I modified my targetSdkVersion to 35 as follows:

B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="35"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)

but the compile showed android jar still at 34 as follows:

B4X:
B4A Version: 13.30
Parsing code.    (0.08s)
    Java Version: 19
Building folders structure.    (0.05s)
Running custom action.    (0.04s)
Compiling code.    (0.08s)
Compiling layouts code.    (0.01s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Compiling resources    (0.04s)
Linking resources    (0.25s)
    build tools: 34.0.0, android jar: android-34
Compiling generated Java code.    (0.05s)
Finding libraries that need to be dexed.    (0.01s)

I loaded the update to my device but the main menu screen which has menu items in a 'custom list view' was not lined up and I couldn't see the top two menu items.

I think we are going to need a new B4A version with the proper SDK update to 35.
Thanks, Cliff McKibbin

Follow these steps and try to compile again with version 35 of the sdk. It worked here!

 
Upvote 0
Top