Related
my desktop is kind of broken right now, so i am trying to install the sdk here on my windows 7 x64 laptop. the desktop was vista x32.
ive done this before and had no problems. download JDK and JRE, then the SDK. too easy right? well the SDK installer is lying to me.. its trying to tell me the JDK isnt installed! it wont let me progress from there, it just gives me a link to the download for JDK.
thought maybe i should reinstall. i did. rebooted and what not. still not working.. any insight?
you have already installed JDK right? OK, go here:
Start, Rightclick on "MyComputer" -> Properties -> Left More Settings -> Environment variables -> put in "PATH" the Path to your JDK, mine for example: "C:\Program Files (x86)\Java\jdk1.6.0_20\bin" but dont forget to make a ";" before the path. it should work then. sry for my bad englisch
Thank you! Will try soon
Sent from my nonsensikal froyo using XDA App
I'm actually about to pull my hair out.
I intstalled droid explorer which wasn't functioning right, so i uninstalled and put android commander on this required me to download android sdk, when downloading that it wanted me to install jdk before it progressed.
I downloaded it and it didn't seem to like it, so I went and downloaded another jdk didn't like it either...
I tried the path thing thinking it would work, seemed like a decent solution its C:\Program Files\Java\jdk1.6.0_23 on my computer and still nothing... really frustrating as I now can't use any software to view my android...
sometimes i just hate computers
Try installing the 32 bit version instead of the 64. That's what solved the issue for me.
I had the same issue (on a Windows 7 64-bit laptop). I ended up giving up on the exe and using the zip file instead.
fudsey said:
Try installing the 32 bit version instead of the 64. That's what solved the issue for me.
Click to expand...
Click to collapse
bbhatt said:
I had the same issue (on a Windows 7 64-bit laptop). I ended up giving up on the exe and using the zip file instead.
Click to expand...
Click to collapse
These.
Or see this thread if you want to install via exe on 64bit JDK (it's looking in the registry): stackoverflow.com/questions/4394584/android-sdk-install-problem
Relevant answer:
On Win 7 x64 the Android SDK Installer is looking JDK in 'HKLM\SOFTWARE\Wow6432Node\JavaSoft' registry branch, but in reality the JavaSoft was placed in 'HKLM\SOFTWARE\JavaSoft'. I copied all JavaSoft branch to the path search, and then the installer found the JDK.
I am using my laptop for ADB currently, but I want to know if it is possible to run ADB through windows in a Virtual Machine? I have gotten to where I have ADB running and the VM reconizeds the phone but as soon as I type,
Code:
adb devices
There is no response. Side note: I am using VMware and am running Tvall's CM7 on my phone.
Edit: solved was a driver issue
adb works when drivers for adb were installed
did you install drivers from Android SDK Tools?
at second you need turn usb debugging on (settings/applications/development)
5[Strogino] said:
adb works when drivers for adb were installed
did you install drivers from Android SDK Tools?
at second you need turn usb debugging on (settings/applications/development)
Click to expand...
Click to collapse
Yes I know this. The virtual machine knows the device is there(ADB drivers are installed) but in cmd it doesn't work. USB debugging is on, another option is the wireless ADB from CM7, but I have no idea how that works. Thanks for the help.
acseazzu said:
Yes I know this. The virtual machine knows the device is there(ADB drivers are installed) but in cmd it doesn't work. USB debugging is on, another option is the wireless ADB from CM7, but I have no idea how that works. Thanks for the help.
Click to expand...
Click to collapse
When connecting phone through usb debugging there is 'Android USB Devices' section in Device Manager (My Computer / Manage / System Tools / Device Manager). Do you have this section while connecting?
Wireless adb application establishes connection via custom port and adb can use this port to communicate with phone.
5[Strogino] said:
When connecting phone through usb debugging there is 'Android USB Devices' section in Device Manager (My Computer / Manage / System Tools / Device Manager). Do you have this section while connecting?
Wireless adb application establishes connection via custom port and adb can use this port to communicate with phone.
Click to expand...
Click to collapse
In device Manager it has "Android Composite ADB Interface" and a "HTC Android Device" My VM connects to HTC Android device, not letting me connect to it in ADB. Before I connect my device and before it installed the drivers I installed the Google driver package from AndroidSDK. Thanks for your help.
How did you fix it?
acseazzu said:
In device Manager it has "Android Composite ADB Interface" and a "HTC Android Device" My VM connects to HTC Android device, not letting me connect to it in ADB. Before I connect my device and before it installed the drivers I installed the Google driver package from AndroidSDK. Thanks for your help.
Click to expand...
Click to collapse
So how did you end up fixing this? I want to connect my phone to the VM.
This is happening to me right now. I have a VM Windows 7, it can detect a "HTC Android Device" but the platform-tool command line cant detect my phone. Even with ADB USB drivers, platform-tools, as well as HTC-sync installed.
How did you fix it? Please tell me
kazzarok said:
So how did you end up fixing this? I want to connect my phone to the VM.
This is happening to me right now. I have a VM Windows 7, it can detect a "HTC Android Device" but the platform-tool command line cant detect my phone. Even with ADB USB drivers, platform-tools, as well as HTC-sync installed.
How did you fix it? Please tell me
Click to expand...
Click to collapse
I uninstalled all the drivers (with USBdeview) and instead of installing with the Google Driver I used the HTC one for MyTouch 3G. I think I installed the drivers before I plugged in the phone. And also what software are you using to run your VM?
acseazzu said:
I uninstalled all the drivers (with USBdeview) and instead of installing with the Google Driver I used the HTC one for MyTouch 3G. I think I installed the drivers before I plugged in the phone. And also what software are you using to run your VM?
Click to expand...
Click to collapse
I am using Oracle VM Virtualbox. Doing VM Windows 7 under Ubuntu 11.10.
I have been trying a few times in the VM Windows 7. I tried the lastest HTC Sync 3.0.0.0 as well as the older version 2.0.3.3 that worked when I was using full Windows 7.
But in VM, nothing works
The VM win 7 can detect a USB Composite Device, but it cant find the correct driver.
edit:
Oh my god!! hopefully you still havent read this post yet because I just got it working!
In the settings of the VM, theres an option to enable USB 2.0
But to enable that, we must install the Oracle VM VirtualBox Extension Pack
It works!
edit2:
but somehow the transfer speed is really slow...
i guess i will just install windows again dual boot it
Yay! Congrats if I helped at all please hit the thanks button.
Sent from my Dream/Sapphire using XDA
acseazzu said:
Yay! Congrats if I helped at all please hit the thanks button.
Sent from my Dream/Sapphire using XDA
Click to expand...
Click to collapse
Not until you tell me about your VM
I want to know that because at the moment the transfering and intallation of APK files in Oracle VM VirtualBox is utterly slow (comparing with my old Win7 days), I am interested in other alternative VM which might be faster.
I see you mentioned VMware in you first post, I went to their website (link) but I see a lot different products... can you tell me which one you used, can you please tell me more about your VM?
Thanks in adcance.
edit:
Hey there again, I fainlly got VMware working.
I went for VMware Player 4.0.2. But for Ubuntu 12.04, we need a custom patch the VMware before it can run gracefully.
Not I have got it running now, VMware is so much faster than Oracle VM.
Thanks for the suggestsion!
kazzarok said:
Not until you tell me about your VM
I want to know that because at the moment the transfering and intallation of APK files in Oracle VM VirtualBox is utterly slow (comparing with my old Win7 days), I am interested in other alternative VM which might be faster.
I see you mentioned VMware in you first post, I went to their website (link) but I see a lot different products... can you tell me which one you used, can you please tell me more about your VM?
Thanks in advance.
edit:
Hey there again, I fainlly got VMware working.
I went for VMware Player 4.0.2. But for Ubuntu 12.04, we need a custom patch the VMware before it can run gracefully.
Not I have got it running now, VMware is so much faster than Oracle VM.
Thanks for the suggestsion!
Click to expand...
Click to collapse
I personally use Workstation. But for me VMware is alot faster than Oracle VM VirtualBox. Glad I could help
adb driver won't connect
I'm running windows parrallel on my mac. On the windows side I have the samsung drivers downloaded but when I go to root my phone the command line says doesn't recognize. Anyone know away I can get drivers to recognize phone when running virtual on a mac?
Guys i have a trouble...
I installed windows 8 and JDK 7 without problems but when i go to install the android SDK tools the installer says to me that can't find Java SE Development Kit.
Don't worry I'm not a noob and yes i downloaded the right version of JDK. Simply the SDK installer can't find C:\windows\system32\java.exe when in fact the file is in that folder.
I go to set an environment variable Java_home that point to Java.exe but does not work.
Can anyone help me? Thanks.
Mine is working fine. I downloaded the latest version of JDk. There was no neeed of setting environment variables.eclipse and adk works fine.i use latest juno with with updated sdk.
send from Gods Own Country........
Java and the Android SDK
Uninstall Java and when you start to install the Android SDK it will prompt you to install Java and provide a link. Once it does that click on the link and let it take you to the Java download page and install the latest JDK. If that does not work open your hard drive and make sure that the Android SDK and Java are both under program files and not your username or something else. I just had a problem with the Android SDK and for some reason it installed it self under my user name and I had to move the folder myself and once I did that everything installed fine.
I just bumped into the exact same situation as OP, I solved it by removing the 64 bit JDK 7 and installing 32 bit version. I'm using Windows 8 if that matters.
Have same issue, will try to do suggestion and report back.
Sent from my Nexus 7 using XDA Premium HD app
njankit said:
I just bumped into the exact same situation as OP, I solved it by removing the 64 bit JDK 7 and installing 32 bit version. I'm using Windows 8 if that matters.
Click to expand...
Click to collapse
after trying for 2 hours with different "fixes" and guides, this one works and it's so simple, can confirm on windows 8 64bit installing java jdk 7 32bit makes the android sdk see java
The SDK is probably set to require the 32-bit JRE for some reason. Not sure what's up with that... some software (Minecraft comes to mind) insists on 32-bit in its manifest, even though it actually runs better under 64-bit Java. You can try checking for a manifest specifying 32-bit in the relevant jar...
Hello,
I ran into a couple problems having android studio to install and work. thought I'd share my findings!
First, it wouldn't install. Not finding Java JDK even though it was installed.
This is solved by changing the name of C:\Windows\System32\Java.exe to something else before the installation.
Don't forget to change it back to java.exe once installed.
After installing Android studio, it wouldn't run (normal or admin didn't change a thing).
You will need to create a system environment variable named JDK_HOME with your JDK installation path (in my case C:\Program Files\Java\jdk1.7.0_21\ ).
Android studio should now launch. (more help here )
Now that Android Studio launches, it asks for the latest android SDK
Just download and install the SDK 22 from Here
make sure you run the .exe as administrator after installation
NB :
dbarrera said:
For those having issues starting Android Studio in some Linux distros, such as Studio not finding JAVA_HOME, JDK_HOME, STUDIO_JDK, set any of those variables to the directory where Java is installed (e.g. /usr/java/jdk1.7.0_21) previously to the whole validation statements in the startup shell file (studio.sh) and everything should be fine...
Click to expand...
Click to collapse
Hope this saves some head scratching !
After installing Android studio, it wouldn't run (normal or admin didn't change a thing).
You will need to create a system environment variable named JDK_HOME with your JDK installation path (in my case C:\Program Files\Java\jdk1.7.0_21\ ). Android studion should now launch. (more help here )
Click to expand...
Click to collapse
worked perfectly for me. Thanks
Perfect!
Worked for me too...thanks for saving time. :good:
Window 7 with jdk 1.6
anishjhaveri said:
Worked for me too...thanks for saving time. :good:
Click to expand...
Click to collapse
Does Android Studio requires JDK 7 or greater ?? coz i have JDK 1.6 on my Windows 7 it doesnt start up even after setting JDK_HOME or JAVA_HOME. http://forum.xda-developers.com/images/icons/icon9.gif
madhucm said:
Does Android Studio requires JDK 7 or greater ?? coz i have JDK 1.6 on my Windows 7 it doesnt start up even after setting JDK_HOME or JAVA_HOME. http://forum.xda-developers.com/images/icons/icon9.gif
Click to expand...
Click to collapse
It should work fine on 1.6.
Maybe it depends if you're 32bit or 64bit?
My personal setup is Windows 8 64 bit running the 64bit version of Java 1.7.
Also, for the SDK issues, if you already have the SDK installed from using Eclipse, you can just point Android Studio to that SDK under Project Settings or something (I forget the exact wording of the setting and I'm not at my computer right now...)
Thank you! I was having trouble getting Android Studio to start once installed. Setting JDK_HOME fixed this.
Im using Windows 7 Ultimate 64 bit and set the JDK_HOME variable but it wont start...
/Edit: it works now.
HI
Thanks for this tips.
working fine for me
If someone is just beginning app development, starting with hello world app. Would you recommend him eclipse or android studio?
Sent from my HTC Desire S using xda app-developers app
I'm having a small issue with Android Studio for Mac, and was wondering if anyone was running into a similar issue or has any advice.
When running my application, I'm getting an error on the install, specifically a Failure: [install_failed_invalid_apk].
I'm sure it's something really simple and elementary, but it wasn't an error I'm familiar with seeing coming from Eclipse.
Try on Linux.
Intrepid90 said:
I'm having a small issue with Android Studio for Mac, and was wondering if anyone was running into a similar issue or has any advice.
When running my application, I'm getting an error on the install, specifically a Failure: [install_failed_invalid_apk].
I'm sure it's something really simple and elementary, but it wasn't an error I'm familiar with seeing coming from Eclipse.
Click to expand...
Click to collapse
I'm getting the same message on Android Studio (for Linux)
same error here.
using arch linux
13th Dev said:
If someone is just beginning app development, starting with hello world app. Would you recommend him eclipse or android studio?
Click to expand...
Click to collapse
android studio is in 0.1 version, while eclipse is a really good IDE for android coding.
i get used to Eclipse, and i love it more. but also i think that Google will make android studio to be the right tool for development.
Maybe android studio is in 0.1, but is based on intellij Idea which is not new, supports android already, and seems better and faster.
I don't know how it is for an experienced developer which already know ways to move, but I started with Eclipse about a year ago, and I can say that I hate it. I've lost hours and hours to wait the very slow build process of eclipse, to wait for recover from crashes, to wait for restarts because graphical editor goes mad, to clean and reclean project so eclipse be able to see a new resource added, fix and refix layouts because graphical editor shows them completely wrong(especially on dialogs).
I don't know how android studio or intellij Idea will be(I used it for very short time until now), but I find it better, faster and maybe easier(maybe because I'm more familiar with eclipse) and I think that I will spend less time to learn it that the time I'll loose with eclipse.
Fixed [INSTALL_FAILED_INVALID_APK]
Ok, so I was able to fix the [INSTALL_FAILED_INVALID_APK] error I was getting, and finally get my app running on my phone. I'm not saying this will work for everyone, but it worked for me.
When I examined Logcat, I found that my package name in the Manifest was what was giving me issues, specifically the default package name given by Android Studio on project creation. The package name in my Manifest was invalid, and did not have a "." separator. Once I corrected this, I was able to run my application.
Another error I found further down the line was that new activities do not appear to be automatically added to the Android Manifest at the moment, so keep that in mind as well.
Happy programming
A different problem, if Android studio doesn't start, could be that the studio must be run as administrator. So it was at least for me.
vepman said:
A different problem, if Android studio doesn't start, could be that the studio must be run as administrator. So it was at least for me.
Click to expand...
Click to collapse
Will add to op, thanks!
Sent from my HTC One using xda premium
Proxy Settings for Gradle/Maven
Hi,
just tried the Android Studio using a proxy on WindowsXP.
Even if configuring the proxy in the Settings I got an error when creating a new project.
First I had to download the "gradle-1.6-bin.zip" and had to copy it to ".gradle\wrapper\dists\gradle-1.6-bin\72.....\
After that Gradle couldn't connect to the maven repository.
Solution: create a "gradle.properties" file in the ".gradle" directory
with content like this
Code:
systemProp.http.proxyHost=
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=
systemProp.http.proxyPassword=
After that the first test project was generated without problems.
And even running it from the IDE and deploying/starting on my device (Galaxy Note, N7000) succeeded.
Is anyone here using this on Win 7 or 8? It has the stupid taskbar problem like Eclipse where you pin the exe, but when you launch it, it adds a second icon to the taskbar for the actual running app. What's even more ridiculous is, IntelliJ, which Android Studio basically is, doesn't have this problem! Any solutions?
it just does nothing at all!
i open it from bin (studio64.bit)
What you mean by "it does nothing"?
It opens wizard, and after wizard project workspace ( folders / files) are not created?
Or it doesn't even open wizard and "new project" button is not active or it not performing any action?
What version of Android Studio have you downloaded and installed?
Have you sdk installed before or together with Android Studio?
saffron82 said:
What you mean by "it does nothing"?
It opens wizard, and after wizard project workspace ( folders / files) are not created?
Or it doesn't even open wizard and "new project" button is not active or it not performing any action?
What version of Android Studio have you downloaded and installed?
Have you sdk installed before or together with Android Studio?
Click to expand...
Click to collapse
sorry for long time, its 0.9.2 i didn't get notification please quote !
it doesn't do anything at all, no wizard , its like im clicking nothing, it happens in both ubuntu and windows! it just gets darker and doesn't get bright again! !
Have you installed Android Studio by wizard? And if not have you set proper variables to Java, Android Sdk and studio?
saffron82 said:
Have you installed Android Studio by wizard? And if not have you set proper variables to Java, Android Sdk and studio?
Click to expand...
Click to collapse
no i just unzipped the file i downloaded from another website, android.dev is forbidden here !
kamranhaghighi said:
no i just unzipped the file i downloaded from another website, android.dev is forbidden here !
Click to expand...
Click to collapse
And if not have you set proper variables to Java, Android Sdk and studio?
i don't know what you mean by that! not sure!
i give up
First of all just install java JDK.
Then follow step by step installation from
https://developer.android.com/sdk/installing/index.html?pkg=studio
When you will have SDK, JDK, and android studio, please check system path to verify if everything is on place. What's more in Windows verify if you have access as a user to folder where all three programs are installed.
I think you need to offer more details so others can help you. Like what OS are you using, Window, Linux, Mac? And where did you download the install package?
Personally I don't even believe you have already installed it.
hello
surprising as I did not have any pbs to install AS (on W8.1 ok) with Android SDK. If it doesn't open at all them you seem to have some OS or env configurations problems.