herodotdigital / SnakeBottomNavigationBar

Apache License 2.0
207 stars 51 forks source link

Outdated android tools in example build.gradle #35

Open vanyasem opened 1 year ago

vanyasem commented 1 year ago

I have cloned the master branch. Then, I opened the project in Android Studio. When trying to build the example app for Android (without any changes), I receive this Gradle error:

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':app:compileDebugRenderscript' (type 'RenderscriptCompile').
  - In plugin 'com.android.build.gradle.api.AndroidBasePlugin' type 'com.android.build.gradle.tasks.RenderscriptCompile' method 'useAndroidX()' should not be annotated with: @Input.

    Reason: Input/Output annotations are ignored if they are placed on something else than a getter.

    Possible solutions:
      1. Remove the annotations.
      2. Rename the method.

    Please refer to https://docs.gradle.org/7.6.1/userguide/validation_problems.html#ignored_annotations_on_method for more details about this problem.
  - In plugin 'com.android.build.gradle.api.AndroidBasePlugin' type 'com.android.build.gradle.tasks.RenderscriptCompile' property 'ndkConfig' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.6.1/userguide/validation_problems.html#missing_annotation for more details about this problem.

This is due to the usage of an outdated dependency: classpath 'com.android.tools.build:gradle:3.5.0'

It should be updated to classpath 'com.android.tools.build:gradle:7.2.0'