Starting Android Learning - android

Recently i've started android training, and i've got the below 2 issues.
In my desktop i already had eclipse installed, and when trying to import the android plugins, I was getting some error, so what i did was downloaded eclipse+android package from android developers website and I copied it onto my programs files folder where java is installed and when i open it, it is throwing me an error saying the javaw is not found, goinf through the earlier posts on SO website, i've tried the below.
-vm
\adding the java path
But this didn't work for me. so what i did was installed the same package in my laptop(there is no another eclipse on my laptop). and it started working fine.
On my laptop in the eclipse+android package i write a program and when i hit the Android virtual device manager, it asks me to create a AVD, and when i've filled the entire data here, the OK button is still greyed out. Below is the screenshot.
Also i've tried to create by creating from Device definition,even here i'm not getting the ok button hoghlighted and below is its screenshot
please let me know how can i fix the above issues.
Thanks

Firstly you need not wonder for such a mess ..
For IDE purpose .. go to this link .. https://developer.android.com/sdk/installing/studio.html
Android Studio IDE contains all you need .. Just download ..extract and start creating your first Android project.
And now for tutorials to learn .. try these site ..
(1) https://buckysroom.org/videos.php?cat=6 ( Travis ... provide best tutorial in this world )
(2) https://developer.android.com/index.html
Now you are good to go ..

You can see it clearly says: "CPU/ABI: No system images installed for this target"
So either:
Lower your target.
Update your SDK.
Then set a CPU and you can go on in the AVD creation process.

update the sdk, install ARM/intel(x86) for CPU/ABI

Try using Android Studio by IntelliJ ,as it is for more better than eclipse and moreover ADT plugin for Eclipse is no longer in active development.
if you then also get the same error again try this link android Developer and setup java environment.

Related

Can't create Android Application Project in Eclipse

I have a problem with creating Android Application project in Eclipse on my Mac. When I start Android Application Project Wizard after clicking "finish" in the last step, this window appears:
I've been trying to solve this for hours, but none of the solutions I've found on the internet worked for me (including this). I didn't try to reinstall eclipse itself, but to I don't want to do this. What's the solution to my problem.
UPDATE:
I removed Eclipse and sdk from my computer and downloaded the whole ADT Bundle from here and switched workspace but actually I am still getting the same Errors.
What I found up on the internet was that you could have upgraded your java. So this occurred. The solution to this problem for Mac is to edit the Eclipse.ini file to use java 1.6 .The code Below will work :
-vm/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands/java
Start with a clean slate. Unistall Eclipse and redownload - Eclipse is a very big program and can be very buggy at times for no reason. While it is not the quickest solution, ensuring that Eclipse was properly downloaded and installed will provide a good foundation for the future development of you Android applications. Did you install Eclipse just for Android, or did you have a pre-existing copy and want to install the Android SDK?

Unable to link LiveCode to Android SDK

This is my first question on this forum, i'm really sorry if i missed something that i was unable to find by my multiple search efforts.
I am am using a 16GB Ram Mac upgraded to Maverick 10.9, i have just purchased the Livecode Commercial package (6.5.1-RC-1)
I have successfully linked the IOS SDK to the Mobile Support Preference list.
I've attempted to load the Android SDK without success. :(
When navigating and selecting the Android SDK Folder /Users/macuser/Documents/My LiveCode/adt-bundle-mac-x86_64-20131030/SDK i get the error message:
"The chosen folder is not an Android SDK, please ensure you have installed it correctly and enabled support for Android 2.2 (Froyo)"
I've noticed others have also encountered this, but i've not seen how they solved it :(
In attempt to ensure i have loaded everything, i have followed the steps on this link with success all the way up to and including Starting the Virtual Device Simulator.
http://lessons.runrev.com/s/lessons/m/2571/l/27389-how-do-i-become-an-android-developer-on-a-mac
Thank you in advance for any guidance on next steps.
Joe
I think I've discovered the answer.
The error message was more helpful that i expected.. and i'm feeling pretty foolish! So.. In the Android SDK Manager Dialog Box there's a list of Android versions that you can download. At this time the current version is Android 4.4 (Kit Kat?) but if you don't go all the way back and select the SDK's associated with version 2.2 then the Livecode seems unsatisfied :). Makes total sense.. since it tells you in the error message that it is in fact looking for the Froyo release.
So if this happens to you.. open the Android SDK Manager Dialog box. You can find it in the Android ADT Application under the 'Window' menu item and selecting the 'Android SDK Manager' list item. This will launch the Android SDK Manager dialog box. Then select the Android 2.2 (API 8) folder, check it, accept the license and download it. Then go back to Livecode and link to the SDK Folder /Users/macuser/Documents/My LiveCode/adt-bundle-mac-x86_64-20131030/SDK and no error will be raised. Hope this helps someone that happened to ignore the obvious like me :) -Joe

