Hi All,
I try to implement auth0 to my android application (flutter / dart), however when I try to do it everytime I have an error about gradle version. When I have 8.3 then error is about update to 8.- when I have 8.5 then it’s about 8.7 → 8.9 etc…
I have correct version according to [Compatibility Matrix]
SDK: 20
Gradle: 8.3
Kotlin: 1.9.0
Android Studio: Ladybug
Android SDK (Android studio): ANdroid 15.0 VanillaIceCream - API 35
I tried also use SDK 21, Gradle 8.5 and Kotlin 1.9.20 - unfortuantely without results.
I downloaded sample application from auth0 apge and some projects from github - can’t run no one of them (I mean about emulator because run from chrome works correctly).
PS C:\Downloads\sample\android> ./gradlew build --scan
Starting a Gradle Daemon, 2 incompatible Daemons could not be reused, use --status for details
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Downloads\sample\android\app\build.gradle' line: 2
* What went wrong:
An exception occurred applying plugin request [id: 'com.android.application']
> Failed to apply plugin 'com.android.internal.version-check'.
> Minimum supported Gradle version is 8.4. Current version is 8.3. If using the gradle wrapper, try editing the distributionUrl in C:\Users\sebaa\Downloads\sample\android\gradle\wrapper\gradle-wrapper.properties to gradle-8.4-all.zip
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.
BUILD FAILED in 9s
4 actionable tasks: 1 executed, 3 up-to-date
Publishing a build scan to scans.gradle.com requires accepting the Gradle Terms of Service defined at https://gradle.com/terms-of-service. Do you accept these terms? [yes, no] yes
Gradle Terms of Service accepted.
Publishing build scan...
https://gradle.com/s/etqbob2isex46
------------------------------------
Flutter doctor result:
[√] Flutter (Channel stable, 3.27.3, on Microsoft Windows [Version 10.0.26100.2894], locale pl-PL)
• Flutter version 3.27.3 on channel stable at D:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision c519ee916e (8 days ago), 2025-01-21 10:32:23 -0800
• Engine revision e672b006cb
• Dart version 3.6.1
• DevTools version 2.40.2
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
• Android SDK at C:\AppData\Local\Android\sdk
• Platform android-35, build-tools 35.0.1
• Java binary at: C:\Program Files\Java\jdk-20\bin\java
• Java version Java(TM) SE Runtime Environment (build 20.0.2+9-78)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2024.2)
• Android Studio at A:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.4+-12508038-b607.1)
[√] Connected device (4 available)
• sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 13 (API 33) (emulator)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.26100.2894]
• Chrome (web) • chrome • web-javascript • Google Chrome 132.0.6834.112
• Edge (web) • edge • web-javascript • Microsoft Edge 132.0.2957.127
[√] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.
Well, that issues seems to be quite meaningful.
The version of AGP you use requires that you use at least Gradle 8.4, but you are using Gradle 8.3
So what happens if you update Gradle to a newer version?