Android Question [solved] Example gets buggy when updated to the last GP Server libs

Gunther

Active Member
Licensed User
Longtime User
I had a working Example of the AppCompat given here: https://www.b4x.com/android/forum/threads/b4x-b4xdrawer-sliding-drawer.97828/#content

After upgrading the Google Play services SDK and Android Support Repository with the B4A SDK manager am getting this error below.

The Version of the upgraded files are 47.0.0 now.

After Upgrade the Exapmle wasn't was working any more.

During upgrade I was getting at the last line in B4A SDK manager:
B4X:
done

Warning: File C:\Users\me\.android\repositories.cfg could not be loaded.

The Error msg:
B4X:
B4A Version: 8.80
Parsing code.    (0.01s)
Building folders structure.    (0.07s)
Compiling code.    (0.02s)
Compiling layouts code.    (0.03s)
Organizing libraries.    (2.65s)
Generating R file.    Error
Failed to generate resource table for split ''
C:\Users\me\Documents\B4A Examples\AppCompat\Objects\bin\extra\res2\res\values-v28\values-v28.xml:7: error: Error: No resource found that matches the given name (at 'dialogCornerRadius' with value '?android:attr/dialogCornerRadius').

the referenced file is:
B4X:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="Base.Theme.AppCompat" parent="Base.V28.Theme.AppCompat"/>
    <style name="Base.Theme.AppCompat.Light" parent="Base.V28.Theme.AppCompat.Light"/>
    <style name="Base.V28.Theme.AppCompat" parent="Base.V26.Theme.AppCompat">
        <!-- We can use the platform styles on API 28+ -->
        <item name="dialogCornerRadius">?android:attr/dialogCornerRadius</item>
    </style>
    <style name="Base.V28.Theme.AppCompat.Light" parent="Base.V26.Theme.AppCompat.Light">
        <!-- We can use the platform styles on API 28+ -->
        <item name="dialogCornerRadius">?android:attr/dialogCornerRadius</item>
    </style>
</resources>


This is what is done:
View attachment 76385
 

DonManfred

Expert
Licensed User
Longtime User
Did you forget to change the path to android.jar after you installed the new SDK?

You should select android.jar from platform 28 and set its path in Tools-Configure paths
 
Upvote 0

Gunther

Active Member
Licensed User
Longtime User
Did you forget to change the path to android.jar after you installed the new SDK?

You should select android.jar from platform 28 and set its path in Tools-Configure paths

Thanks, that made sense and solved this issue:
B4X:
from:  C:\android\platforms\android-27\android.jar
to       C:\android\platforms\android-28\android.jar
 
Upvote 0
Top