After installing B4A on new notebook I have this error when try to compile my old project (targetSdkVersion="29")
B4X:
B4A Version: 10.50
Parsing code. (0.21s)
Java Version: 11
Building folders structure. (0.02s)
Compiling code. (0.21s)
ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. (0.01s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. Error
d:\android\tools\..\extras\b4a_remote\androidx\savedstate\savedstate\1.1.0\unpacked-savedstate-1.1.0\res\values\values.xml:3: error: Found tag id where item is expected
d:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-viewmodel\2.3.0\unpacked-lifecycle-viewmodel-2.3.0\res\values\values.xml:3: error: Found tag id where item is expected
d:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-runtime\2.3.0\unpacked-lifecycle-runtime-2.3.0\res\values\values.xml:3: error: Found tag id where item is expected
I think that DesignSuport and maybe other Material libraries are not compatible with AndroidX. What are you using these libraries for? There might be better alternatives.
I don’t want to redo a large application, I just need to make small changes. Moreover, on my home computer (sdk 28) everything works fine, but copying the \ platforms \ android-28 folder to this computer did not help. The library versions are the same because i sync them with my home computer, all libraries have been jetized for a long time
I started getting this this morning after installing the recommended SDK updates and then checking the missing androidx annotations (I believe that was what I checked). I'm going to do a system restore on just my Android SDK folder.
I've had a couple of issues too since this morning when I installed recommended SDK updates. I just downloaded an app here and replicated the error. When I copied and pasted the code & manifest into a fresh application the problem went away.
I try to find the origin, and check a run simple app compact activity and jump the error. if i have a large app baseb on appcompact with toolbar, search on tollbar, how i can to chance it ?
Hello, I',m trying to use this payments library. Thanks to Erel we are almost there but for some reason still have this 3 errors. What can be wrong? Many thanks PS: Project with manifest is attached and library is online because of its size: Jar library (11Mb)
I replaced the version number 1.1.0 with 1.0.0 (with the previous one) and now I can compile without errors.
The setting of the version number must be done for all the libraries in error.
Solved by returning to version 1.0.0 of Androidx - Savedstate of the extras folder, deleting the folder of the Android Sdk modified by Android Studio and filling it again with the content of Android SDK Command line tools and the content of the Required Resources (resources_9_20 ). In the extras folder of resources_9_20 is the good version.
And in tools - B4A Sdk Manager, I have not yet reinstalled all the recommended items. I suppose it will also have something to do with it to work for me.