Android Question [Solved] AndroidX SDK / Beta 9.30#3 / issue "package ....widget.RecyclerView does not exist"

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

  1. fredo

    fredo Active Member Licensed User

    After switching to the B4A IDE beta 9.30 including changing the SDK to AndoidX the following error message appears when compiling:

    Code:
    B4A Version: 9.30 BETA #3
    Java Version: 
    11
    Parsing code.    (
    0.44s)
    Building folders structure.    (
    0.08s)
    Compiling code.    (
    0.31s)
    Compiling layouts code.    (
    0.02s)
    Organizing libraries.    (
    0.00s)
        (AndroidX SDK)
    Generating R 
    file.    (0.00s)
    Compiling generated Java code.    Error
    B4A line: 
    702
    RVMain.Adapter = ExpandableAdapter
    src\yyyy\ratimestamper.java:
    2694: error: package android.support.v7.widget.RecyclerView does not exist
    parent._rvmain.setAdapter((android.support.v7.widget.RecyclerView.Adapter)(parent._expandableadapter.getObject()));
                                                                     ^


    The environment:

    2019-07-02_19-00-44.png

    The Jetify Message:
    2019-07-02_19-25-39.png
    Compile tries with and without AppComp lib:
    2019-07-02_19-24-05.png

    Main #AdditionalJar situation:
    2019-07-02_19-28-45.png
    RV in SDK:
    2019-07-02_19-36-16.png

    The author of the Recyclerview lib is not reachable looking into this at the moment,
    so how can I restore the "before SDK"?
     
    Last edited: Jul 3, 2019
  2. asales

    asales Well-Known Member Licensed User

    I got the same error with this library:

    Code:
    Compiling generated Java code.    Error
    B4A line: 
    114
    Activity.AddView(arv, 0, pnlAB.Height, 100%x100
    javac 
    1.8.0_92
    src\br\com\as2\vf\vingadores\premios.java:
    533: error: cannot access RecyclerView
    mostCurrent._
    activity.AddView((android.view.View)(mostCurrent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv7.getObject()),(int) (0),mostCurrent._pnlab.getHeight(),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (100),mostCurrent.activityBA),(int) (anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (100),mostCurrent.activityBA)-mostCurrent._pnlab.getHeight()));
                                                                                                                                              ^
      class 
    file for android.support.v7.widget.RecyclerView not found
    @alimanam3386 is not reachable?
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    android-support-v4.jar is a very old version. You should delete it.

    Can you upload a small project that demonstrates this error?
     
    fredo likes this.
  4. fredo

    fredo Active Member Licensed User

    Attached Files:

  5. Erel

    Erel Administrator Staff Member Licensed User

    Why aren't you using xCustomListView?

    Can you send me Amir_RVExpandable library?
     
    Peter Simpson likes this.
  6. Erel

    Erel Administrator Staff Member Licensed User

    It compiles fine here after I jetified the library. I'm running an unreleased version that includes a fix for the inner classes conversion. I will release it.
     
    Peter Simpson and fredo like this.
  7. Erel

    Erel Administrator Staff Member Licensed User

    Test it with beta #4.
     
  8. fredo

    fredo Active Member Licensed User

    This solved the issue.
    Thank you for your quick response!
     
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