Android Tutorial Hello world - Installing Android Emulator

JohnH

New Member
Licensed User
Longtime User
Error message on launch emulator

Hi,
Just getting started with B4A, and am unable to launch an emulator.
Getting the following error:

invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe.
Hint: use '@foo' to launch a virtual device named 'foo'.
please use -help for more information

Looks like maybe there's a forward-slash that should be a backslash? How do I fix this?

Thanks.
 

JohnH

New Member
Licensed User
Longtime User
Still having path issues

Hi Erel, and thanks for the quick reply. I uninstalled and reinstalled both the Android sdk and B4A.
Android sdk is in c:\AndroidSDK\ and B4A is in c:\B4A\

Now as soon as I click "Run AVD Manager" I get an error box:
"An error occurred.
The system cannot find the file specified."

It doesn't say what file it's looking for.

I appreciate your help.

-John
 

JohnH

New Member
Licensed User
Longtime User
Never mind

That was a dumb question. Set the path & everything's fine.
 

vinny

Member
Licensed User
Longtime User
target release error

I finally got the emulator running but now, when I try to run the app I get this message in a 'Compile & Debug" message box:

Compiling code. 0.02
Generating R file. 0.01
Compiling generated Java code. Error
javac 1.7.0
javac: target release 1.5 conflicts with default source release 1.7


I don't know anythin about java yet so please help.
 

vinny

Member
Licensed User
Longtime User
target release 1.5 conflicts with default source release 1.7

I wish I had 1.7. It isn't available in my sdk. I have 1.5, 1.6, 2.2, 2.3.1, 2.3.3 and some higher. Testing is really slow, I guess I need more than 2gig.

Is there a way to use one of the versions I do have? Is this a property of b4w?
 

agraham

Expert
Licensed User
Longtime User

vinny

Member
Licensed User
Longtime User
target release 1.5 conflicts with default source release 1.7

@Vinny. It look like you have installed Java 1.7 which will not work. See http://www.b4x.com/forum/basic4android-updates-questions/10567-new-java-update-b4a.html#post58798 and http://www.b4x.com/forum/basic4andr...477-installing-basic4android-android-sdk.html for the link to Java 1.6.[/QUOTE]

Thanks everyone. Installing 1.6 did the trick. I guess I should have read the install instructions more carefully. I think I'm giving up on the emulator. I'll be working on my laptop, core 2 duo 2.4 with 2gigs doesn't seem to be enough. Do you think more memory will help or would I need more processor too?
 

Kim Rowden

Member
Licensed User
Longtime User
Getting started...

Erel,
Many thanks and congratulations on a great product!

I have some experience with the following:
- the Android SDK : too much for most of my requirements
- Google's App Inventor : very simple (too simple) but in the process of being discontinued
- Appcelerator's Titanium : very powerful but overly complex at times

I have not yet had a chance to explore B4A too deeply but my first impressions are that it is simple, straightforward and works right out of the box.

I think it fills a need and will enjoy a considerable following...

Congratulations! I'm looking forward to working with all the folk in this community,
-Kim
 

martinfd

Member
Hi. I have a problem I can't resolve.
I install JDK 6-u21
I install SDK Manager and I have downloaded everything related with API 8.
I have installed correctly basic4android.

I have configured the paths:
C:\Archivos de programa\Java\jdk1.6.0_21\bin\javac.exe
C:\Android\android-sdk\platforms\android-8\android.jar
C:\Archivos de programa\Anywhere Software\Basic4android\Libraries

and I have this error:

Compiling code. 0.00
Generating R file. 0.02
Compiling generated Java code. 0.55
Convert byte code - optimized dex. Error
Unable to access jarfile C:\Android\android-sdk\platforms\android-8\tools\lib\dx.jar
Standard dexer.

This path doesn't exist, "tools" and "platform-tools" exist under "C:\Android\android-sdk" (where I have installed sdk).

Do I need to move this folder?

Thank You.
 

Avon

Member
Licensed User
Longtime User
AVD hangs

I started today with this software, which I installed on the same PC that I have Eclipse, etc, running. I've downloaded the latest Java 6 SDK.

The paths in the "paths configuration" dialog appear to be correct.

My AVD is configured as described at the start of this tread, except that I have set the size to 640 x 640. It hangs on the "android" screen (big script) when running B4A.

Does this ring bells with anyone?

I tried removing all the packages from the AVD which correspond with versions of Android higher than 2.2, the only difference in the result being that some dependent packages are shown in the AVD "installed packages" view with red "broken" icons.

Any suggestions please?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…