Skip to main content
adamr88850265
Participant
February 7, 2019
Question

cant build to android dx tool failed

  • February 7, 2019
  • 1 reply
  • 367 views

when I try to compile a feathers mobile project i get the following error:

`: compileAPKProject: : : [java] dx tool failed: : :

BUILD FAILED : C:\moonshine\bbbNewFeathersMobileProject\build\build.xml:146: Java returned: 17 : : Total time: 20 seconds : :

BUILD FAILED : C:\moonshine\bbbNewFeathersMobileProject\build\build.xml:146: Java returned: 17 : : Total time: 20 seconds : FSCH exit code: 17`

according to this link:

https://help.adobe.com/en_US/air/build/WSBE9908A0-8E3A-4329-8ABD-12F2A19AB5E9.html

when adt. jar returns 17 it means: "Device packaging tool failed.

The package could not be created because expected operating system components are missing."

I have no idea what that means I only know as3.

I'm using moonshine ide trying to compile a feathers/starling project.

please help.

This topic has been closed for replies.

1 reply

Participant
February 20, 2019

I had this problem also, the solution that worked for me, which was posted by someone else, was to:

Find the file "adt.bat". The path to that file will be something like:

C:\Users\*yourusernamehere*\AppData\Local\FlashDevelop\Apps\flexairsdk\4.6.0+25.0.0\bin\adt.bat

Change the line:

@java -jar "%~dp0\..\lib\adt.jar" %*

to (or similar depending on your own program paths):

"C:\Program Files\Java\jdk1.8.0_131\bin\java".exe -jar "%~dp0\..\lib\adt.jar" %*