Android Question AndroidX for AppCompat

Discussion in 'Android Questions' started by fbritop, Jul 2, 2019.

  1. fbritop

    fbritop Active Member Licensed User

    Do we have to use AndroidX for AppCompat? I´m having this issue after updating the SDK

    Code:
    Organizing libraries.    (0.00s)
        (AndroidX SDK)
    Generating R 
    file.    (0.00s)
    Compiling generated Java code.    Error
    B4A line: 
    796
    Dim s As ACSwitch = Sender
    javac 
    1.8.0_91
    src\cl\abreme\android\aacceso.java:
    420: error: package android.support.v7.widget does not exist
    _s.setObject((android.support.v7.widget.SwitchCompat)(anywheresoftware.b4a.keywords.Common.Sender(mostCurrent.activityBA)));
    Using jdk1.8.0_91/Android-jar 28
     
  2. fbritop

    fbritop Active Member Licensed User

    Fixed with beta#3 @Erel
    Thanks
     
  3. angel_

    angel_ Member Licensed User

    path.jpg
    I have this error with the version 9.30 BETA #4

    Code:
    error: cannot access SwitchCompat
    _swh.setObject((androidx.appcompat.widget.SwitchCompat)(_v.getObject()));
        ^
      class 
    file for android.support.v7.widget.SwitchCompat not found
    Code:
    #Extends: android.support.v7.app.AppCompatActivity
     
  4. asales

    asales Well-Known Member Licensed User

    angel_ likes this.
  5. angel_

    angel_ Member Licensed User

    The library "AppCompat" is in the folder: ...Basic4android\Additional Libraries

    path1.jpg
     
    Last edited: Jul 5, 2019
  6. asales

    asales Well-Known Member Licensed User

  7. angel_

    angel_ 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