[Q] Help starting out with Eclipse. - Android Q&A, Help & Troubleshooting

I've downloaded Eclipse with SDK Tools and all, and when i try to install ANY of the SDK platforms from the SDK Manager, it refuses to download. It will come up with an error message such as :
File not found: C:\Program Files (x86)\Android\android-sdk\temp\android-2.3.3_r02-linux.zip (Access is denied)
I'm using windows, so I haven't the foggiest why it needs Linux. Is there a way to get past this, or to manually install the SDK platforms in the android-sdk folder on my computer?

It seems you don't have permissions to install new software.
Try to run Eclipse with Right click on the sdkmanager (sdkmanager.exe in your sdk folder) > Run as administrator.

Related

Android SDK Setup - Java is not found in your PATH.

Hi,
I am new to Android. I have downloaded and installed every necessary component in order to start working with Android. The issue I am having is that in Command Prompt, anything I type in related to the Android SDK (for example: adb, or even just android) comes back with "Java was not found in your path". Now, I have changed all my PATH variables under "User" to the EXACT locations of where these folders are, but no dice. It keeps telling me to go and edit my PATH variables. Even running SDK Setup, gives me the same error, and tells me to add where Java was found (even though I have!).
I am starting to get really fed up with this, because Eclipse can't find the "jre" folder inside the Java JDK, either (that is, of course, until I copy the entire jre folder inside of the eclipse folder, or put eclipse inside of the JDK folder)...
I just know it shouldn't have to be this tedious to set everything up and I would really appreciate it if someone can help with this
I am running Java JDK 1.6.0_21 (x64), Eclipse Helios (3.6) IDE for Java EE Dev., Android SDK Revision 6, all on Windows 7 Ultimate x64.
Something to note: I have not encountered any problems with Eclipse Helios and the ADT plugin as stated on the Android Developers website. I can use Eclipse and the SDK to create and run the"Hello, Android!" application on the emulators without issues. I just want to be able to run everything from the command prompt, too. Now, if I can only get my phone to be recognized after I get this resolved.
I also need this for rooting and unlocking the phone.
Bazz44 said:
Hi,
I just know it shouldn't have to be this tedious to set everything up and I would really appreciate it if someone can help with this
I am running Java JDK 1.6.0_21 (x64), Eclipse Helios (3.6) IDE for Java EE Dev., Android SDK Revision 6, all on Windows 7 Ultimate x64.
Click to expand...
Click to collapse
In the SDK tools folder go to libs and edit find_java.bat.
Change all instances of %PROGRAMFILES% to %PROGRAMFILES(X86)% .
I had to do this for my SDK.
Your java will probably still resides in c:\program files (x86)\java or the likes.
To test if it works open DDMS.bat(May need to open twice).
I ran "ddms.bat" before changing the "find_java.bat", and it just came up that it could not find the path > checking if it is installed elsewhere. I did what you suggested (I found three instances of where I needed to add the (x86)), ran "ddms.bat", and got the same error. However, this time it also opened the Dalvik Debug Monitor. Eclipse still won't run without its own copy of the "jre" folder from the JDK at the same folder level as the "eclipse.exe"...
any luck with this? I'm also having same trouble in Win7x64
Gonna give in otherwise n reboot my ubuntu system see if thats any easier
i know i can't use OpenJDK or something so ill have to swap that but fingers crossed
=]
Solution
Install any JRE Java, Copy the java folder at program files/Java/jre6 Paste it inside MOTODEVĀ“s folder program files/Motorola/MOTODEV Studio for Android 1.2/ and rename it to jre
Done
Edited the eclipse .ini works a treat now wi java x64...
time to whip out the olde java books from college an see if any of it comes back to me
Is it possible to install the android sdk platforms & extras offline manually, my only net atm is my desire tethered, unlimited data but I don't wanna push my luck
I'm not sure if it may be related or not but according to the android dev page, you should be using eclipse 3.5 because they have been having problems with 3.6
May or may not be related but worth a shot.
I'm not sure if it may be related or not but according to the android dev page, you should be using eclipse 3.5 because they have been having problems with 3.6
May or may not be related but worth a shot.
i need help http://forum.xda-developers.com/showthread.php?p=24028502#post24028502
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A
Make nu system path
Try making new system path named PATH (all caps). its an issue with Win7 64. Hope it helps. and yes Installing the Android sdk is a giant head****. I have it all put as fare as the link to abandroid put it doesn't make plug-in available in the plug-in list. I'm at a loss...
As i said, hope it works.
Having just had this issue myself on a new install of eclipse, the sdk and adt, here's what finally helped me: making sure the java\sdk1.6.x.x\bin directorywas in front of the windows\sys32 directory in the PATH statement of the environmental variables.
I did already add the JAVA_HOME and such, but the above was the step that finally allowed me to finish the setup.
Fix for Win7 64bit and Android SDK/Java install
MacDegger said:
Having just had this issue myself on a new install of eclipse, the sdk and adt, here's what finally helped me: making sure the java\sdk1.6.x.x\bin directorywas in front of the windows\sys32 directory in the PATH statement of the environmental variables.
I did already add the JAVA_HOME and such, but the above was the step that finally allowed me to finish the setup.
Click to expand...
Click to collapse
I had to finally use JAVA_HOME C:/PROGRAM FILES/JAVA/JDK1.7.0_05 That finally allowed me to instal the Android SDK
best answer
rowdyvc said:
I had to finally use JAVA_HOME C:/PROGRAM FILES/JAVA/JDK1.7.0_05 That finally allowed me to instal the Android SDK
Click to expand...
Click to collapse
Thank you you solve my prob man

