Sketchware-Pro / Sketchware-Pro

Sketchware Pro's sources in Java. Now anyone can contribute to Sketchware Pro.
https://sketchware.pro
Other
863 stars 254 forks source link

Google Material 1.9.0 Library Unsupported #872

Open guhg opened 1 year ago

guhg commented 1 year ago

I get this error when using the com.google.android.material:material:1.9.0 library, I want the new library (Could you guys make sketchware support it or something?):

/storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8625: error: unknown resource type 'macro'. /storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8626: error: unknown resource type 'macro'. /storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8627: error: unknown resource type 'macro'. /storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8628: error: unknown resource type 'macro'. /storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8629: error: unknown resource type 'macro'. /storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8630: error: unknown resource type 'macro'. /storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8631: error: unknown resource type 'macro'. /storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8632: error: unknown resource type 'macro'. /storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8633: error: unknown resource type 'macro'. /storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8634: error: unknown resource type 'macro'. /storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8635: error: unknown resource type 'macro'. /storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8636: error: unknown resource type 'macro'. /storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8637: error: unknown resource type 'macro'. /storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8638: error: unknown resource type 'macro'. /storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8639: error: unknown resource type 'macro'. /storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8640: error: unknown resource type 'macro'. /storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8641: error: unknown resource type 'macro'. /storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8642: error: unknown resource type 'macro'. /storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8643: error: unknown resource type 'macro'. /storage/emulated/0/.sketchware/libs/local_libs/material_V_1.9.0/res/values/values.xml:8644: error: unknown resource type 'macro'.

remaker17 commented 1 year ago

The error appears because sketchware uses an old version of aapt2.

guhg commented 1 year ago

Could you guys update the aapt2 please or something?

JavkhlanK commented 1 year ago

If only building it from source was easy enough. Google doesn't provide any official arm/arm64 builds for Android, and other binaries from the internet aren't really trustworthy or are from repos with incompatible licenses.

I already tried building it myself, but I wasn't yet able to find enough time to finally get it to work.

guhg commented 1 year ago

Aw man. Well.... I believe in you! Bing AI and/or Bard can't help?

guhg commented 1 year ago

You need like a team of skilled coders... wish I could help but I'm not that good at coding.

MarvinStelter commented 10 months ago

Maybe take a look on this?

https://github.com/RohitVerma882/aapt2

JavkhlanK commented 10 months ago

I can't find any license in that repo, so no unless it's added or explicitly allowed by the author.

MarvinStelter commented 10 months ago

@JavkhlanK it would be possbile to contact him

JavkhlanK commented 10 months ago

Do you already have contact to them?

MarvinStelter commented 10 months ago

I guess, I'm not sure but it is possible that he is in the AndroidIDE community

guhg commented 10 months ago

Hmmm... It'd be awesome if that works. Have you tried it?

Protonosgit commented 9 months ago

https://github.com/RohitVerma882/aapt2/blob/main/LICENSE

guhg commented 8 months ago

If we could get the extraordinary advancement of the aapt2 feature in Sketchware Pro for its latest update can only be described as a mind-boggling concept. The intricate and intricate process of complication undoubtedly contributes to the cultivation of exceptionally sophisticated and resilient applications that push the boundaries of technological innovation.

JavkhlanK commented 8 months ago

Last weekend I was able to upgrade aapt2 to tag platform-tools-33.0.3 with commit b16e7c2f89f4f96d9d8a40d454e8bf4836388640. Need to test compiling MDC v1.9.0 though.

guhg commented 8 months ago

Awesome. Let me know if you end up testing it.

JavkhlanK commented 7 months ago

This issue is present in the latest released version, so let's keep it open until it isn't anymore.

guhg commented 7 months ago

Okay, sorry. Check my feature request if you can. There's a new version of aapt2 I think we should update too, 34.0.3

JavkhlanK commented 7 months ago

any maintainer on GitHub sees new issues, there's no need to remind them.

CyberXCoder-6649 commented 7 months ago

I think we can use build tools which AndroidIDE uses like aapt2, d8, etc from https://github.com/lzhiyong/android-sdk-tools or we can use Termux Packages

JavkhlanK commented 7 months ago

Last weekend I was able to upgrade aapt2 to tag platform-tools-33.0.3 with commit b16e7c2. Need to test compiling MDC v1.9.0 though.

(already done)