Android Question AndroidX support.v7 does not exist error

Multiverse app

Active Member
Licensed User
Longtime User
After upgrading to AndroidX, all of my projects have broken.
This is the error in the latest project:

B4X:
B4A Version: 9.30
Java Version: 8
Parsing code.    (0.48s)
Building folders structure.    (0.01s)
Compiling code.    (2.55s)
Compiling layouts code.    (0.17s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Generating R file.    (2.02s)
Compiling debugger engine code.    (7.57s)
Compiling generated Java code.    Error
javac 1.8.0_181
src\com\multiverse\jarvis\starter.java:3: error: package android.support.v7.app does not exist
import android.support.v7.app.AppCompatDelegate;
                             ^
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

These are the imports




The Additional lib folder is located in "C:\B4A"
All the latest SDKs are installed.

Were there any additional steps i had to take while upgrading to AndroidX? I followed this tutorial.
 

Multiverse app

Active Member
Licensed User
Longtime User
After going through this answer, I replaced
B4X:
#Extends: android.support.v7.app.AppCompatActivity
with
B4X:
#Extends: androidx.appcompat.app.AppCompatActivity

Now I get this error:
B4X:
B4A Version: 9.30
Java Version: 8
Parsing code.    (0.42s)
Building folders structure.    (0.01s)
Compiling code.    (2.28s)
Compiling layouts code.    (0.05s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Generating R file.    (1.82s)
Compiling debugger engine code.    (5.31s)
Compiling generated Java code.    Error
javac 1.8.0_181
src\com\multiverse\jarvis\starter.java:3: error: package android.support.v7.app does not exist
import android.support.v7.app.AppCompatDelegate;
                             ^
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.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…