Errors while setting up LibGDX on Eclipse - java

I have been trying to setup LibGDX on Eclipse (4.3). I followed the instructions here: https://github.com/libgdx/libgdx/wiki/Prerequisites and installed both ADT plugin for Eclipse and the Google Web toolkit successfully. Then I used the libgdx-ui.exe to create the libGDX project and on creating it, I see errors in Eclipse.
I am pretty sure I have installed the plugins properly and I have JDK 7 as well.
Any help would be greatly appreciated.
Thanks :)
It seems I have not installed the GWT plugins properly. But on trying to install it from the link, the option to install the SDK does not appear in the list.(Please check the image in the last comment I posted).

1) Android requires (before kitkat) jdk 6. It won't work with jdk 7.
2) After installing ADT plugin, you also have to open android sdk manager and download required api files.
These two should fix your android and java.lang.Object issues. It's better to test an android app on this setup (without libgdx) first.
3) Right click on all warnings regarding classpath entries, eclipse will provide you automatic quick fixes.
If the issue stays after this, the problem is with gwt sdk installation. Now you can follow The project XXX does not have any GWT SDKs on its build path. It should work smoothly as other problems won't interfere with it now.
Hope this helps.

Related

How to set eclipse for android development?

I just downloaded java JDK 8 and set the environment variables for JDK and JRE, downloaded android SDK extracted them directly to C: (there were no platform tools so I used the command line to download them) and also set the environment variables. And I downloaded eclipse oxygen and I installed new software for ADT Plugin. When I set preferences I referred to the SDK folder and hit apply but nothing seems to happen like no SDK targets are listed. Hhuhuhuhuhuhuhu T^T I have deleted everything from Java, SDK, eclipse and downloaded them all again while disabling my antivirus but that didn't fix it. I also cant open my Android SDK Manager using eclipse, like it shows that it's loading but after that nothing happens even if I wait for 10 mins nothing shows up on screen, not even the command line that seems to just flash briefly which is what most people are having problems with when I search google. Can someone please tell me what to do?? I'm mainly using eclipse for android projects in school
By the end of 2015, Google ended the development and official support for the Android Developer Tools (ADT) in Eclipse.
As stated by Google, every app development project should be migrated to Android Studio.
So you should migrate your eclipse project to android studio.

Chilli Source Android build on windows