Failed to instantiate com.android.menubar.internal.MenuBarEnhancerCocoa

I am new to the android development and when i create a new project using eclipse juno on mac OSx i got an error at runtime Failed to instantiate com.android.menubar.internal.MenuBarEnhancerCocoa
And yes on the layout file it also says- The project target(Android 4.1) is not properly loaded.
Anyone please help me how to get out of this. Thanks in advance..
And yes everything was setup properly SDK and all, because this whole setup is running properly on one of the other system.
I had the same problem but managed to resolve it. com.android.menubar.internal.MenuBarEnhancerCocoa - was not in the SDK that was linked to Eclipse install (I have multiple for various reasons - e.g. AppEngine not supported in latest Eclipse). There were a number of steps I had to do to resolve this (so any one of them may be the actual fix or a combination may resolve the problem).
Here's a checklist :
If you have installed Eclipse - click the Android SDK manager icon. Ensure it is pointing to the latest Android SDK (R20 as of writing)
As it's a new Eclipse+SDK - add the build targets by selecting from the list of targets that appear in the SDK manager. Also add Android support tools
Restart Eclipse. When asked about he workspace - create a new one. I thought some of my problems would be linked to old projects.
The problems should have gone away. One final thing is, once you create a project - check your certificates have not expired. There's another thread on updating the debug certificate (Delete your keystore located in ~/.android/debug.keystore then restart Eclipse.)
Create a new AVD target.
Hope those things help.
It appears to me the com.android.menubar.internal.MenuBarEnhancerCocoa is only there to make the android app feel nicer if it's run directly. Then preferences and about will be in the application menu. If you run the android sdk manager from eclipse, then eclipse will take over that part of the application menu.
Although it doesn't sort out the issue it may be useful anyway. There's the web page with the sources MenuBarEnhancer where there's the call to instantiate the com.android.menubar.internal.MenuBarEnhancerCocoa class.

android apps not deployed to phone

i just started android development and have the problem that my apps are not deployed to the phone - neither my hello-world nor the examples. after running them i cant find the apps on the emulator and the launch activity is not started either.
i use eclipse with ADT but also tried it via command line.
no errors in the console
any hints?
A few things you might want to check are the following:
Is your Android SDK attached to your eclipse.
Is your Android VD Attached to your PROJECT, not just to eclipse.
You need to go to the project->properties and then theres a place where you can attach the AVD and SDK to your project. I don't have eclipse right now to check for you, but If you dont get how tell me and I'll download it and check it for you.
Hope this helps,
kRizD

Trying to set up Android SDK - Please help! Beginner

So I am super new to this, and am not really sure what I am doing.
I downloaded the Android SDK for Windows, but I am a little confused in setting it up/installing. So I read that I needed to set the System Variables Path to the tools/
but I it seems that I would be replacing the Windows\System32?!?!
I should not be replacing this should I?
Windows Vista; already have the Eclipse IDE download and set up (minus pointing at the SDK)
Can anyone help a begginer out with setting this thing up please?
apreciated; thanks!
also: i should metion exactly what I have done...
I downloaded that Android SDK and unzipped it.....that's about it!
The PATH environment variable is a semi-colon (;) list of paths. Just append a ";" + the Android SDK tools path to the end.
I installed the Linux version of the SDK but I can probably still help you. I followed these instructions exactly and everything worked out for me.
The next thing to do after unzipping and adding tools/ to the PATH, is to run 'android' this is a GUI program in the tools/ directory and it will allow you to create at least one Virtual Android platform for the emulator to run. just use all the defaults and the latest android version when setting that up. again all these instructions are available in more detail at the link above.
after you got that part done, you need to install eclipse if you haven't already. almost all Android development is done in eclipse with a plugin called ADT. although it is possible not to use eclipse and ADT, the tutorials and everything expect you to be using it.
after you install that try the hello world program.
add to path, put a ; then add to the end....
I have a blog post about what steps to take on a Windows machine to get started with Android development using Eclipse as your development environment (Windows 7, 64-bit in my case, but I don't think there is anything 7/64 specific in the list). I guess the points could have even more detail (no screenshots), but I basically typed them down so that I would remember them myself.
Getting ready for Android development
This site is an must read for starting android development, lot of good information on how to configure eclipse, installing adt etc.
And next up, get yourself an subscription here:
And the official android developer guide is one of the best I've seen for development platforms.

Categories

Resources