[Q] trouble installing adb and android SDK usb drivers

everytime i try to install USB drivers via the android SDK for my gtablet, i get this error
Downloading Android SDK Platform-tools, revision 9
File not found: C:\Program Files (x86)\Android\android-sdk\temp\platform-tools_r09-windows.zip (Access is denied)
Downloading Google USB Driver package, revision 4
File not found: C:\Program Files (x86)\Android\android-sdk\temp\usb_driver_r04-windows.zip (Access is denied)
Done. Nothing was installed.
anyone have any idea what to do? what other info do you need? i made the entire directory writable by unchecking read only (for whatever reason, its installed as read only) using admin privileges (windows 7 64 bit)
thanks!
Run as administrator
joshtb86 said:
everytime i try to install USB drivers via the android SDK for my gtablet, i get this error
Downloading Android SDK Platform-tools, revision 9
File not found: C:\Program Files (x86)\Android\android-sdk\temp\platform-tools_r09-windows.zip (Access is denied)
Downloading Google USB Driver package, revision 4
File not found: C:\Program Files (x86)\Android\android-sdk\temp\usb_driver_r04-windows.zip (Access is denied)
Done. Nothing was installed.
anyone have any idea what to do? what other info do you need? i made the entire directory writable by unchecking read only (for whatever reason, its installed as read only) using admin privileges (windows 7 64 bit)
thanks!
Click to expand...
Click to collapse
You must run SDK Manager in adminstrator mode. Right click on SDK Manager & select" run as administrator".
Al
aabbondanza said:
You must run SDK Manager in adminstrator mode. Right click on SDK Manager & select" run as administrator".
Al
Click to expand...
Click to collapse
worked great. thanks!
admin rights not working for me
I tried right clicking on the SDK manager button, but only got the following choices:
Lock the Toolbars
Customize Perspective
Hide Toolbar
I'm running Eclipse Helios, ADT 16.x, on a Windows 7 64bit machine.
Oops, instead of the button in the Eclipse interface, I then went to the sdk manager in the file system and right clicked on that, and it gave me the "run as administrator" choice. Thanks for the info.
ILikeIke said:
I tried right clicking on the SDK manager button, but only got the following choices:
Lock the Toolbars
Customize Perspective
Hide Toolbar
I'm running Eclipse Helios, ADT 16.x, on a Windows 7 64bit machine.
Oops, instead of the button in the Eclipse interface, I then went to the sdk manager in the file system and right clicked on that, and it gave me the "run as administrator" choice. Thanks for the info.
Click to expand...
Click to collapse
Didn't see your Oops...so I guess this is my oops.
Al
Run as Administrator in Vista
aabbondanza said:
You must run SDK Manager in adminstrator mode. Right click on SDK Manager & select" run as administrator".
Al
Click to expand...
Click to collapse
I just had to say thanks. That's the fastest I've ever found an answer on google.
Thank You!
Again this IS the fastist way to get an answer from google Thanks for letting us know about that pesky Admin Rights.
THANKS SO MUCH!

