Google colab build failure (Android Gradle plugin requires Java 17 to run)

48 views
Skip to first unread message

Percy Godiraone Leburu

unread,
Jan 30, 2024, 9:37:49 AM1/30/24
to KivyMD users support
I was attempting to make updates to my app on playstore and when I was preparing a package on colab I ran into this error, how od i update my java version if this is the actual error or otherwise how do i address it if the error is something else?

FAILURE: Build failed with an exception.

* Where:
Build file '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/myproject/build.gradle' line: 20

* What went wrong:
A problem occurred evaluating root project 'myproject'.
> Failed to apply plugin 'com.android.internal.application'.
   > Android Gradle plugin requires Java 17 to run. You are currently using Java 11.
      Your current JDK is located in /usr/lib/jvm/java-11-openjdk-amd64
      You can try some of the following options:
       - changing the IDE settings.
       - changing the JAVA_HOME environment variable.
       - changing `org.gradle.java.home` in `gradle.properties`.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

Percy Godiraone Leburu

unread,
Jan 30, 2024, 4:30:44 PM1/30/24
to KivyMD users support
I  upgrading my openjdk to openjdk-17-jdk (!apt-get install -y openjdk-17-jdk), now my app started crushing everytime i try to login, when i ran it through the adb tool i get this error below:

I python  :  TypeError: Properties ['text'] passed to __init__ may not be existing property names. Valid properties are ['_background_origin', '_background_x', '_background_y', '_doing_ripple', '_fading_out', '_finishing_ripple', '_md_bg_color', '_no_ripple_effect', '_origin_line_color', '_origin_md_bg_color', '_ripple_rad', '_round_rad', 'adaptive_height', 'adaptive_size', 'adaptive_width', 'always_release', 'angle', 'auto_dismiss', 'background', 'background_hue', 'background_origin', 'background_palette', 'bg_color', 'buttons', 'center', 'center_x', 'center_y', 'children', 'cls', 'detect_visible', 'device_ios', 'disabled', 'duration', 'elevation', 'enter_point', 'focus_behavior', 'focus_color', 'height', 'hide_duration', 'hide_transition', 'hover_visible', 'hovering', 'id', 'ids', 'last_touch', 'line_color', 'line_width', 'md_bg_color', 'min_state_time', 'minimum_height', 'minimum_size', 'minimum_width', 'motion_filter', 'opacity', 'opposite_colors', 'orientation', 'padding', 'parent', 'pos', 'pos_hint', 'radius', 'right', 'ripple_alpha', 'ripple_behavior', 'ripple_canvas_after', 'ripple_color', 'ripple_duration_in_fast', 'ripple_duration_in_slow', 'ripple_duration_out', 'ripple_func_in', 'ripple_func_out', 'ripple_rad_default', 'ripple_scale', 'rotate_value_angle', 'rotate_value_axis', 'scale_value_center', 'scale_value_x', 'scale_value_y', 'scale_value_z', 'shadow_color', 'shadow_offset', 'shadow_radius', 'shadow_softness', 'shadow_softness_size', 'show_duration', 'show_transition', 'size', 'size_hint', 'size_hint_max', 'size_hint_max_x', 'size_hint_max_y', 'size_hint_min', 'size_hint_min_x', 'size_hint_min_y', 'size_hint_x', 'size_hint_y', 'snackbar_animation_dir', 'snackbar_x', 'snackbar_y', 'spacing', 'specific_secondary_text_color', 'specific_text_color', 'state', 'style', 'theme_cls', 'top', 'unfocus_color', 'widget_style', 'width', 'x', 'y']

How do i resolve this problem?

Percy Godiraone Leburu

unread,
Feb 1, 2024, 10:09:57 PM2/1/24
to KivyMD users support
I was able to figure out what the problem is, the problem stemmed from the Snackbar.  Apparently kivymd was upgraded to version 1.2.0 but my app from the beginning was using version 1.1.1 and i didnt  specify the kivymd version in my buildozer spec file requirements, this caused it to download the latest version (1.2.0) by default and for some reason I guess the Snackbar in the latest version(1.2.0) doesnt work the same as in the previous version(1.1.1) I dont know please someone clarify that for me and this caused the app to crush. So i specified the version in my buildozer spec file to use version 1.1.1, this solved my problem.
Reply all
Reply to author
Forward
0 new messages