Showing posts with label libgdx. Show all posts
Showing posts with label libgdx. Show all posts
Tuesday, December 20, 2016
LibGDX How to solve the issue ADB didnt ACK failed to start daemon
LibGDX How to solve the issue ADB didnt ACK failed to start daemon
After the Import of the Gradle Project in the Eclipse, you can immediately debug it to see how the default project looks like.
The fastest way to see what the existing codes work is to Run / Debug the Desktop directory.
However, if you are only interested on the performance in the Android device, you could straightaway connect it to your PC, and Run / Debug the Android directory.
Now everything is intuitive until the error hits you:
"ADB didnt ACK, failed to start daemon"
What the heck is this and how to solve this issue?
Of course, search engines could get you some results. However, I am surprised to find that the most voted solution doesnt really provide a big picture of what went wrong. It takes me hours to find out that, it is the answer by vladof (in this link) that really sheds some lights on how to cope with this issue more thoroughly.
Since his answer is getting drowned, here I show it again (with minor modification) - The most complete solution for the "ADB didnt ACK" problem.
- Enter Command Prompt.
Go to platform-tools in Android SDK directory. - Type:
adb nodaemon server
Output:
cannot bind tcp:5037
- This implies that the port 5037 is occupied by something else. Type the command below to see who is the culprit:
netstat -ano | findstr 5037
Output: - Note that the process with PID 4888 is occupying port 5037.
- Open Task Manager, click on Processes tab, find the process and kill it, tfadb.exe in this case. If you dont see the PID column, you may add it from the "Views" tab. Repeat the process from 2 - 5 if observe the similar situations again.
- Retry
adb kill-server
andadb start-server
, you will notice that the daemon will start successfully. :)
Available link for download
Saturday, September 17, 2016
LibGDX How to install the Gradle plugin
LibGDX How to install the Gradle plugin
After generating the necessary files from the gdx-setup.jar, according to the messages from the console, it is time to Import the Gradle project with the Eclipse IDE.

However, by default, the Eclipse IDE doesnt come with the Gradle Plugin. Where to install it?
The answer actually is available here. However, I am not following the step of the "Installation from the STS dashboard". Instead, I chose the second option "Installing Gradle Tooling from the update site". Why? Because Eclipse IDE supports that feature.
By following those steps above and restart your Eclipse IDE, you would be able to see the Gradle option when you opt "Import", as shown below:
- Copy this link: http://dist.springsource.com/release/TOOLS/gradle (latest release)
- In Eclipse Open Help >> Install New Software
- Paste a the link into the "Work with" text box.
- Click the Add button at the top of the screen.
- Ensure that the option "Group Items by Category" is enabled.
- Select the top-level node Extensions / Gradle Integration.
- Click "Next". This may take a while.
- Review the list of software that will be installed. Click "Next" again.
- Review and accept licence agreements and Click "Finish".

After the "Next" button, click the "Build Model" (it may take some time to generate the screen similar to the below):
![]() |
*Note: this image shows a failure example. |
Here, you have to SELECT ALL, and click Next/Finish.
If you come across the error message as in the picture: "my-gdx-game-android existing workspace project my-gdx-game-android has the same name", this means your current workspace has the other directories with the same naming. You may create a new workspace or remove the old one.
With this, now the LibGDX is ready to take off. Implement your logic, debug and be ready to package the app for multiple platforms!
Available link for download
Subscribe to:
Posts (Atom)