[Q] Android SDK manager not starting on Windows 8

Hello,
I can't get Android SDK manager to run on Windows 8 x64. Every time I run the executable a command prompt window flashes briefly and then nothing happens. I have tried installing both 32 and 64 bit version of JDK 1.6 and running SDK manager with admin permissions and in compatibility mode.
Any help would be appreciated
kevdliu said:
Hello,
I can't get Android SDK manager to run on Windows 8 x64. Every time I run the executable a command prompt window flashes briefly and then nothing happens. I have tried installing both 32 and 64 bit version of JDK 1.6 and running SDK manager with admin permissions and in compatibility mode.
Any help would be appreciated
Click to expand...
Click to collapse
It runs fine for me on Windows 8 Pro x64. The command propt window does flash, but the manager comes up soon after. I have JDK 1.7 though.
Theonew said:
It runs fine for me on Windows 8 Pro x64. The command propt window does flash, but the manager comes up soon after. I have JDK 1.7 though.
Click to expand...
Click to collapse
Thanks so much for the info I tried again with JDK 1.7 and it works now
kevdliu said:
Hello,
I can't get Android SDK manager to run on Windows 8 x64. Every time I run the executable a command prompt window flashes briefly and then nothing happens. I have tried installing both 32 and 64 bit version of JDK 1.6 and running SDK manager with admin permissions and in compatibility mode.
Any help would be appreciated
Click to expand...
Click to collapse
The same was in Windows7 64-bit for some SDK version (dont remember version number).
It was solved by switching off some windows security checking. May be this is not best solution, but works.
Got a fix
I was having this problem too. It's caused by the PATH variables to java.exe being set incorrectly. You can modify the environment to have java_exe pointing to wherever it is C:\Windows\System32\java.exe for me or modify android.bat in tools to change set java_exe= call lib\find_java.bat if not defined java_exe goto :EOF
to this: set java_exe="D:\Program Files\Java\jdk1.7.0_07\bin\java.exe" where the path is the path to your java exe
you can then run android.bat and it works. The reason (re)installing java works is because it adds the path variables for you. They must have gotten changed/moved when I upgraded to windows 8
I'm having the same issue. Installed JDK 1.7 but still the same issue.
I have a fresh Install of W8 and am just now trying to install JDK and SDK.
.
I also cannot launch SDK Manager
o0rebelious0o said:
I was having this problem too. It's caused by the PATH variables to java.exe being set incorrectly. You can modify the environment to have java_exe pointing to wherever it is C:\Windows\System32\java.exe for me or modify android.bat in tools to change set java_exe= call lib\find_java.bat if not defined java_exe goto :EOF
to this: set java_exe="D:\Program Files\Java\jdk1.7.0_07\bin\java.exe" where the path is the path to your java exe
you can then run android.bat and it works. The reason (re)installing java works is because it adds the path variables for you. They must have gotten changed/moved when I upgraded to windows 8
Click to expand...
Click to collapse
I am having the identical problem. I try to launch SDK Manager and get a quick cmd flash and then nothing. I am on Win8 Pro with jdk 1.7.0_21.
I added c:\Windows\System32\java.exe to the path (correct on my system) but no obvious change in result. Then edited set java_exe in android.bat to "C:\Program Files\Java\jdk1.7.0_21\bin\java.exe" and ran the batch file, and still I just get a quick flash of the command window. My java sdk was just installed today prior to setting up the ADT Bundle for Windows. Eclipse loads with ADT, but the SDK Manager is still a no go. Thanks in advance for any ideas.
Solved my Windows 8 problem
Hi,
I have been having similar problems with Android SDK manager not starting in Windows 8. Tried altering Java paths and messing with Android.bat etc. etc. but am now convinced the problem is with the UAC of Windows 8. Why?
1) Originally installed Eclipse in a sub dir of Program Files and found that I could not edit any sub dir there (like Android.bat) because of User Access Controls (UAC)... got me thinking...
2) So re-installed Eclipse in a sub dir under my user, and bingo... SDK manager works fine now.
It is possible to disable all UAC in Win 8 Pro using secpol.msc, but I don't have Pro version and it's not in bog standard version... However, you can still edit the registry to give all apps admin privileges but seems a bit drastic to have to do this...
http://developer.android.com/sdk/installing/bundle.html
Install the SDK and Eclipse IDE
1.Unpack the ZIP file (named adt-bundle-<os_platform>.zip) and save it to an appropriate location, such as a "Development" directory in your home directory.
try c:\Development\
aleks3008 said:
http://developer.android.com/sdk/installing/bundle.html
Install the SDK and Eclipse IDE
1.Unpack the ZIP file (named adt-bundle-<os_platform>.zip) and save it to an appropriate location, such as a "Development" directory in your home directory.
try c:\Development\
Click to expand...
Click to collapse
This is what worked for me. Thanks!!!
I originally had it in User\Documents\
same problem
I am having same problem like you buddy.help would be much appreciated.
Same here
Yeah I've reinstalled everything as described here, and I am still unable to get it to launch. Just getting the brief flash of a CMD prompt.
Finally solved it!
I had the exact same problem. I have gone crazy trying to fix this for past 1 day. Finally solved it using this guide: http://www.dominantwire.com/2015/03/android-sdk-not-opening.html.
Had to do some tweaks in the android.bat file and re-specify the environment variable paths. The solution is pretty universal. Should work for you guys as well.

