Android Question Conversion to Androidx SDK

Discussion in 'Android Questions' started by Cliff McKibbin, Sep 11, 2019 at 7:32 PM.

  1. Cliff McKibbin

    Cliff McKibbin New Member Licensed User

    The release notes on b4a 9.3 included a step to convert to Androidx SDK.
    Following the installation, the instructions read "bring up the b4a SDK Manager and then install the recommended items".
    I brought it up and there are no recommended items.
    I note that the entry text box for "SDK Manager.bat" is empty. Is there supposed to be a path entered there?

    When I compile, I do get the first list "b4a Version 9.3".

    I would like to get this resolved before loading your new version 9.5.

    Following this initial note above, I tried filling in the box above with the path to the SDK Manager.bat, pressed the button with the arrows on it and did get recommended items. I installed them and now do get the compile with Androidx SDK.
    I also then did the step 'Jetify' and it found no entries. I also 'cleaned' the project.

    However, I now get errors as shown on the attached screen shot.
    Am I missing a library, or something in the 'Manifest Editor' ?
    Thanks for any help.

    Following the above request, I returned to the SDK Manager and reran to bring up items for the install. I received the following error messages:
    This may have something to do with the problem with the Font messages in the compile.

    Error: Exception in thread "main" java.lang.NoSuchFieldError: FN_AAPT2

    5:00 pm. Success: DonManfred's process (see below) fixed it.
    1. I redownloaded the SDK as he instructed. The copy of 'Platforms' went faster than usual because his download only has Android-28 in it.
    2. Changed the Jar Path to Android-28 as instructed.
    3. Redid the steps to install the SDK Manager and 'suggested items' . I still got the errors shown below, but pressed on.
    4. Redid Jetify
    5. Redid Clean
    6. Compile now works showing 'Android SDK' and the errors with some Fonts are gone.
    7. App loaded onto my test Android phone.

    Thanks Manfred!!
    Last edited: Sep 11, 2019 at 10:11 PM
  2. DonManfred

    DonManfred Expert Licensed User

    Yes, sure.

    Read this thread.

    Maybe better:
    Read this thread, download the readytorun sdk and install a complete new SDK following the instructions.
  3. Semen Matusovskiy

    Semen Matusovskiy Well-Known Member Licensed User

    This week I completely reinstall SDK. I removed whole directory, then went to, dowloaded and unzip
    I installed "recommended" and tried to compile. IDE told "maven ... not found". Ok, I used Search in SDK and installed asked maven. And so about 20-30 times.
    A bit boring, but nothing more.
  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