I have a x86 JDK and a x64 JDK and Android Studio recognizes none of them, so can't open it. Any way to fix the problem?
MatB
JAVA_HOME
MatB7 said:
I have a x86 JDK and a x64 JDK and Android Studio recognizes none of them, so can't open it. Any way to fix the problem?
MatB
Click to expand...
Click to collapse
open the bash profile script using the vi editor
Code:
vi ~/.bash_profile
now
Code:
export JAVA_HOME=/usr/java/jdk1.5.0_07/bin/java
and Btw you dont need both the jdks
Related
I am working on a PC W7,
all the components is installed, Android SDK 1.6 r1, Eclipse Ide for Java Developer, JDK etc, all works well...
I can build without problem the apps from the SDK Sample and some other in Google Code like SMSPopup.
But I took from Cyanogen GitHub the Phone.apk Zip file
http://github.com/cyanogen/android_packages_apps_Phone
with the source and when I build I get a lot of errors in Eclipse, same problem with the Advanced Launcher, Loccy's Better browser...
Clean... and Fix from Eclipse does not change anything
Any suggestion? (apart: use linux, download the entire android source etc...)
xenio2000 said:
I am working on a PC W7,
all the components is installed, Android SDK 1.6 r1, Eclipse Ide for Java Developer, JDK etc, all works well...
I can build without problem the apps from the SDK Sample and some other in Google Code like SMSPopup.
But I took from Cyanogen GitHub the Phone.apk Zip file
http://github.com/cyanogen/android_packages_apps_Phone
with the source and when I build I get a lot of errors in Eclipse, same problem with the Advanced Launcher, Loccy's Better browser...
Any suggestion? (apart: use linux, download the entire android source etc...)
Click to expand...
Click to collapse
You can not only git clone the Phone app, you need checkout a lot many others such as build/framework/core... etc.
And then type "make Phone" to build the app. Of course, you need a cygwin or just use a linux machine...
Yep...
My hope was not to hear that answer... I am too noob for that...
Maybe I try to install a Linux machine with the entire Android source... just for fun...
Thanks.
I did some important progress.
I did it...
I am on W7 64bit Host
with Sun VirtualBox I installed a Guest Ubuntu 9.04
this part from: http://developer.android.com
Android SDK 1.6
JAVA JDK 5
Eclipse with Android Plugins (ADT)
Some add to path for Java/Android SDK in ~/.bashrc file
this from: http://source.android.com/
Installed all the packages as in the Get Source page
Installed Repo
and the get source section...
in my $HOME
$ mkdir mydroid
$ cd mydroid
$ repo init -u git://android.git.kernel.org/platform/manifest.git
type your name and email
and now get all the files from source.android
$ repo sync
and build it
$ cd ~/mydroid
$ make
...after some hour
I modified the file I need to in the ~/mydroid/packages/apps/Phone/ directory
and build only the Phone.apk
as read in this thread http://groups.google.com/group/andr...47985716f84f?lnk=gst&q=build#6de347985716f84f
Make sure you're cd'd into the mydroid/ directory
Type ". build/envsetup.sh"
Type "mmm packages/apps/Phone"
if there are no errors the build of Phone.apk is in
~/mydroid/out/target/product/generic/system/app
I know this is easy for you devs, but this took me 3 days to
Now I like to get the Phone.apk source from Cyanogen GIT and try to build in my VM, I have no idea how to do it, and I think it modify the Settings too.
Please help me for this last part...
Thanks
Xenio
This may be easy for some, but I can say you just saved me 3 days of work. Thank you for the follow up post.
how to create apk file
hai everybody
my name is sriram
i am doing MCA
actually i want to create apk file, i dont know event the basics
can you help me
Kind of you
I've install [ROM][2.3.5][10/14/11] MIUI Development 1.10.14 http://forum.xda-developers.com/showthread.php?t=1066885.
But when my captivate not connect to laptop by USB.
I try hidden code: *#7284# but it not work in my phone.
Help me
Reinstall drivers
Install Android sdk because your computer probably sees it as a nexus s
Sent from my SAMSUNG-SGH-I777
To install sdk, you need to install (or already have) Java JDK installed.
mrhaley30705 said:
To install sdk, you need to install (or already have) Java JDK installed.
Click to expand...
Click to collapse
from the Android SDK page:
If you downloaded the Windows installer (.exe file), run it now and it will check whether the proper Java SE Development Kit (JDK) is installed (installing it, if necessary), then install the SDK Tools into a default location (which you can modify).
its not a requirement to install it on your own any more, apparently
Yep, that's new to me.
mrhaley30705 said:
Yep, that's new to me.
Click to expand...
Click to collapse
it would appear that with each new release of sdk, that they make it more and more noob friendly. thank god for that
now all they need to do is make the installer include adb in the environment path automatically (or by choice, via installation selection)
explaining to a noob to:
install java jdk
download android sdk > unzip it in a location you can find easily
add adb to environment path OR cd c:\path\to\sdk\folder
hell, with most of the noobs you lose them at install java jdk....
Hey guys, I wanted to toss this together real quick for those who recently upgraded their 'Buntu box and couldn't remember the steps to install the JDK.
Hopefully you'll find the steps outlined below simple and easy to follow.
Lets get on with it!
First download the JDK:
http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u27-download-440405.html
You'll want the Linux x64 - 'Self Extracting Installer'
How'd you like me linking to it? Now you don't have to go searching all over the place, lol
Place it on your Home folder.
Note: Currently only JDK 6 is supported by the Android SDK.
The downloaded file should look like this once complete:
jdk-6u27-linux-x64.bin
To install, download this file and use the following instructions.
1. Check the download file size.
2. Make sure that execute permissions are set
To do that, open the Terminal (Ctrl+Alt+T) and run this command:
Code:
chmod +x jdk-6u27-linux-x64.bin
Now move that file to your Desktop.
3. Create your install directory and then CD into it. This is where you want the JDK to be installed.
I did:
Code:
mkdir JDK
cd JDK
The next step installs the JDK into the current directory.
4. Run the self-extracting binary.
Code:
../Desktop/jdk-6u27-linux-x64.bin
The binary code license is displayed, and you are prompted to agree to its terms.
The Java Development Kit files are installed in a directory called jdk1.6.0_27. This is in that JDK folder you created earlier.
5. At this point you can delete the bin file if you want to save disk space.
6. Next you should really configure your JDK. Follow these steps.
Open your Home folder. Press Ctrl+h. This unhides the 'hidden' files in your Home folder.
Look for a file called .bashrc and open it.
At the very end of that file add these lines:
Code:
export JAVA_HOME=$HOME/JDK/jdk
export PATH=.:$JAVA_HOME/bin:$PATH
Make sure there is one blank line above those two lines.
Save that file and close all open windows.
Now you can verify your Java version which also lets you know it is installed properly as well.
Re open the Terminal (Ctrl+Alt+T) and type:
Code:
java -version
I get an output like this one but yours may vary. Just as long as you can see the Java version:
Code:
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode)
Congrats! You just installed the JDK on your Ubuntu 11.10 x64 box.
Now you can go and install the Android SDK
Not sure if you knew this stang, but after I upgraded to 11.10 x64, this is all I did to get the jdk:
sudo apt-get install openjdk-7-jdk
The tricky part is remembering to reinstall ia32-libs to get adb working again.
This page is a must have after upgrading:
http://www.webupd8.org/2011/10/things-to-tweak-after-installing-ubuntu.html
***I'm mobile
jermaine151 said:
Not sure if you knew this stang, but after I upgraded to 11.10 x64, this is all I did to get the jdk:
sudo apt-get install openjdk-7-jdk
The tricky part is remembering to reinstall ia32-libs to get adb working again.
This page is a must have after upgrading:
http://www.webupd8.org/2011/10/things-to-tweak-after-installing-ubuntu.html
***I'm mobile
Click to expand...
Click to collapse
Ah your totally and completely right! I did not know that is what YOU did! Wow, now I know, lol
But yea man, I knew about OJDK. I still prefer using the real deal even if it takes a bit of extra work.
Thanks for sharing though for others that may not have been aware of ojdk. I probably should have put that in the OP as an alternative method. I'll update it in a little while when I get back home from dropping the kid off.
Ok! Cool beans. It seems to work well for ddms and such. I seem to always opt for the "open" stuff.
If you want the official Sun jdk it's:
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin
I uninstalled OJDK and did the 3 commands above to verify. Here are the results:
Code:
$ java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
Many ways to get to the same result.
If a guide is needed for u to updaye jdk on a *nix box, u probably won't make it far :'(
jermaine151 said:
Ok! Cool beans. It seems to work well for ddms and such. I seem to always opt for the "open" stuff.
If you want the official Sun jdk it's:
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin
I uninstalled OJDK and did the 3 commands above to verify. Here are the results:
Code:
$ java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
Many ways to get to the same result.
Click to expand...
Click to collapse
You got the same thing except one version older. Weird.
I upgraded from 11.04 to 11.10, but I already had my build environment set up. Does the upgrade break anything, or is this only for new Oneiric installations?
Well, its whatever. People on XDA would much rather bash those that need help than to actually help them. I'm still learning but I can't get anywhere with these types of comments. So until then I'll be over at themikmik.com.
Follow me if you truely care. If not, nice knowing ya.
Hey Guys.
I'm starting off to create my own very first ROM. So I need help setting it up. I have Oracle Virtual Box using Ubuntu 12.04. But i can't get java to install on it.
I tried running the following code on the terminal:
sudo apt-get install sun-java6-bin sun-java6-jre
but it justs gives me:
E: package sun-java6-bin has no installation candidate
E: package sun-java6-jre has no installation candidate.
Please Help Me Out.
Well , the Java 6 JDK has already been officially removed from the Ubuntu repositories.....so the only option left is OpenJDK.....but it will be buggier than Java 6 JDK
"I have to go. It's just....they really need me." - Sora
CallMeVentus said:
Well , the Java 6 JDK has already been officially removed from the Ubuntu repositories.....so the only option left is OpenJDK.....but it will be buggier than Java 6 JDK
"I have to go. It's just....they really need me." - Sora
Click to expand...
Click to collapse
Hmm. But i can still run the kitchen on the open JDK ryt? And do what should i type into the terminal to install Open JDK?
http://lmgtfy.com/?q=java+openjdk6+installation
Is that so hard?
Closed and moved to Q&A.
im new to this forum and i need help in my android studio
i always try to upgrade android sdk platform tools and i get this error
java.io.IOException: Cannot run program "C:\Users\wadda\AppData\Local\Android\Sdk\platform-tools\adb.exe": CreateProcess error=2, The system cannot find the file specified
i wish u can help me and i wish u link me other forums so i can ask there as well about android studio
Have you specified the path to jdk location on your Android studio?
Goto Files->Other Settings->Default Project Structure.
Under Platform Settings Select Android sdk...under JDK location look if everything is okay.
Unity Dev said:
Have you specified the path to jdk location on your Android studio?
Goto Files->Other Settings->Default Project Structure.
Under Platform Settings Select Android sdk...under JDK location look if everything is okay.
Click to expand...
Click to collapse
im so new to android studio but its on recommended and its C:\Program Files\Android\Android Studio\jre