Wish [solved] B4X Drawer gets buggy when updated to the last GP Server libs

Gunther

Active Member
Licensed User
Longtime User
Hello,

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

The Version of the upgraded files are 47.0.0 now.

Before that it was working well.

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.

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 file is question is this:
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:
upload_2019-1-16_12-43-19.png
 
Last edited:

Gunther

Active Member
Licensed User
Longtime User

Gunther

Active Member
Licensed User
Longtime User
B4XDrawer has nothing to do with AppCompat. Please start a new thread in the questions forum and upload a small project that demonstrates the issue.
It is exactly the give Example from here 100% unchanged: https://www.b4x.com/android/forum/threads/b4x-b4xdrawer-sliding-drawer.97828/#content
Downloaded the Zip, extracted it, started the IDE with the app, Run it in Release Mode - and not working any more with the Msg above.

Yesterday it was working and today after change of the two items - not any more.

This Example is the only one which is not working anymore.

Since it is in the Example of AppCompat used - I am not able to diffrentiate if it a real Bug sourced from the upgrade or just a question item.
 
Last edited:

Gunther

Active Member
Licensed User
Longtime User
SOLVED by DonManfred:

You should select [new] android.jar from platform 28 [it was pointing to 27] 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
 
Top