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. Geezer

    Geezer Active Member Licensed User

    The only things you need to put in there are JAR and XML files from "additional libraries" which are not included in the B4A installation.

    These libraries could be ones you have made yourself or downloaded.

    There are many excellent libraries written by the community which are available for download for paid B4A subscribers.
     
  2. IanWardell

    IanWardell Member Licensed User

  3. john mad doe

    john mad doe Member Licensed User

    problem with SDK Toll rev 22

    After upgrading to SDK Tools rev. 22 and SDK Platform-tools rev.17, the aapt.exe cannot be found.

    B4A can no longer compile anything.

    When I want to run my program , I got the error :

    Generating R file. Error
    Cannot find: E:\PROGRAMMES\Android\android-sdk\tools\..\platform-tools\aapt.exe
    Please configure paths (Tools - Configure Paths).
     
  4. MarkLA

    MarkLA New Member Licensed User

    I have just fought the same issue for several hours. I finally gave up and copied aapt.exe from "C:\Android\build-tools\17.0.0" over to "C:\Android\platform-tools".
    That solved the problem. Now will have to pay attention if it gets updated in the future.
     
  5. agraham

    agraham Expert Licensed User

  6. john mad doe

    john mad doe Member Licensed User

    Thank you.

    I had missed this post
     
  7. MarkLA

    MarkLA New Member Licensed User

    Thanks 2.
    I had searched the day before and missed Erel's response yesterday.
     
  8. avalle

    avalle Active Member Licensed User

    Can you clarify what is the impact of having a more recent API platform installed and configured in B4A?
    I don't know much about how it works but I would expect that in order to use some features in B4A that are only available in a recent API platform I should have that platform installed and configured in B4A.
    Is it the case?

    For example I'm compiling the Sensors example and I tried to use some additional sensors and for most of them all I get are compilation errors.
    E.g. using TYPE_GRAVITY returns the following:

    Error compiling program.
    Error description: Unknown member: type_gravity
    Occurred on line: 35
    AddSensor(ps.TYPE_GRAVITY, "GRAVITY", False)
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    The error you are getting is not related to the referenced android.jar. Please start a new thread for this issue and I'll help you solve it.

    I recommend you to install the highest API level available.
     
  10. clooney48

    clooney48 Active Member Licensed User

    I don´t get the Virtual Devices working! When I start a device in the AVD Manager I get always the message: "PANIC: Could not open: C:\Users\BPK\.android/avd/HTC.ini" although the progress bar is running. But no device window is opening.
    After I reinstalled Java, Android SDK several times I don´t know what to do else. I hope you can help.

    Windows7, Java 1.6, Android SDK r16, installed in C:\Android
     
  11. Erel

    Erel Administrator Staff Member Licensed User

    You are using an old version of Android SDK. You can try to download the latest SDK: http://dl.google.com/android/installer_r22.2.1-windows.exe

    Personally I recommend you to use a real device instead of the emulator. The emulator (which is part of Android SDK) is slow and doesn't support all features.
     
  12. clooney48

    clooney48 Active Member Licensed User

    Hi Erel!

    Before I had installed Android SDK r22 but also without success. But if you say that it is slow and not perfect I will continue with the B4A Bridge. Regarding this of course it would be much more comfortable if the installtion process would start autmatically and you don´t have to confirm always. But probably this depends on phone software. Anyway, thank you for the information.
     
  13. NJDude

    NJDude Expert Licensed User

    If you are using B4A Bridge that's normal, Android doesn't allow silent installs for security reasons, if you don't want to see that prompt, then connect your device via USB, however, you will need the corresponding drivers for your device.
     
  14. clooney48

    clooney48 Active Member Licensed User

    Hi NJDude!

    Interesting hint! Where/how do I get these drivers? And then the program runs immediately without installing and starting?
    Thank you very much!
     
  15. NJDude

    NJDude Expert Licensed User

    Just plug in your device to your PC, Windows might have/find the drivers for your device, otherwise, you will have to check the manufacturer's website to get the drivers.
     
  16. clooney48

    clooney48 Active Member Licensed User

    Great, that´s what I wanted. Works like a charm ;-)
     
  17. Erel

    Erel Administrator Staff Member Licensed User

    Note that with the rapid debugger, in most deployments you will not need to approve the installation (as there will not be any installation).
     
  18. jcesar

    jcesar Active Member Licensed User

    Hi

    Is Java sdk 7 compatible with b4a and android sdk ? Or i need to use the old version of jdk 6 ?

    Im setting up my new development enviromment with a windows 8 machine.
     
  19. NJDude

    NJDude Expert Licensed User

    You can install version 7, there's no problem.
     
  20. jcesar

    jcesar Active Member Licensed User

    Thanks for your reply. I will install jdk 7.
     
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