Android Question SDK Manager v3.31 (B4A v9.01) error

Discussion in 'Android Questions' started by Pendrush, Apr 17, 2019.

Thread Status:
Not open for further replies.
  1. Pendrush

    Pendrush Well-Known Member Licensed User

    I get this error, on SDK Manager start, same error when I click on refresh button.
    Manager is working fine, beside error.
    SDK Manager v3.31.png
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. dragonguy

    dragonguy Active Member Licensed User

    i facing same error too
    Code:
    Error: Error: Could not find or load main class com.android.sdklib.tool.sdkmanager.SdkManagerCli
    Caused by: java.lang.ClassNotFoundException: com.android.sdklib.tool.sdkmanager.SdkManagerCli
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Are you running it from B4J?

    Which version of Java?

    What is the SDK path?
     
  5. dragonguy

    dragonguy Active Member Licensed User

    Yes, I'm running from B4J, but the log show wrong Java Path. My computer have install java8 - C:\Pragram File\Java, but log show C:\java
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    It uses the same Java that B4J uses (when you run it from B4J). It is configurable under Tools - Configure Paths.
     
  7. Pendrush

    Pendrush Well-Known Member Licensed User

    Error from SDK Manager v3.32. Error is start to appear after upgrade to B4A v9.01:
    I have both Java 8 and OpenJDK 11. B4A use OpenJDK 11.
    From B4J log:
    Error when running v3.32 from B4A Tools -> SDK Manager:
    If I debug SDK Manager in B4J error is triggered in the Main module on line 318:
    Sucess = True, ErrorCode = 1
     
    Last edited: Apr 17, 2019
  8. mcqueccu

    mcqueccu Active Member Licensed User

    Your Java path under tools should point to the BIN folder not the jre folder
    eg. C:\Program Files (x86)\Java\jdk1.8.0_201\bin\javac.exe
     
  9. Pendrush

    Pendrush Well-Known Member Licensed User

    My path is OK, I will not be able to compile app.
    Also change path to OpenJDK got similar error when starter from B4A described in my previous post.
     
  10. coldteam

    coldteam Member Licensed User

    I got this error. rolled back to 9.0 but that didn't help. Now I have reinstalled android sdk and it works.
     
  11. Pendrush

    Pendrush Well-Known Member Licensed User

    This is result while trying to install SDK from scratch, error on SDK manager start:
     
  12. coldteam

    coldteam Member Licensed User

  13. Pendrush

    Pendrush Well-Known Member Licensed User

  14. coldteam

    coldteam Member Licensed User

    and u change path to tools\bin\sdkmanager.bat in sdk manager?
     
  15. Pendrush

    Pendrush Well-Known Member Licensed User

  16. Pendrush

    Pendrush Well-Known Member Licensed User

    Error with Ready to run SDK:
     
  17. Computersmith64

    Computersmith64 Well-Known Member Licensed User

    Weird - I downloaded that last night setting up a new laptop & had no issues.

    - Colin.
     
  18. Erel

    Erel Administrator Staff Member Licensed User

    I see the problem. It should work properly if you are using the latest version of Android SDK (build tools 26.0.0)

    I will make an update to B4A so it won't break older versions of the SDK. sdkmanager.bat and avdmanager.bat from version 25.3.1 are attached. You can use them if you want to keep the old version of Android SDK with Java 8.
     

    Attached Files:

    Peter Simpson and Pendrush like this.
  19. Pendrush

    Pendrush Well-Known Member Licensed User

    SDK Manager v3.33 (B4A v9.0.1.1) work properly with path set to Java 8, but still get same error with OpenJDK 11.
    How can I get the latest version of Android SDK (build tools 26.0.0)?

    EDIT:
    My latest installed build tools inside SDK Manager is Android SDK Build-Tools v27.0.1.
     
    Last edited: Apr 18, 2019
  20. Erel

    Erel Administrator Staff Member Licensed User

Thread Status:
Not open for further replies.
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