This problem was a bit complicated, but can be solved!
Firstly, when you get an error message similar to the one you have, you should try to run a command that Maven said that it did not start, because after maven loads the dependencies and creates the code, etc. . Maven itself launches the initial command to make your apk. In your case, this is:
C:\Users\hvalls\AppData\Local\Android\android-studio\sdk\build-tools\19.0.3\aapt.exe package -f --no-crunch -IC:\Users\hvalls\AppData\Local\Android\android-studio\sdk\platforms\android-19\android.jar -MC:\Users\hvalls\Desktop\my-app\AndroidManifest.xml -SC:\Users\hvalls\Desktop\my-app\res -AC:\Users\hvalls\Desktop\my-app\target\generated-sources\combined-assets\assets -m -JC:\Users\hvalls\Desktop\my-app\target\generated-sources\r --output-text-symbols C:\Users\hvalls\Desktop\my-app\target --auto-add-overlay
Therefore, when you run this, you will get the actual dx.bat tool error output. Just fix the errors you see in the output and run mvn.
In my case, I got this error because one of the images under my res folder is not a png file, although the extension is png. After I fixed the file type, it worked.
Candaş pamukçu
source share