So, I've made a game using Libgdx in eclipse for android/desktop. The strange thing is that when I export it to a desktop app, it doesn't exports my assets into the JAR(I should put them manually for it to work properly). When I try running my app on android (AVD's and my phone) it uploads the app, but then stops(Unfortunately the game stopped).
http://imgur.com/a/6x8a3 You can see my project structure here.
I've double checked if the "Extract required libraries...." is enabled and if the assets folder is set as a working directory. I also got the latest version of Gradle installed and tested in cmd.
The weird things is that if I save and send my project to a friend of mine, he can export it to desktop and it exports all of the assets and he also can run it on his tablet and AVD - so i thing the problem is not from the code, but from the eclipse/gradle settings.
Any ideas how to fix this problem?
Related
I am done developing an application that has POS device integrated. This device communicates through Javapos libs and also some dll(the dlls are placed outside the src) plus a jpos.xml placed just inside the src. When the app is executed on the netbeans it works alright with the device, but not when I execute it outside the NetBeans. This is a JavaFX app based on jdk-8. Because of this I just cannot create an installable since the device needs to work with the app. The following is the preview of the directory;
The app project runs smoothly in NetBeans 12.6 smoothly. But when I even try to run it directly from the created dist folder, everything works except the POS device. So Long as it can run within the project convinces me that I can do something to make it work outside NetBeans, but how????
What am I missing. Need help to resolve this.
first of all here the link to the repo:.
https://github.com/Azure-Samples/cognitive-services-speech-sdk
When I open the project using Eclipse and change the mandatory fields:
SpeechConfig config = SpeechConfig.fromSubscription("myKey", "westus");
//westus is the service region
... all works fine.
After importing the Eclipse project to IntelliJ, converting it to a maven project and finally executing it, the program runs but
there is no speech recognized, (I didn't even get the request from Intellijto grant Microphone permission) that might be the problem.
Edit:
I have Azure Toolkit for IntelliJ installed with a valid subscription, but it doesn't work either (still the same problem as stated above, it's strange because it works in Eclipse)
Any idea I work on Mac OS by the way? See below Screenshot of the output:
I am trying to add push notifications to my android application and I found this tutorial on the topic.
But eclipse does not recognize GoogleCoundMessaging, even though I added google_play_service_lib to my project.
Here is my captured screen
I have fixed my problem.
*I added "google_play service.jar" to my project "libs" folder and add it to project build path.
*Then eclipse recognized "GoogleCloudMessaging"
*But application stop working when try to get GCM RegID.
*I run my application without debugging. All problems fixed!
I have suddenly run into an issue with my build environment and I can't figure out why. I can run my project just fine using gradlew desktop:run however, when I try to run the project from Eclipse using right-click run as desktop application (on the desktop project of course) it suddenly cannot find my pack.atlas file. There is no doubt the file exsts. I have refreshed my eclipse project multiple times and the project runs fine using gradle commandline. It was working fine yesterday. The only thing I can think of that made it mess up was I ran a Gradle command from within the IDE yesterday but I'm not sure how it could have got messed up like this. It is important for me to figure out this issue as I cannot use the Eclipse debugger with this error. Does anyone have any guess as to why Eclipse isn't seeing the assets folder?
Probably your assets from the android project is not correctly linked with the desktop project.
Your linked assets folder from inside the desktop project should look like this:
If it doesn't(or it doesn't exists) ,delete the folder(in the desktop project),and go to the the project properties->java build path->source->link source
browse->[select the asset folder inside the android project]->finish
You can find the project here: https://github.com/googlesamples/cardboard
The last time I worked with android was about a year ago and I'm trying to use this VR project to get back into it. All I want to do is mess around with the app to get a feel for it.
However, I haven't been able to get it running. I installed a fresh copy of Eclipse (juno) with the JDK and android SDK and got the android 4.4W stuff from the SDK manager. I also made a Nexus 5 AVD.
My problem is that I've tried choosing multiple 'root' folders to 'import as existing android project' and none of them have been runnable. Each time the eclipse terminal gives an 'Installation error: Unknown failure' error after installing 'MainActivity.apk'.
I figured the 'main' folder would be most likely to work since it has the manifest and all the other folders associated with android projects.
How do I get it running?
#CommonsWare: I have the project up and running on Eclipse(Juno) with Android 4.4.2
#ThroatOfWinter: These steps should help you. They worked for me.
Download the project from github as a ZIP file
Extract the contents of the ZIP file (named cardboard-master) into a folder and then import the whole folder into Eclipse as a new android project
Create a new "libs" folder in your project
To use the Cardboard API, download the VR Toolkit .jar file and include it in your project in the "libs" folder.
If everything has worked fine so far, you'll find that the "src" folder in your new Cardboard project is empty but the "java" folder contains 3 .java files.
Create a new package in "src" called "com.google.vrtoolkit.cardboard.samples.treasurehunt"
Copy the 3 files from the "java" folder and paste in the package you created in the previous step.
Clean and build the project
Test on an android device (preferably) with the cardboard app installed
You shouldn't need to edit the manifest at all.
That is not an Eclipse project. It is for use with Android Studio and Gradle. Your choices are:
Switch to Android Studio, or
See if somebody else has already reorganized that code into an Eclipse project, or
Attempt to reorganize it yourself, moving the contents of src/main/ into appropriate locations and fixing up the manifest for things that are set now in build.gradle, or
Find something else as a project to get back into Android development
This alternative worked for me: https://github.com/raasun/treasurehunt
It's pretty much the same as the Cardboard sample project from Google except that it's compiled with Eclipse/ANT instead of Android Studio/gradle.
Just follow the first part of moyheen's instructions to set it up.
To make it work on Eclipse, I just placed the Cardboard API jar (cardboard.jar) at the root folder of my app (alongside AndroidManifest.xml), and then in Build Path dialog I just did "Add Jar" and selected cardboard.jar.
Warning: Placing cardboard.jar in libs/ folder won't work, I tried, and it will produce an invalid APK that can't be installed.