Android Question Update to v9.3

LuigiTasca

Member
Licensed User
Good morning,
After the update to the versione 9.3 I got this error while I compile my project about some imports in my inline Java codes.

Organizzazione Librerie. (0.49s)
(AndroidX SDK)
Generazione file R. (24.98s)
Compilazione del codice Java prodotto. Error
javac 1.8.0_144
src\com\company\proj\backoffice.java:14: error: package android.support.v4.widget does not exist
import android.support.v4.widget.CompoundButtonCompat;
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error



I imported the recommended items on the SDK manager and then I did jetify on the "jetifier" tool.
Any suggestion?
Thanks
 

Erel

Administrator
Staff member
Licensed User
Inline Java code will not be converted automatically. In most cases it should be very simple to convert it yourself.

For example you need to replace:
B4X:
import android.support.v4.widget.CompoundButtonCompat;
With:
B4X:
import androidx.core.widget.CompoundButtonCompat;
There is a file named androidx-class-mapping.csv in the installation folder that maps between the old classes and the new ones.
 
Top