TheOathMan / Godot-Android-Live-Wallpaper

Make your Android Godot application run as a live wallpaper in the background.
MIT License
16 stars 4 forks source link

Failed to transform LiveWallpaper-debug.aar to match attributes #4

Closed p-7 closed 2 days ago

p-7 commented 3 days ago

Hi,

In new version of plugin I have this issue , is any solution for this ? I try , try, try and can't stop this error :( GodotLiveWallpaperProject is example project, witch updated plugin to new version. I try check this https://issuetracker.google.com/issues/158753935

FAILURE: Build failed with an exception.

TheOathMan commented 3 days ago

Make sure the path to LiveWallpaper-debug.aar and LiveWallpaper-release.aar in editor_WP_plugin.gd script matches their folder location. In the previous version it was

func _get_android_libraries(platform: EditorExportPlatform, debug: bool) -> PackedStringArray:
    if debug:
        return PackedStringArray(["LiveWallpaper/bin/debug/LiveWallpaper-debug.aar"])
    else:
        return PackedStringArray(["LiveWallpaper/bin/release/LiveWallpaper-release.aar"])

but in the new version

func _get_android_libraries(platform: EditorExportPlatform, debug: bool) -> PackedStringArray:
    if debug:
        return PackedStringArray(["res://addons/Android/LiveWallpaper/bin/LiveWallpaper-debug.aar"])
    else:
        return PackedStringArray(["res://addons/Android/LiveWallpaper/bin/LiveWallpaper-release.aar"])
TheOathMan commented 3 days ago

I update the released version to remove the Android folder, this way you don't need to make the edit

p-7 commented 2 days ago

Oh..., I looked deeper and deeper, and it's just a path. Thanks!

Thanks @TheOathMan for update plugin for Godot 4.4 stable ! :)