Android Question Go back to older sdk-version under b4a 10.2

schimanski

Well-Known Member
Licensed User
Longtime User
Seems not to be simple to use an older sdk-version. Is it not possible with B4A 10.2? I have download version 28, set the new path for the sdk-manager and the android.jar, but the system always compiles with AndroidX SDK. I want to go back to use the dji-lib again.





 

schimanski

Well-Known Member
Licensed User
Longtime User
I also deleted all jetified androidx.jar-files, but the same problem. How can i switch to an older sdk? Perhaps i have a mistake in thinking ?
 
Upvote 0

schimanski

Well-Known Member
Licensed User
Longtime User
You are doing it for DJI, right? You should use AndroidX SDK.
Yes, I only want to run the DJI-lib. Before updating, everything runs fine.

try remove the file androidx.txt from [sdkpath]\extras\b4a_remote to force the ide to use the Android Support Artifacts.

I have doen it, but than, i got the following error:

B4X:
B4A Version: 10.2
Java Version: 8
Parse den Code.    (0.02s)
Building folders structure.    (0.15s)
Kompiliere den Code.    (0.09s)
Kompiliere Layoutcode.    (0.01s)
Organisiere Libraries.    (0.00s)
    (Android Support Library)
Generiere R Datei.    Error
c:\android-sdk-windows\tools\..\extras\b4a_remote\androidx\constraintlayout\constraintlayout\2.0.1\unpacked-constraintlayout-2.0.1\res\values\values.xml:335: error: Attribute "android:alpha" has already been defined
c:\android-sdk-windows\tools\..\extras\b4a_remote\androidx\constraintlayout\constraintlayout\2.0.1\unpacked-constraintlayout-2.0.1\res\values\values.xml:338: error: Attribute "android:translationX" has already been defined
c:\android-sdk-windows\tools\..\extras\b4a_remote\androidx\constraintlayout\constraintlayout\2.0.1\unpacked-constraintlayout-2.0.1\res\values\values.xml:338: error: Attribute "android:translationY" has already been defined
c:\android-sdk-windows\tools\..\extras\b4a_remote\androidx\constraintlayout\constraintlayout\2.0.1\unpacked-constraintlayout-2.0.1\res\values\values.xml:338: error: Attribute "android:translationZ" has already been defined
c:\android-sdk-windows\tools\..\extras\b4a_remote\com\android\support\support-compat\28.0.0\unpacked-support-compat-28.0.0\res\values\values.xml:36: error: Attribute "fontProviderFetchStrategy" already defined with incompatible format.
c:\android-sdk-windows\tools\..\extras\b4a_remote\androidx\core\core\1.3.1\unpacked-core-1.3.1\res\values\values.xml:127: Original attribute defined here.
c:\android-sdk-windows\tools\..\extras\b4a_remote\com\android\support\support-compat\28.0.0\unpacked-support-compat-28.0.0\res\values\values.xml:51: error: Attribute "fontProviderFetchTimeout" already defined with incompatible format.
c:\android-sdk-windows\tools\..\extras\b4a_remote\androidx\core\core\1.3.1\unpacked-core-1.3.1\res\values\values.xml:139: Original attribute defined here.
c:\android-sdk-windows\tools\..\extras\b4a_remote\com\android\support\support-compat\28.0.0\unpacked-support-compat-28.0.0\res\values\values.xml:61: error: Attribute "fontStyle" already defined with incompatible format.
c:\android-sdk-windows\tools\..\extras\b4a_remote\androidx\core\core\1.3.1\unpacked-core-1.3.1\res\values\values.xml:147: Original attribute defined here.

Removing the androidx-folder is also no solution...
 
Upvote 0

schimanski

Well-Known Member
Licensed User
Longtime User
I have tried both sdks in the thread, but the same problems:

B4X:
B4A Version: 10.2
Java Version: 8
Parse den Code.    (0.01s)
Building folders structure.    (0.04s)
Kompiliere den Code.    (0.02s)
Kompiliere Layoutcode.    (0.00s)
Organisiere Libraries.    (9.14s)
    (AndroidX SDK)
Generiere R Datei.    Error
c:\android\tools\..\extras\b4a_remote\androidx\constraintlayout\constraintlayout\2.0.1\unpacked-constraintlayout-2.0.1\res\values\values.xml:335: error: Attribute "android:alpha" has already been defined
c:\android\tools\..\extras\b4a_remote\androidx\constraintlayout\constraintlayout\2.0.1\unpacked-constraintlayout-2.0.1\res\values\values.xml:338: error: Attribute "android:translationX" has already been defined
c:\android\tools\..\extras\b4a_remote\androidx\constraintlayout\constraintlayout\2.0.1\unpacked-constraintlayout-2.0.1\res\values\values.xml:338: error: Attribute "android:translationY" has already been defined
c:\android\tools\..\extras\b4a_remote\androidx\constraintlayout\constraintlayout\2.0.1\unpacked-constraintlayout-2.0.1\res\values\values.xml:338: error: Attribute "android:translationZ" has already been defined
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…