I would like to run and compile my Libgdx game project in AIDE on Android, but I don't quite know how to do it. Should I edit .classpath file, move jars to different directory or maybe something else?
Thank you for your answer in advance.
If you have an Eclipse project you can just open the android project in AIDE and it will work.
Besides, the latest version of AIDE contains sample libgdx tutorials so you can also build from there or inspect those .classpath settings, good luck!
You have to install gradle from : http://download.springsource.com/milestone/TOOLS/gradle/
and try importing
Related
I want to write a little project for which I have chosen LWJGL library.
But I have some problem with installing it into Visual Studio Code IDE. I have found manuals for Eclipse, NetBeans, and IntelliJ, but none for the VSC. Can you please write a detailized guide how to install LWJGL3 into VSC?
Please write what and where I should copy files and where to add them into dependencies for my project.
I advise you stick with Maven which is a java widely used dependency manager. It will allow you to build your project independently of any IDE.
So an LWJGL can be build via Maven. Just go to customize section, select what you need and it will show you below how to add LWJGL to Maven.
But also spend some time to know Maven a little. It will help you a lot.
I am having trouble with Android Studio. I forked the project here:
https://www.google.com/url?q=https://github.com/ubclaunchpad/Android-Calculator&sa=D&ust=1514703967854000&usg=AFQjCNHLwSAZ_JER6VlZ8LP6AtTzfUVBog
and cloned it in Android Studio, but it keeps telling me that I should Migrate to Gradle. However, if you look at the project files on github, there are a lot of gradle related files, so clearly the project does use gradle. How do I fix this? Is there a simple solution?
it works fine with me ensure that you open Calculator folder as a project, not Android-Calculator-master
check this photo
open calculator folder
So my friends and I are making a game for Android and we are using Android studio. We are using libgdx. We are also learning how to use github. Anyways, using Android Studio, I uploaded the basic libgdx setup. The one that just displays the Bad Logic image. My friend downloads it from github using Android studio but there are errors everywhere. It says that it can't find the badlogic package and it gives the following error:
This project does not use the Gradle build system. We recommend that you migrate to using the Gradle build system.
I know that libgdx uses gradle. So what is the problem? Why can't we simply upload and then download a simple project?
Thanks!
Try to remove the .gradle directory and re-import the project or use the Setup App Installer from here to create a new gradle project.
Thanks for the help! I finally figured it out.
Basically, when I imported the project, I was just importing with existing project files. These are the steps I took to get it fixed.
Check out from Version Control using Android Studio and the welcome screen.
When asked to open, say NO.
Go to the folder that is associated with the repo.
Create a local.properties file there and in that file it should have
sdk.dir = /YOUR/PATH/TO/SDK/HERE
Then go back to Android Studio.
Click Import Project and select the folder that has it in there.
From then on, it should work forever as the .gitignore file that is generated by libgdx will ignore the local.properties file when pushed. I hope this helps someone!
How can I get a jar file from a desktop libgdx project in netbeans?
I know it's a bit late and you've probably figured it out by now, but I'll still answer this for those who don't know.
Right click on your desktop project
Go to the "Tasks" menu
Click "dist"
This will create a standalone JAR file in <pathToYourProject>\desktop\build\libs called desktop-1.0.jar (or something like that).
I don't know if that's the proper way to do it, but it's the only one that worked for me.
I have no experience with this but you should be able to unpack/extract the jar file and then load then load the project into Netbeans.
If it's a gradle project.
If it's not search further since I do not know Netbeans.
Import it with Android Studio and work with my favorite IDE. Choose import none android studio project.
Okay, so I'm having difficulties implementing this Change log library into my android app in eclipse: https://github.com/gabrielemariotti/changeloglib
I tried using the clone url and importing the library into eclipse and then going into the properties of my android project and adding it as a library but that didn't work. I do not have Maven installed nor do I know anything about it. Is there a way I can just get a jar of this library somewhere? Can someone please help me? Thank you!
Its most likely not setup as an Android Library project and that is why it can't be accessed that way.
You can create the jar yourself though by using: https://stackoverflow.com/a/11289115/1784299 eclipse itself or running the jar command in a terminal. (Eclipse might be a little more user friendly if you don't use the terminal.
I would however highly recommend learning how to incorporate Maven in your projects because it is a huge time saver. If you migrate to Android Studio then Maven will become your best friend.
I answer here to help other devs with the same issue.
The library is built with the Android Studio folder structure.
I highly recommend to use the gradle build system to work.
Hovewer, you can build it locally with Eclipse.
All required steps are described here:
https://github.com/gabrielemariotti/changeloglib/blob/master/doc/BUILD.md#reference-this-project-as-a-library-in-eclipse.
It can be valid for a lot of libraries.
Eclipse uses src and res as source folders. Android Studio instead uses src/main/java and src/main/res as source folders.
So you have to mark the java folder as source (right click on folder -> Build-Path -> use as source folder)