Android Question AndroidX support.v7 does not exist error

Discussion in 'Android Questions' started by Multiverse app, Aug 3, 2019.

  1. Multiverse app

    Multiverse app Active Member Licensed User

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

    Code:
    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

    upload_2019-8-3_21-26-47.png


    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.
     
  2. Multiverse app

    Multiverse app Active Member Licensed User

    After going through this answer, I replaced
    Code:
    #Extends: android.support.v7.app.AppCompatActivity
    with
    Code:
    #Extends: androidx.appcompat.app.AppCompatActivity
    Now I get this error:
    Code:
    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
     
  3. Almora

    Almora Active Member Licensed User

  4. Erel

    Erel Administrator Staff Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice