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

137 views
Skip to first unread message

mostwanted

unread,
Jan 31, 2024, 8:31:23 AM1/31/24
to Kivy users support
I  upgrading my openjdk from 11 to openjdk-17-jdk (!apt-get install -y openjdk-17-jdk) as per requested on google colab but now after the package is created when i install it on my app and & try to use it my app crushes everytime i try to use it, when i ran it through the adb tool i get this error below. I dont know what to or what else to upgrade or update and how because i'm working on critical updates on a live app but now i'm stuck, please assist.

ERROR: 
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']

mostwanted

unread,
Feb 1, 2024, 10:09:28 PM2/1/24
to Kivy 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