How to create New Android Virtual Device (AVD) on Mac? - android

I am using android-sdk-macosx to download from the internet, then installed Android SDK 2.2 and 2.1 successfully, then I tried to create new AVD on mac, but I don't have any idea about how to create AVD.
I tried this below mentioned for your reference:
Fig 1.0 Create new AVD
Fig 2.0 I tried to open SDK and AVD Manager in eclipse menu Window --> Android SDK Manager

In Eclipse, go to Windows Menu , Select Preference Option so, following dialog box will appear. Just select the Android-SDK folder using Browse Button.
After doing this step click on the "Apply Button",
Now, you will be able to create new AVD in your eclipse.
Note, I have upload this image using Windows System, but i am sure, MAC has some, same kind of menu option.

Follow this seven steps to fix this issues:
1. Start Eclipse, then select Help > Install New Software.
2. Click Add, in the top-right corner.
3. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Click OK.
4. If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
5. In the next window, you'll see a list of the tools to be downloaded. Click Next.
Read and accept the license agreements, then click Finish.
6. If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
7. When the installation completes, restart Eclipse.

It looks like you need to configure Eclipse to tell it where the android-sdk-macosx directory is (this can be done in 'Window>Preferences>Android> SDK Location".
Also, take a look at this page.

In the screenshot Fig 4.0, there's an error message at the top of the widow, which probably explains why the apply button is not available.
While the message cannot be read completely, I think it says that your version of ADT (Android Developer tools) does not match your version of the SDK : I might want to try updating both .
Also, take a look at this question, which might be about the same problem.

Related

Android SDK requires ADT version 23 or above

I was working on a project in Eclipse and unfortunately I removed some of my files and wasn't able to retrieve them back so I ended up creating a new project and importing my files back in. When this happened, I now receive an error:
When I try and update, it says it's already updated. I'm receiving multiple compilation errors in my project and am not sure what is going on since everything was working before I removed my files.
I see that it is telling me DDMS files are not found.. is this due to it not picking up my SDK? I tried to Help -> Install New Software and do a ADT but it seems I have already installed this since everything was working before.
Help on this issue on how to proceed/fix would be appreciated, thanks!
It seems that eclipse has edited or deleted files when updating
follow steps for updating eclipse
1. Download Eclipse from the official site
2. Download and install JDK latest version
3. After installing the eclipse, go to Help > Install New Software.
4. Click Add, in the top-right corner.
5. In the Add Repository dialog that appears, enter "ADT Plugin" for the
Name and the following URL for the Location: https://dl-ssl.google.com/android/eclipse/
Click OK.
6. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
7. In the next window, you'll see a list of the tools to be downloaded. Click Next.
8. Read and accept the license agreements, then click Finish.If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
9. When the installation completes, restart Eclipse.

Android sdk setup [duplicate]

How do I set up IntelliJ IDEA for Android applications?
I've spent a day on trying to put all the pieces together, been in hundreds of sites and tutorials, but they all skip trivial steps.
So here's the full guide:
Download and install Java JDK (Choose the Java platform)
Download and install Android SDK (Installer is recommended)
After android SD finishes installing, open SDK Manager under Android SDK Tools (sometimes needs to be opened under admin's privileges)
Choose everything and mark Accept All and install.
Download and install IntelliJ IDEA (The community edition is free)
Wait for all downloads and installations and stuff to finish.
New Project:
Run IntelliJ
Create a new project (there's a tutorial here)
Enter the name, choose Android type.
There's a step missing in the tutorial, when you are asked to choose the JDK (before choosing the SDK) you need to choose the Java JDK you've installed earlier. Should be under C:\Program Files\Java\jdk{version}
Choose a New platform ( if there's not one selected ) , the SDK platform is the android platform at C:\Program Files\Android\android-sdk-windows.
Choose the android version.
Now you can write your program.
Compiling:
Near the Run button you need to select the drop-down-list, choose Edit Configurations
In the Prefer Android Virtual device select the ... button
Click on create, give it a name, press OK.
Double click the new device to choose it.
Press OK.
You're ready to run the program.
The 5th step in "New Project' has apparently changed slightly since.
Where it says android sdk then has the drop down menu that says none, there is no longer a 'new' button.
5.)
a.)click the ... to the right of none.
b.)click the + in the top left of new window dialog. (Add new
Sdk)
c.)click android sdk from drop down menu
d.)select home directory for your android sdk
e.)select java sdk version you want to use
f.)select android build target.
g.)hit ok!
Once I have followed all these steps, I start to receive error messages in all android classes calls like:
I revolved that including android.jar in the SDKs Platform Settings:
I had some issues that this didn't address in getting this environment set up on OSX. It had to do with the solution that I was maintaining having additional dependencies on some of the Google APIs. It wasn't enough to just download and install the items listed in the first response.
You have to download these.
Run Terminal
Navigate to the android/sdk directory
Type "android" You will get a gui. Check the "Tools" directory and the latest Android API (at this time, it's 4.3 (API 18)).
Click "Install xx packages" and go watch an episode of Breaking Bad or something. It'll take a while.
Go back to IntelliJ and open the "Project Structure..." dialog (Cmd+;).
In the left panel of the dialog, under "Project Settings," select Project. In the right panel, under "Project SDK," click "New..." > Android SDK and navigate to your android/sdk directory. Choose this and you will be presented with a dialog with which you can add the "Google APIs" build target. This is what I needed. You may need to do this more than once if you have multiple version targets.
Now, under the left pane "Modules," with your project selected in the center pane, select the appropriate module under the "Dependencies" tab in the right pane.
Just in case someone is lost. For both new application or existing ones go to File->Project Structure. Then in Project settings on the left pane select Project for the Java SDK and select Modules for Android SDK.
Another way to identify the correct SDK is to install Android Studio, create a new project, go to project structure, SDK Location and find where the SDK was installed.
I found using the default installation process on a mac that the SDK home folder was in the /Users/'yourUser'/Library/Android/sdk folder. Make sure you have enabled your Mac to view the Library folder.
You just need to install Android development kit from http://developer.android.com/sdk/installing/studio.html#Updating
and also Download and install Java JDK (Choose the Java platform)
define the environment variable in windows System setting https://confluence.atlassian.com/display/DOC/Setting+the+JAVA_HOME+Variable+in+Windows
Voila ! You are Donezo !

ADT plugin for eclipse on Windows 7

Hi I am new to eclipse and android. Trying to setup the ADE on my Windows 7 laptop.
Eclipse is working fine.
Now I follow the procedure on http://developer.android.com/sdk/installing/installing-adt.html
Download the ADT Plugin
Start Eclipse, then select Help > Install New Software.
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Click OK.
SO FAR SO GOOD
If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
Read and accept the license agreements, then click Finish.
If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
When the installation completes, restart Eclipse.
Here I get lost. When I restart Eclipse, ADT is apparently not present, because there is no Android App button under the File->New dropdown menu.
Can anybody tell me what to do to get it working?
Try
File->New->Project->Android->Android Application Project
It appears you didn't get the welcome screen that the following link mentions when eclipse restarts.
http://developer.android.com/sdk/installing/installing-adt.html
What you may need to do is go to : Window->preferences; search for android. There you ought to specify the Android SDK's location on your local disk. You then can follow the rest of the setup instructions detailed at the above link.
Hope this helps.

What to do to get Android option in Eclipse under Window-->Preferences

I am new to android development and a tutorial for it suggests I can get an android option in Eclipse under the Windows->Preferences screen. How can I actually get that? It wasn't one of the defaults.
Assuming you have the Android SDK, installed it, and updated it using the SDK manager.
In Eclipse, go to Help then install new software.
In "Work with" enter the following: https://dl-ssl.google.com/android/eclipse
Put a checkmark in "Developer Tools" (that will grab all of the items, you may not need all, but DDMS an Development Tools are important.
After that just click Yeahohkaywhatever on prompts and should be good to go.
There are complete instructions for working with Android (including Eclipse) on this page...
Installing the SDK
assuming you've completed bobe-feh's instructions...your next setup would be to goto the avd manager
(its just below the 'Navigate' option) and setup a new Virtual device. Now your good to go ahead testing your applications

Location of the android sdk has not been setup in the preferences in mac os?

I am installing the Android SDK along with Eclipse in mac os. Whenever I try to start a new project development I get an error location of the android sdk has not been setup in the preferences
How do I resolve this problem?
Hi try this in eclipse: Window - Preferences - Android - SDK Location and setup SDK path.
I got this message after updating eclipse platform-tools and tools from the SDK Manager and then it was impossible to update the SDK path because I had an old version of ADT plugin.
Whenever you get this error message in a prompt right after eclipse loaded, you should do the following:
Go to Help - Install new software
Click on Available software sites
Delete the link http://dl-ssl.google.com/android/eclipse/
Reboot eclipse
Go to Help - Install new software
In the box "Work with" add http://dl-ssl.google.com/android/eclipse/ again
Install ADT and accept whatever that prompts.
This is how my problem with this message got solved.
I saw this error after updating the Android SDK to r17. The solution was to go to Help -> Update and get the latest version of the Android SDK to match.
I experienced this problem and fixed it by updating to the latest Android SDK Tools which in my case was 20.0.3
I am running Mac OSX Lion 10.7.4
If ever you encounter errors while updating the SDK Tools try deleting
http://dl-ssl.google.com/android/eclipse/
from the "Available Software Sites" in Eclipse, and adding it again.
If you have not installed plugin for eclipse, install it first.
If the plugin is installed, setup preferences: "Eclipse">"Preferences...", in left column choose "Android"(do not expand list, just choose root element), and first preference will be "SDK Location".
I've had the same problem on Eclipse Juno.
No "Welcome page" appeared, I could not create a project, compilation didn't work and "Graphical layout" didn't work.
I have fixed it:
Window > Preferences > General > Startup and shutdown:
Check "Android development toolkit"
Reestart Eclipse.
Of course you have to be configured this:
Window - Preferences - Android - SDK Location and setup SDK path.
Simply create this folder:
C:\Users\xxxxx\android-sdk\tools
and then from Window -> Preferences -> Android, put this path:
C:\Users\xxxxx\android-sdk
I had the same problem when I was trying to upgrade from ADT 20.0.x to ADT 23.0.x on Eclipse Indigo.
To fix the issue, I had to uninstall the ADT plugin (remove feature) from Eclipse, then reinstall the newer versions.
This maybe done by going to Help->Install New Software. Then at the bottom of the page, click What is already installed?
All what is left now is to install the newer versions as usual from help->Install New Software.
there are many things which can cause this error. For example, I
imported google api from the android SDK Manager and that is when I
got this same error. Eclipse broke down on me. I could not even create
a new android project.
To fix this, I went to help - Install New Software... - from the "work with"
drop-down box I selected http://dl-ssl.google.com/android/eclipse/ -
I then check marked "Developer Tools" and hit the Next button.
I then followed the prompts and it basically did a re-install. It took less
than 5 minutes. That resolved the error.
Now Im back up and running, and I got the lastest version of Eclipse.
i tried everything/....but only this thing worked for me:
To fix this, I went to help - Install New Software... - from the "work with" drop-down box I selected http://dl-ssl.google.com/android/eclipse/ - I then check marked "Developer Tools" and hit the Next button. I then followed the prompts and it basically did a re-install. It took less than 5 minutes. That resolved the error.
Now Im back up and running, and I got the lastest version of Eclipse.
Thanks a lot Nadir
Hope this helps:
Step 1.) Go to https://www.eclipse.org/downloads/index-developer.php?release=kepler and download appropriate Eclipse version.
Step 2.) Extract downloaded zip file in appropriate location. In this tutorial, I have downloaded and installed it under program files.
Step 3.) Right click on eclipse.exe file and send shortcut to desktop.
Step 4.) Double click on eclipse shortcut from desktop and select appropriate location to create your workspace.
Step 5.) Navigate to Window > Preferences. This should open Preferences window.
Step 6.) On the left hand side page expend “Java” and click on “Installed JREs”
Step 7.) Click Add. It will open “Add JRE” dialog. Select “Standard VM” and click Next.
Step 8.) For “JRE home” select “Direcotry…”. This will open “Browse for folder” dialog. Select the location where your JDK is installed. NOTE: MAKE SURE THAT ITS x64 AS WELL, AS WE ARE USING 64-BIT VERSION OF ECLIPSE.
Step 9.) If you have selected proper location, it will show JDK version in JRE name and it will display “JRE system libraries”.
Step 10.) Click finish. Now your JDK is properly pointed as “Installed JREs”.
Step 11.) Select checkbox unchecked before name of your JDK name.
Click ok and you’re done. You are now using JDK as “Installed JREs”
Read complete procedure at below location.
https://softwaretestingboard.com/qna/4/how-do-i-map-android-sdk-after-eclipse-plugin-is-installed#axzz4wM3UEZtq
You can find the Android SDK path by running the SDK Manager. Once the window comes up the path is displayed at the top. For me it was hiding in AddData (Windows). You can then set the path in Eclipse by going Window > Preferences > Android > and set SDK Location.
If you already installed in your eclipse you can solve this problem below,
Go to Windows -> Install New Software and find your android plugin address
Check all lists and re-install your android plugin for eclipse
I solved it like this
It is very irritating problem... i found one simple solution...that is
eclipse->help->Install new software
now u see "work with"field...below this fields u observe on link called
"available software sites"...click on this link..then open one window...here u find out some location address..... delete wrong locations and then add perfect location to install/update location. then click on ok button... then ur problem is solved....
This problem seems to arise from new versions of android sdk the solution that worked fine for me was to go to help->check for updates and let that finish once all software in eclipse updated it all seems to work fine. I was using juno and the latest sdk, which I upgraded outside eclipse.
i was facing the same problem.
the solution is...Copy the link http://dl-ssl.google.com/android/eclipse/
then in eclipse go to
Help > Install New Software > Add(work with) > past the link on locations > ok > select all > next
this will solve your problem.
If you already setup location in preferences, but see that error, try to create folder "add-ons" in your sdk folder
had the same problem in windows, the reason is always displayed at the top of the window(where you browse for the location)
Here is, how I've handled this issue (Mac OS X 10.8.4):
1) Because I previously have installed Android Studio the sdk located here:
Applications/Android Studio.app/sdk
You can dig into Android Studio.app folder by hitting "Show package contents" in context menu
2) Simply copy the "sdk" folder to another location and write it down to Eclipse preferences.
Because I couldn't find how to properly add adress like "/Android Studio.app/sdk" (folder with .app extension) to Eclipse preferences.
I know that this solution is not smooth and best, but it works (at least for me). And I've tried all advices in this theme, and installed the ADT from http://dl-ssl.google.com/android/eclipse/ before, but the error window have kept appearing every time.
I had the same problem: when click on the "Opens the Android SDK Manager", a pop out error message says “Location of the Android SDK has not been setup in the preference”.
The delete and add again update address in "install new software" doesn't work for me.
I went to the ../android/android-sdk-windows and click the SDK Manager.exe. This works for me.
So I think after I updated the SDK, the eclipse cannot trigger the SDK Manager currently. But it can run by itself outside of eclipse.

Categories

Resources