Eclipse from ADT bundle crashes in Ubuntu 14.04 - android

Whenever there is an auto complete window, eclipse crashes. I searched the internet and found out that putting " -Dorg.eclipse.swt.browser.DefaultType=mozilla " this line at the end of eclipse.ini file will solve the problem. It solved my problem initially but now the same problem is happening. Please help me out.

Make sure your version of Eclipse is up to date, and try not to build it from source. The Ubuntu Software Center has the latest version.
Uninstall the version of Eclipse (make sure to do a complete removal - use Synaptic or type sudo apt-get purge eclipse-platform in a terminal), then install through the software Center.

Related

Android studio failed to open

My OS is win10
I reinstalled my system,and then set environment variables like:
CLASSPATH .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;
JAVA_HOME E:\JAVA\JDK\
PATH
and when I installed AS and click the icon,there was nothing appeared.
I found in the folder, there were studio.exe and studio64.exe, both of them did't work.
and I also tried to find studio.bat, but there were no file like this.
My question is how to get my AS working?
This is my first question and I eager to get it solved ,
Thanks!
I was similar issue, uninstalling java and update to latest version will solve issue.
If not download android studio bundle from android.com
Try to set JAVA_HOME to ../Java/JDK1.x/bin/ also don't forget to set path for android sdk too.
if you do it right : type java -version on your command prompt and you get the information regarding installed java version.

how to fix mksdcard error on Android Studio Setup on Mac?

How do I fix this error on running the Android Studio setup on Mac OSX10.7.5
"Unable to run mksdcard SDK tool.
One common reason for this failure is missing required libraries
Please fix the underlying issue and retry."
The mksdcard utility distributed with recent versions of the Android SDK was compiled in a way that it won't run on OS X versions older than 10.8. You can replace your mksdcard with an older copy of the utility that's known to work on OS X 10.7.5, such as the one in http://dl-ssl.google.com/android/repository/tools_r22.6.2-macosx.zip.
Credit where its due: This solution is from IAMSME's answer to a similar question, which I found via googling "illegal instruction 4" after I got that error message when a hunch led me to test mksdcard on the command line.
Try running a Package Manager (like apt-get or brew, you will likely need brew since you are on Mac OS X) for downloading some additional packages Android Studio couldn't install.
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6 (Command line for Ubuntu OS)
Apart from setup Android Studio should check whether is capable to run 32-bit components like aapt or adb. Hopefully it will serve you as a work around.
BTW this is a Google bug currently being addressed (not sure what Titanium Studio has to do here as quoted by Mark previously).
i.e. https://code.google.com/p/android/issues/detail?id=152213
The only solution that worked for me was to drag titanium studio into the trash and reinstall it. I spend hours trying to work this out, but couldn't. After a reinstall it just worked.
I'd recommend using an older version of Android Studio until this gets sorted out by Google.

Eclipse juno startup error, after upgrading adt 21.0 to 22.0