sdk manager help running with windows xp

I downloded the java jdk and android sdk on a windows xp laptop. everything went right until i ran the sdk manager or, i believe the avd manager and i get an error that say's failed to execute tools/android.bat:error the system cannot find the file specified. Need help with this ive been at it some time now i took a break and now im back at it again and looking to solve this promblem so i can develop applications. Thank You
Did you try a clean install?
This file should be located in <ANDROID-SDK>/tools/android.bat.

Android SDK install Windows 8

Im trying to install the android SDK manager on my Wndows 8 laptop....im not having much success!
Ive downloaded the sdk package from here: http://developer.android.com/sdk/index.html#download
Ive unzipped it and placed it in my C; drive.
Wheni double click the SDK Manager icon to install...nothing happens?
Am i being dumb?
Valiceemo said:
Im trying to install the android SDK manager on my Wndows 8 laptop....im not having much success!
Ive downloaded the sdk package from here: http://developer.android.com/sdk/index.html#download
Ive unzipped it and placed it in my C; drive.
Wheni double click the SDK Manager icon to install...nothing happens?
Am i being dumb?
Click to expand...
Click to collapse
Did you correctly select 'Download the stand-alone Android SDK Tools for Windows' then 32-bit or 64-bit? Normally it doesn't block the setup wizard but try by installing Java SE Development Kit (JDK) first.
BTW SDK Manager needs a few seconds to run.

Categories

Resources