I've tried building the CSEmptyTemplate project in eclipse for android but have run into a host of issues with it.
Looking at the documentation, it doesn't appear as if it should be this difficult.
Firstly, I've installed cygwin and installed the devel package to get make.exe and gcc compilers. I'm also using cygwin as part of the tool chain.
However, the error I keep getting is 'make: *** No rule to make target `all'. Stop.'.
Any advice on fixing these issues would be appreciated.
edit: Found the make files. I was just an idiot last night when working on this.
There shouldn't be any additional steps required to build Chilli Source for android on windows, just the simple steps listed on the website here: http://chilli-source.chilli-works.com/docs/?page_id=67
However setting up the Android Development Tools with the NDK can be a bit of a pain. Judging by the error your getting my gut feeling is that something isn't set up correctly there.
Chilli Source requires the latest versions of the SDK, NDK and ADT. Can you ensure you have:
Android API level 21.
The latest versions of the Built Tools, Platform Build Tools and Google Play Services.
NDK revision 10c.
The latest ADT is also missing a couple of things that means it can't be used out of the box.
It doesn't come with the native dev tools which can be acquired by doing the following:
Go to "Help" then "Install New Software..."
Select "Android Developer Tools Update Site - https://dl.google.com/android/eclipse". You make have to edit it to instead point to https://dl-ssl.google.com/android/eclipse
In Developer Tools select and install Android Native Development Tools.
It also doesn't come with ant. This isn't causing your issue, but it will cause issues later on, so get it following these steps:
Go to "Help" then "Install New Software..."
Select "Juno - http://download.eclipse.org/releases/juno"
In General Purpose Tools select and install Eclipse Plug-in Development Environment.
Now that you've got everything required, ensure that you've got it set up correctly:
The correct version of the SDK selected the Android tab in preferences.
The correct version of the NDK selected in the Android/NDK tab in preferences.
Android 5.0 selected in the Android tab in Project Properties.
Finally, on windows you also need Cygwin. It's been a while since I've used it (I'm not a fan of cygwin so I do my Android development in a Ubuntu virtual machine) but only the "devel" package is needed iirc, so make sure you've at least got that.
Hopefully ensuring all of that is set up correctly will fix your problem!

android development tool error in eclipse kepler and windows 8.1

I tried to install adt 23.3.0 in Eclipse Kepler, but I have a problem. I tried every thing such as run as administrator or uncheck contact all update sites ... But I still have the same problem. I use Windows 8.1 and the error is:
Cannot complete the install because one or more required items could not be found.
Software being installed: Android Development Tools 22.3.0.v201310242005-887826
(com.android.ide.eclipse.adt.feature.group 22.3.0.v201310242005-887826)
Missing requirement: Android Development Tools 22.3.0.v201310242005-887826
(com.android.ide.eclipse.adt.feature.group 22.3.0.v201310242005-887826) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found
I'm not exactly positive about this but since this question has received very little attention I figured any answer is better than no answer.
From what my understanding it is done differently in Eclipse Juno which you do from within Eclipse.
Instead you have to download the Android SDK separately and then set the SDK path in preferences...
window>preferences>Android>sdk location.
Make sure to create a folder in the same directory as Eclipse so Eclipse can easily locate the sdk. Hopefully this helps

Install trouble for Android SDK in Eclipse Helios

EDIT: I fixed it by not installing the NDK Development stuff. I don't know what it is, or what it does, but it fixed my problem.
I'm on Windows 64-bit, using Eclipse Helios, and trying to install the latest Android SDK. So far, I've been able to download and install the SDK Manager and successfully ran through its stuff.
The trouble comes in when I try to install inside of Eclipse (Help -> Install New Software). Every time I try to install using either the URL address (http://developer.android.com/sdk/installing/installing-adt.html) or the .zip file I get this error:
An error occurred while collecting items to be installed
session context was:(profile=SDKProfile, > phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Comparison method violates its general contract!
Comparison method violates its general contract!
The internet doesn't seem to have any answers that I can find. Thanks!
Late to the conversation...
But I have found this error when trying to install packages, not at all associated with Android, from older Eclipse versions, which by now includes Helios. It actually took me a while to figure out all those Eclipse project names are actually versions. At the time of this writing, Eclipse Kepler is the latest, once I upgraded (pretty much a fresh install) to Kepler and tried again to install the packages, everything worked fine.
Hopes this is helpful to somebody.
Run eclipse as administrator and install Android SDK.
You must use https://dl-ssl.google.com/android/eclipse/ for SDK installation.
See Install ADT Plugin
By the way, which version of java are you using? I reckon the error is possibly an eclipse bug, related to Java 1.7.
Try JRE 1.6 and see if it works!
You need the following tool for starting the android devolopment
(1) Eclipse ide
(2) ADT for eclipse (android plugin for eclipse)
(3) Android SDK
You get a brief idea about each of these steps from the following link
http://codeglympse.blogspot.in/2012/10/installing-eclipse-and-android-sdk.html

Java eclipse run android project

im starting developing android applications and i learned from a Hello World tutorial. but when im running it this comes to the screen
Launch configuration ANSIBuffer references non-existing project Basic.
Please, help me and tell how i can run a android application.
Thanks
I would recommend downloading the official adt (android development tools) plugin for eclipse. You can find instructions on how to do that here: http://developer.android.com/sdk/eclipse-adt.html you need to make sure that you have the most recent version of android sdk installed before you do that. Instructions on how to install that are here (this includes a eclipse tutorial): http://developer.android.com/sdk/installing.html
I believe that that is all you need. Just ask if you need more help!
I did a guide once for a course, but it is in spanish:
http://otfusion.org/android/ (look for day 2)
But basically the guide is this:
Download JDK from here: Java SE - Oracle
Download Android SDK (.zip format, just unzip it in C:\android-sdk or if you are in *nix /home/user/android-sdk) from here: Android SDK - Developer Guide
Start ~android-sdk/tools/android and download your desired android target (eclair, donut, honeycomb, etc)
Download Eclipse for Java Developers* (as far I know, the latest eclipse WORKS on my notebook) from here: Eclipse - Indigo
Install eclipse in a readable/writable location like /home/user/bin or /opt/eclipse but give permission to the file - chown -r user:users /opt/eclipse (in Windows you must not have problems) otherwhise you will have problems.
Install ADT Plugin just add this site in Eclipse "Add Software" option (Help menu) https://dl-ssl.google.com/android/eclipse/
Restart Eclipse
Start one AVD and initiate your project using the Run button (As Android project) or whatever hotkey you use.
Also, Installing guide from developer.android.com Troubleshooting
*Note: Classic didn't work for me

Categories

Resources