I'm new for android development kit, I was install new software from http://dl-ssl.google.com/android/eclipse/, while downloading a receiver an warning message stated like "if i proceed further the product may go vulnerable" i pressed ok after that my eclipse have been restarted. while doing this process i got startup error states "An error has occured. see the log file follow by my adt installation path".
please help me to get rid of this..
thanks in advance
There might be an error occurred while downloading ADT plugin. Try to reinstall. If error continues, avoid direct install by typing the site. Download ADT bundle and install it in Eclipse,
Help-> Install new software-> Add-> Archive.
Aftre that, tell your SDK Location to Eclipse as,
Window-> Preferences-> Android-> SDK Location
Well, could you give us your log file so we can see what is the problem :) ?
Could you give us more details about your installation ? What platform are you running on ? Linux, Mac, Windows ? If Linux, are you using the package provided by your distribution, or the one from the web
(Sorry to the moderator but I don't have enough reputation to comment directly)
Without the log file, I could think of Eclipse not finding the path of your ADT installation, check that your PATH includes the executable.
Check that you have Java JDK installed too.
If you're developping with Linux, and it's a 64bit installation, check you have your 32bit librairies installed (IA32)
apt-get install ia32-libs

Eclipse doesn't generates R.java even without errors

I just updated to Ubuntu 12.04 LTS, and installed Eclipse (via Ubuntu Software Center). I also installed the Android SDK and the plugin on Eclipse, however, I imported an old project (which was working correctly before) to it, and it don't even has generated R.java file.
In gen/<my-package> directory there is only a file named BuildConfig.java.
I tryied removing all the warnings from my xml files, and Build, Clean, etc, but it doesn't work.
I dont know if I'm missing some lib or what, because this project was being executed corrected on Eclipse before I installed Ubuntu 12.04 LTS.
I tried creating a new project and check if it creates the R.java file, however, it wasn't created. Maybe the problem is with the eclipse.
UPDATE
The same problem is happening to IntelliJ.
Please help me with this issue. Thanks.
If it's not working and you think you tried everything, first blow out your eclipse installation(un-install and re-install).
If removing and re-installing plug-ins doesn't work, rename your ~/.eclipse folder and start again.
If that doesn't work, delete the .metadata folder in workspace...and start again.
(you're going to have to re-import all your projects)
Install Eclipse from repository(I'm using eclipse from software center and the openJDK).
If you're running x64: sudo apt-get install ia32-libs-multiarch
As root launch eclipse to get the latest platform/PDT updates(they're in /usr somewhere, so you need to be root).
Close eclipse(optionally delete the /root/.eclipse folder).
Launch eclipse as non-root.
Install plug-ins. They'll be in your ~/.eclipse directory.
If it's already installed
Remove all the components in Window->Android Manager
Update the plug-in through:
Help->Install Software->Already installed -> Show updates -> Install
Re-install all the components.
If it's not already installed
Install the ADT plugin through the Help install software menu. With this link.
Choose to install the SDKs during the ADT install.
If any part of installing gives you errors, un-install and install that part.
Install all the updates.
If any part of updating gives you errors, un-install and install that part.
This achieves the results below.
Versions:
In my case it happened after I installed did a mistake at the beginning.
I used 64-bit Linux Ubuntu machine
Installed 32-bit eclipse
Added platforms and packages following
http://developer.android.com/sdk/installing/adding-packages.html
Installed 64 bit eclipse because I had problems with 32 bit eclipse operation.
But I didn't find that android-sdk-linux/platform tools/adb is a 32-bit executable.
Trying to run from terminal it causes weird message: "No such file or directory"
The solution is to remove the step 2 results and start it again with 64 bit eclipse.
I just renamed android-sdk-linux and unpacked it again to remove results of step 2.
One of the reason this happens is usually the swap space....make sure you have a swap partition and it is of sufficient size
Mine was showing similar problem but it was each time i would clean my project the R would disappear and not come back.
Swap partition solved my aapt problem.

Error when installing the ADT plugins in Eclipse

I'm using Eclipse 3.5.2 and when I followed the steps on this tutorial(http://developer.android.com/guide/developing/tools/adt.html). I got an error message during the last steps.
An error occurred while installing the
items session context
was:(profile=PlatformProfile,
phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install,
operand=null --> [R]org.eclipse.cvs
1.0.400.v201002111343, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
The artifact file for
osgi.bundle,org.eclipse.cvs,1.0.400.v201002111343
was not found.was not found.
would be grateful if anyone can help me out :)
Thanks.
P.S. I'm running Ubuntu Lucid Lynx with kernel 2.6.32-24-generic on x86_64. I have the ia32libs installed as well.
Did you install Eclipse from the Ubuntu Software Center ? Apparently there are several packages missing from that install.
You should be able to fix it with an sudo apt-get install eclipse-plugin-cvs eclipse-jdt eclipse-pde

Categories

Resources