L LuigiTasca Member Licensed User Longtime User Jul 22, 2019 #1 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
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 B4X founder Staff member Licensed User Longtime User Jul 22, 2019 #2 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: Code: import android.support.v4.widget.CompoundButtonCompat; With: Code: 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. Upvote 0
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: Code: import android.support.v4.widget.CompoundButtonCompat; With: Code: 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.
MarcoRome Expert Licensed User Longtime User Jul 22, 2019 #3 Dcoumentation: https://developer.android.com/jetpack/androidx/migrate File csv: https://developer.android.com/topic...brary/downloads/androidx-artifact-mapping.csv Upvote 0
Dcoumentation: https://developer.android.com/jetpack/androidx/migrate File csv: https://developer.android.com/topic...brary/downloads/androidx-artifact-mapping.csv
L LuigiTasca Member Licensed User Longtime User Jul 22, 2019 #4 Ok, it works. Thank you so much Upvote 0