添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
千杯不醉的红烧肉  ·  FileExistsError: ...·  9 月前    · 
善良的牛肉面  ·  java.io.IOException: ...·  1 年前    · 
Quote from: jmpessoa on January 30, 2021, 07:24:59 pm
Add

"/bin"    to  Ant path.... click OK...

After, try a new project again...


Edited: What about java? Remember that you fix it in your another computer...
(Gradle don't work  when java > 13.... and LAMW need java 8 (a.k.a 1.8_xxx)  to support Ant...

Do you know the link to download the correct Java version?

Thanks

from here:
https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/LAMW_Getting_Started.txt

:-[

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

I have been trying and retrying for days, uninstalling and reinstalling Java and changing Gradle versions, but in the end the error message has always been the same:

  1. Building APK ( Gradle ) ... : FAILURE : Build failed with an exception ., Errori : 1
  2. Fatal : FAILURE : Build failed with an exception .
  3. * What went wrong :
  4. Execution failed for task ':mergeDebugResources' .
  5. > 8 exceptions were raised by workers :
  6. com . android . builder . internal . aapt . v2 . Aapt2InternalException : AAPT2 aapt2 - 3 . 4 . 1 - 5326820 - windows Daemon #0 : Daemon startup failed
  7. This should not happen under normal circumstances , please file an issue if it does .
  8. com . android . builder . internal . aapt . v2 . Aapt2InternalException : AAPT2 aapt2 - 3 . 4 . 1 - 5326820 - windows Daemon #1 : Daemon startup failed
  9. This should not happen under normal circumstances , please file an issue if it does .
  10. com . android . builder . internal . aapt . v2 . Aapt2InternalException : AAPT2 aapt2 - 3 . 4 . 1 - 5326820 - windows Daemon #2 : Daemon startup failed
  11. This should not happen under normal circumstances , please file an issue if it does .
  12. com . android . builder . internal . aapt . v2 . Aapt2InternalException : AAPT2 aapt2 - 3 . 4 . 1 - 5326820 - windows Daemon #3 : Daemon startup failed
  13. This should not happen under normal circumstances , please file an issue if it does .
  14. com . android . builder . internal . aapt . v2 . Aapt2InternalException : AAPT2 aapt2 - 3 . 4 . 1 - 5326820 - windows Daemon #4 : Daemon startup failed
  15. This should not happen under normal circumstances , please file an issue if it does .
  16. com . android . builder . internal . aapt . v2 . Aapt2InternalException : AAPT2 aapt2 - 3 . 4 . 1 - 5326820 - windows Daemon #5 : Daemon startup failed
  17. This should not happen under normal circumstances , please file an issue if it does .
  18. com . android . builder . internal . aapt . v2 . Aapt2InternalException : AAPT2 aapt2 - 3 . 4 . 1 - 5326820 - windows Daemon #6 : Daemon startup failed
  19. This should not happen under normal circumstances , please file an issue if it does .
  20. com . android . builder . internal . aapt . v2 . Aapt2InternalException : AAPT2 aapt2 - 3 . 4 . 1 - 5326820 - windows Daemon #7 : Daemon startup failed
  21. This should not happen under normal circumstances , please file an issue if it does .
  22. * Try :
  23. Run with -- stacktrace option to get the stack trace . Run with -- debug option to get more log output . Run with -- scan to get full insights .
  24. * Get more help at https : //help.gradle.org
  25. Deprecated Gradle features were used in this build , making it incompatible with Gradle 7.0 .
  26. Use '--warning-mode all' to show the individual deprecation warnings .
  27. See https : //docs.gradle.org/6.6.1/userguide/command_line_interface.html#sec:command_line_warnings
  28. BUILD FAILED in 4s
  29. 10 actionable tasks : 9 executed , 1 up - to - date
  30. Exception , Errori : 1
  31. Fatal : [ Exception ] Failed : Cannot build APK!

Is there any compatibility issue with Windows 8.1?
Quote
I have been trying and retrying for days, uninstalling and reinstalling Java and changing Gradle versions, but in the end the error message has always been the same:

After re-install Java [jdk1.8.0_xxx  recomendated] and Gradle  [6.61 recomendated]

you need (re)configure the "Environments Variable"  [Control Panel]
By changing the settings in the way you can see in the first attached image, I have managed to build the .apk.

Nevertheless, when I try to sign the same .apk, I receive an error message originated by zipalign.exe, as you can see in the second attached image.

Any idea about the cause?

P.S. In the folder C:\Windows\System32 I have found no file named zipalign.exe or the like.
Maybe you need fix the GRADLE_HOME  "Evironment Variable"  in Control Panel

You can compare your  "gradle-local-apksigner.bat" [edit/open: Notepad] using  the example below:

Quote
set Path=%PATH%;C:\android\sdk\platform-tools;C:\android\sdk\build-tools\29.0.2
set GRADLE_HOME=C:\android\gradle-6.6.1
set PATH=%PATH%;%GRADLE_HOME%\bin
zipalign -v -p 4 C:\android\workspace\AppLAMWNoGUIProject12\build\outputs\apk\release\AppLAMWNoGUIProject12-armeabi-v7a-release-unsigned.apk C:\android\workspace\AppLAMWNoGUIProject12\build\outputs\apk\release\AppLAMWNoGUIProject12-armeabi-v7a-release-unsigned-aligned.apk
apksigner sign --ks C:\android\workspace\AppLAMWNoGUIProject12\applamwnoguiproject12-release.keystore --ks-pass pass:123456 --key-pass pass:123456 --out C:\android\workspace\AppLAMWNoGUIProject12\build\outputs\apk\release\AppLAMWNoGUIProject12-release.apk C:\android\workspace\AppLAMWNoGUIProject12\build\outputs\apk\release\AppLAMWNoGUIProject12-armeabi-v7a-release-unsigned-aligned.apk
Maybe you need fix the GRADLE_HOME  "Evironment Variable"  in Control Panel

You can compare your  "gradle-local-apksigner.bat" [edit/open: Notepad] using  the example below:

Quote
set Path=%PATH%;C:\android\sdk\platform-tools;C:\android\sdk\build-tools\29.0.2
set GRADLE_HOME=C:\android\gradle-6.6.1
set PATH=%PATH%;%GRADLE_HOME%\bin
zipalign -v -p 4 C:\android\workspace\AppLAMWNoGUIProject12\build\outputs\apk\release\AppLAMWNoGUIProject12-armeabi-v7a-release-unsigned.apk C:\android\workspace\AppLAMWNoGUIProject12\build\outputs\apk\release\AppLAMWNoGUIProject12-armeabi-v7a-release-unsigned-aligned.apk
apksigner sign --ks C:\android\workspace\AppLAMWNoGUIProject12\applamwnoguiproject12-release.keystore --ks-pass pass:123456 --key-pass pass:123456 --out C:\android\workspace\AppLAMWNoGUIProject12\build\outputs\apk\release\AppLAMWNoGUIProject12-release.apk C:\android\workspace\AppLAMWNoGUIProject12\build\outputs\apk\release\AppLAMWNoGUIProject12-armeabi-v7a-release-unsigned-aligned.apk

I couldn't find any GRADLE_HOME  "Evironment Variable"  in Control Panel/Advanced Settings/System.