Android Tutorial Installing Basic4android and Android SDK

Discussion in 'Tutorials & Examples' started by Erel, Nov 2, 2010.

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

    Erel Administrator Staff Member Licensed User

    These instructions are outdated. Please see the instructions here instead:

    Basic4android depends on two additional (free) components:
    - Java JDK
    - Android SDK

    Installation instructions:
    The first step should be to install the Java JDK v6 as Android SDK requires it as well.
    Note that there is no problem with having several versions of Java installed on the same computer.

    - Open the Java 6 JDK download link.
    - Check the Accept License Agreement radio button.
    - Select "Windows x86" in the platforms list (for 64 bit machines as well). Android SDK doesn't work with Java 64bit JDK. You should install the regular JDK for 64bit computers as well.
    - Download the file and install it.

    Next step is to install the Android SDK and a platform:

    - Download Android SDK.
    - Install the SDK. The SDK doesn't always behave properly when it is installed in a path with spaces (like Program Files). It is recommended to install it to a custom folder similar to C:\Android.
    - You should now install the platform tools and at least one platform image. You can use API 8 or above. It is recommended to use API 8.
    You can also install Google USB Driver if you need to connect a real device with USB.


    Note that you can install more packages later.

    - Press on Install Selected and install both packages.

    Install and configure Basic4android

    - Download and install Basic4android.
    - Open Basic4android.
    - Choose Tools menu - Configure Paths.


    - Use the browse buttons to locate "javac.exe" and "android.jar"
    javac is located under <java folder>\bin.
    android.jar is located under <android-sdk-windows>\platforms\android-8

    On Windows 64 bit, Java will probably be installed under C:\Program Files (x86).

    Follow the second tutorial for the emulator setup and a Hello World application.

    Common errors
    - Windows XP - "Basic4Android.exe Application could not be initialised correctly error 0xc0000135" on startup. Basic4android requires .Net Framework 2.0 or above. Windows XP users who didn't install it before should first install the framework.
    Last edited: Dec 14, 2016
    Vahid2016 likes this.
  2. wistong

    wistong Member Licensed User

    :sign0060: Good news :sign0060:. Where can i download Basic4Android ?

  3. Erel

    Erel Administrator Staff Member Licensed User

    Basic4android is not ready yet...
    The first beta should be released to the beta testers in a few days.
    I believe that the first version will be released at the beginning of December.

    Edit, Here:
  4. wistong

    wistong Member Licensed User


  5. derez

    derez Expert Licensed User

    Great news !

    Erel - the last Java SE is kit6u22, will it be a problem if I use this version ?
  6. Erel

    Erel Administrator Staff Member Licensed User

    No. Any version of Java 6 JDK should work.
  7. eclipse_wolfgang

    eclipse_wolfgang Member Licensed User

    Is the JDK still necessary, if i have alread installed eclipse and the Android SDK on my computer?

    Best regards
  8. Erel

    Erel Administrator Staff Member Licensed User

    You need to have javac.exe which is the java compiler. I believe that Eclipse comes with its own compiler which you will not be able to use with Basic4android.

    ELVESIS Member Licensed User

    I could not find where to download for Basic4android :sign0085:

    I have successfully installed the Java JDK and Android SDK.And I waiting for Basic4android...:sign0060:
  10. susu

    susu Well-Known Member Licensed User

    How to build app for Android 1.5?
  11. Erel

    Erel Administrator Staff Member Licensed User

    1.5 is not supported. Only 1.6 and above.
  12. ashrafidkaidek

    ashrafidkaidek Member Licensed User

    Android 2.3 is now available, can we use it with B4A now?


  13. berndgoedecke

    berndgoedecke Active Member Licensed User


    Another question: Where is the USB Package in the AVD - Manager? And are you able to connect the IDE to a device?

    Best regards

  14. Erel

    Erel Administrator Staff Member Licensed User

    You should still use Android 2.2 SDK (API Level 8).
    Your applications will work correctly on Android 2.3 as well.

    It is now installed as part of the Android SDK installation.
  15. James Moxham

    James Moxham Member Licensed User

    :sign0104: Note to self, "Read the Instructions!" :sign0161:

    On the first page it says
    If you <don't> cancel out all those other platforms, it downloads hundreds of megabytes of data, and seriously delays getting into the fun part!

    BTW, Basic4android is an awesome piece of software!

    Just a thought. When you purchase the software and it sends a welcome email, I wonder if that email could include a link to this tutorial thread?
    Last edited: Jan 23, 2011
  16. koezuma

    koezuma Member Licensed User

    error when compile n running

    dear erel

    i try to running & compile. there is error message :
    "Compiling code. 0.02
    Generating R file. Error
    Cannot find: C:\Program Files\Android\android-sdk-windows\platforms\android-9\tools\aapt.exe
    Please configure paths (Tools - Configure Paths).

    my configuration are :
    javacexe : C:\Program Files\Java\jdk1.6.0_21\bin\javac.exe
    android.jar : C:\Program Files\Android\android-sdk-windows\platforms\android-9\android.jar

    additional libraries : C:\Program Files\Anywhere Software\Basic4android\Libraries

    my os : windows xp

    best regards

  17. Erel

    Erel Administrator Staff Member Licensed User

    You should install (and use) android API Level 8 instead of 9.
    It will also work on Android 2.3 devices.
  18. Kevin

    Kevin Well-Known Member Licensed User

    But if we use API level 8 (Android 2.2), wouldn't that mean that the app created would NOT run on a device running Android 2.1?
  19. Erel

    Erel Administrator Staff Member Licensed User

    Your app will run fine on all devices running Android 1.6 or above.
    The standard libraries doesn't use any API which is not available in Android 1.6.
  20. Kevin

    Kevin Well-Known Member Licensed User

    Oh, okay. Thanks for the reply. Lots to learn! :sign0104:
Thread Status:
Not open for further replies.
  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