APDE icon indicating copy to clipboard operation
APDE copied to clipboard

Failed to build sketch previewer

Open TheUltimateKrtek opened this issue 1 year ago • 5 comments

This has been mentioned here, but it was marked as complete and commented on as not enough information. https://github.com/Calsign/APDE/issues/69

When running Preview sketch on APDE pre-0.5.2 on Android 14, it fails to build the Sketch Previewer app, simply returning Failed to build sketch previewer.

I have three phones with the lastest updates: Samsung Galaxy S9 Samsung Galaxy S21 Ultra Samsung Galaxy S24 Ultra

Building Sketch Previewer fails on S21 and S24. Works on S9. Building app fails on S24. Works on S21 and S9.

I currently can't check the OS, but I'll update this if needed.

TheUltimateKrtek avatar Jun 15 '24 13:06 TheUltimateKrtek

Im having the same issue, however I took the sketch previewer app from an android 13 phone, transferred the apk and installed it to my Galaxy S24 Ultra; running android 14. Here's the verbose output:

Any ideas? @Calsign

Initializing build sequence…
Target: debug
Deleted old build folder
Pre-processing…
Writing AndroidManifest.xml…
Writing resources…
Injected log broadcaster
Copying Processing libraries…
Copying dexed Processing libraries…
Copying contributed libraries…
Detected architecture arm64-v8a
Available cores: 8
Copying AAPT…
Changing execution permissions for AAPT…
Copying GLSL shader files…

Packaging resources with AAPT…
/data/user/0/com.calsignlabs.apde/files/tmp/aapt[1]: syntax error: unexpected '��4�=4'
AAPT failed with error code 1

g-l-i-t-c-h-o-r-s-e avatar Oct 22 '24 10:10 g-l-i-t-c-h-o-r-s-e

As a side note, an APDE app/apk built on android 13 will work in android 14

g-l-i-t-c-h-o-r-s-e avatar Oct 22 '24 18:10 g-l-i-t-c-h-o-r-s-e

Here is an logcat file, showing what happens when I try to build sketch previewer on Android 14/Galaxy S24 Ultra... Does @Calsign or anyone have any clues whats causing this?

g-l-i-t-c-h-o-r-s-e avatar Jan 17 '25 04:01 g-l-i-t-c-h-o-r-s-e

Apparently, AAPT1 is missing on Android 14 fresh install.

TheUltimateKrtek avatar Feb 25 '25 09:02 TheUltimateKrtek

私も同じ問題で困っています。 v0.5.3はいつリリースされますか?

yykosaka avatar Jun 20 '25 13:06 yykosaka