New Ubuntu Update 10.10 Broke my SDK? - Android Software Development

[Q] Hey guys, I just updated to Ubuntu 10.10 and now my SDK is gone! I tried to look into why it wasn't working and the software manager tool in Eclipse says that Android is installed. I don't even have any of the Android SDK buttons showing anymore? Can someone help a fellow dev?
[SOLVED] Go to the eclipse website, download Eclipse for linux, uninstall your old eclipse, extract your new eclipse wherever and go into the folder and click the application button titled eclipse. Then reinstall all the android stuff.

At the informal android developer's meetup tonight, there were two of us with this same problem.
One issue that I found was that PATH in .profile got broken.
We suspect that using the version of eclipse that came with ubuntu, rather than 3.5 downloaded directly from eclipse might also be causing problems.

I have the same problem; ellarsee, can you be more specific how you got it running again?
(what is .mprofile and where is it, for example? (Googling isn't helping me find out))

Same thing happened to me
Upgrade to Ubuntu 10.10 broken my Android SDK as well.

Is it possible the Java packages are not installed anymore in Ubuntu?
I tried this...
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk
Updated a lot of stuff but Eclipse Android is still gone...

Does anyone have this figured out yet??????????????????????????????? I NEED TO GET MOVING ON SOME APPS! THIS IS SO FRUSTRATING!

Removal and re-install of ADT plugin does not help
This is the error that appeared in my project the first time I ran eclipse after the 10.10 upgrade from 10.04.
Code:
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project
I attempted to fix the build path (Properties->Java Build Path) and noticed that
com.adroid.ide.eclipse.adt.ANDROID_FRAMEWORK was not checked. I checked it but this made no difference.
Going to try complete uninstall of eclipse...

It's still not working for me
Not .mprofile .profile, it's like .bashrc, a script that is run when you log in, and can set your $PATH variable, or other environment variables.
emacs ~/.profile
or
vi ~/.profile
should enable you to edit it.
Has anyone tried just a fresh reinstall of everything to work on android apps?
Someone asked about java, it's still in /usr/bin/java

SOLUTION
Can't post outside links. So you'll have to google the bug numbers I give.
Ubuntu bug is here: bugs.launchpad # 633198
This points at a debian bug: bugs.debian.org # 587657
Debian bug contains a workaround where you edit the file:
~/.eclipse/org.eclipse.platform_*/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
And you change the concurrent package location (I had too entries, I had to remove them both and insert the line in the debian bug)
and then things magically worked for me again!
Best of luck everyone

Someone else?
Someone else found a way to fix it?
Cuz, everything up till now didnt work for me

Related

vista home prem 64bit and sdk compatibility issues?

Is there something I forgot to do beyond the instructions in the dev resources for installation on the android sdk site?
I went through a couple of the test projects to get a feel for it, and keep getting execution fc's in the emulator, exported everything to my laptop(vista 32bit) and no problems.
Have reinstalled the sdk, eclipse and java on my desktop machine but no help. Any thoughts?
Weird question, but have you set the SDK version when you created the project? Happends when you are in a hurry!

ADB crashing eclipse

Hi, I was developing an application in android, and one unfortunate day when I fired up my eclipse.exe it immediately vanished, the eclipse.exe file wasn't in the folder anymore. Anyway, I tried reinstalling eclipse and again starting it however whenever I try to make an android project in eclipse the same thing happens (whenever I set the SDK) eclipse crashes and eclipse.exe get's destryoed somehow. So i reinstalled the SDK again and again and so did eclipse, but the problem still persists. I am using Windows 7 Ultimate Edition.
What version of eclipse ? what version of sdk?
things I would try, download android sdk again and unzip to different location than previous, same with eclipse to a diff location to b4.

[Prerequisite to Rooting] Android SDK Installer - v3.0 for Windows

**Microsoft Windows ONLY*
This installer is for new people looking to root their HTC Thunderbolt (not sure on other HTC devices but should work.) I compiled an SDK installer that installs all the necessary files to the directory of your choice (default C:\sdk) to your PC. This installer also includes HTC Sync for the Drivers as well as Java if you do not already have Java installed.
So if you're new to Android and want the tools to root, this might be the place to start before making that big step.
**If you have problems with it installing, try right clicking and running as administrator
Android SDK Installer with HTC Sync and Java v3.0 - 117 MB
*This is a pretty good size file but remember it also includes HTC Sync and Java within the installer.
*You cannot download Java and HTC Sync at the same time, so be patient.
*If you do not want to install HTC Sync but want the driver allow it to install them and then cancel out when asking to install HTC Sync.
*If you already have Java you can cancel out of the Java Installer.
**Download might take longer depending on your Internet Connection.
Please let me know what you think below.
Thanks!
Changelog:
v3.0 - Maintenance Update
v2.0 - Fixed Directory Issues
v1.0 - Initial Release
Also, here is a great tutorial brought to you by Captainkrtek.
http://forum.xda-developers.com/show....php?p=9959449
The only difference in the tutorials is the path.
The path for adb with this installer will be: C:\sdk\platform-tools
*Big thanks to CoolSilver for helping me test this out
Looks good! But where's the link?
Sorry, was still uploading it. Its updated now.
Tried it out, works fine. ADB setup and working.
Such a good idea. Trying to talk someone through installation of sdk is kind of maddening. Do we still have to add the path?
lortay78 said:
Such a good idea. Trying to talk someone through installation of sdk is kind of maddening. Do we still have to add the path?
Click to expand...
Click to collapse
No, it auto installs to C:\sdk
C:\sdk\platform-tools\
This will help a lot of those I see struggling with root not knowing anything about sdk/adb. Great post. Perhaps linking a guide to adb will help people as well?
Looks good. Newbs all around are rejoicing.
jaskru said:
This will help a lot of those I see struggling with root not knowing anything about sdk/adb. Great post. Perhaps linking a guide to adb will help people as well?
Click to expand...
Click to collapse
Here is a great tutorial brought to you by Captainkrtek.
http://forum.xda-developers.com/showthread.php?p=9959449
The only difference in the tutorials is the path.
The path for adb with this installer will be: C:\sdk\platform-tools
Andrew. You. Are. Amazing!!
Norton Antivirus Deletes it once downloaded, Its Saying it a bad Program.
Im going to Disable it and give it a shot.
failed msxml 4.0 sp3
failed windows media format 11 runtime
first time i ran with java installing also and nothing installed, so i reran it after and this time the first two failed, im assuming i do need both, should i get them from the source instead?
Ghost401 said:
Norton Antivirus Deletes it once downloaded, Its Saying it a bad Program.
Im going to Disable it and give it a shot.
Click to expand...
Click to collapse
I can guarantee and you have my word that the applicaton installer is clean. Norton AV also has many false positives.
arasky said:
failed msxml 4.0 sp3
failed windows media format 11 runtime
first time i ran with java installing also and nothing installed, so i reran it after and this time the first two failed, im assuming i do need both, should i get them from the source instead?
Click to expand...
Click to collapse
Hmm, strange. What version of Windows are you running?
Also, check to see whether you already have java installed. If you do then java is not necessary to complete the installation successfully.
Great job man great contribution! Cheers to you
andrew8806 said:
Hmm, strange. What version of Windows are you running?
Also, check to see whether you already have java installed. If you do then java is not necessary to complete the installation successfully.
Click to expand...
Click to collapse
windows vista ultimate, im running it boot camp on my mac. its what i used when i rooted my droid back in the day. java was installed using the package above since the last time i used it was to root
Edit: using a different computer, running fine, thanks
arasky said:
windows vista ultimate, im running it boot camp on my mac. its what i used when i rooted my droid back in the day. java was installed using the package above since the last time i used it was to root
Edit: using a different computer, running fine, thanks
Click to expand...
Click to collapse
Glad you were able to get it to work!
Thanks for this!!! My plan is to slowly get to root. I want to try to push a few apps first.
This works really well. Made setting up adb and rooting the thunderbolt so easy.
Thanks I used this to help root my phone.
Only issue I notice is that when I click sdk manager.exe the console comes up shortly and dissappears after about 2 seconds. How do I fix this? Is it because your program only installs the non-jdk version of Java possibly?
Any tips would be appeciated

[Q]crosstool-ng

Hello, not sure if im posting in the right section or not apologies if im not. Ive been playing with ubuntu on my nexus 7 and want to start porting some x86 programs over. I recently installed crosstools-ng on my linux box. I've coded in the past but never tried cross compiling software. If anyone has used this software you know it allows you to be VERY exacting as far as architecture goes. I know nexus 7 is armhf but beyond that im lost. If anybody uses the software and has a config file i could use I would be very grateful. Thanx
Edit: I am aware I can choose a list of "pre-made" cpu choices but as I said my knowledge of the nitty gritty of the 7 arch is beyond me. If any of the premade choices will do please let me know.
Thanx alot guys
Yep!
This post was one of the very few results that I found anywhere on the web regarding cross compiling for the Ubuntu Nexus 7 platform. Leave it to Ubuntu to have no documentation whatsoever on doing this. I spent two solid nights trying to get crosstool-ng to build binaries for my Nexus 7, and all that I could get to work was compilation with -static. I spent hours trying to figure out what was going on.
gcc -dumpmachine
returns
arm-linux-gnueabihf
Through Google/Bing searches, I again found nothing about this "hf" build other than it means hardware floating point, but I was building for the NEON/vfpv3-d16 FPU. After a bunch more searching, I found that this is a Debian-specific ABI, so no wonder I wasn't getting anywhere!
http wiki.debian.org/ArmHardFloatPort
From there, I decided to try to get a canned cross compiler, but nothing worked. I then ran across this.
http gsoc.sitedethib.com/posts/apt-get_install_gcc-4.7-arm-linux-gnueabihf
Note that I have three Ubuntu VMs and spent several hours trying to get ANY unstable or "backport" version of dpkg to work. For one of my distros, dpkg is new enough, and running dpkg --add-architecture armhf worked, but when I ran apt-get update, I got a bunch of errors that the armhf-related repositories couldn't be found (404s...) which I have seen before amounts to the Ubuntu release that you're using not being supported.
So this is why I have always avoided Ubuntu development especially for cross compiling. But since they're the ones doing a heck of a lot of work on this port, I'm not about to roll my own distro.
In case you are still looking for a cross compiler, look no further than Linaro. Download their 2012.12 binary package from this page.
https launchpad.net/linaro-toolchain-binaries/+download
I used this particular one.
https launchpad.net/linaro-toolchain-binaries/trunk/2012.12/+download/gcc-linaro-arm-linux-gnueabihf-4.7-2012.12-20121214_linux.tar.bz2
Extract with
tar xfvj gcc-linaro-arm-linux-gnueabihf-4.7-2012.12-20121214_linux.tar.bz2
and export the bin directory to your shell's PATH variable for convenience.
These binaries are apparently compiled for 32-bit i686 Linux oddly enough, so if you execute them on an amd64 system, you will likely get the "No such file or directory" error. To get 32-bit binary compatibility in Ubuntu, run
apt-get install ia32-libs
Correct me if I am wrong on any of this. I hope that this helps someone out there!

[Tips]Android Studio not starting, tips here.

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?

Categories

Resources