vosk-android-demo icon indicating copy to clipboard operation
vosk-android-demo copied to clipboard

Minimum supported Gradle version is 6.5. Current version is 6.1.1

Open nfelemban opened this issue 3 years ago • 7 comments

I dowloaded the code and tried running it using android studio (Mac OS). I get the following error:

Minimum supported Gradle version is 6.5. Current version is 6.1.1. If using the gradle wrapper, try editing the distributionUrl in /Users/../../vosk-android-demo/gradle/wrapper/gradle-wrapper.properties to gradle-6.5-all.zip

However, wrapper/gradle-wrapper.properties does not exist.

Any solutions, as to how to build the app?

nfelemban avatar Apr 17 '21 22:04 nfelemban

install newer gradle

nshmyrev avatar Apr 17 '21 23:04 nshmyrev

I encountered the same problem as well. Anyone have the solution? I've tried specifying the gradle build manually in Settings> Gradle> Use Grade from specified location/ specifying gradle version in Project Structure>Gradle and manually installing gradle into wrapper/dists. None of that works sadly.

duaf1xd avatar May 10 '21 09:05 duaf1xd

Turns out all I have to do is to install the right APK level first (for this project is 28 and 29 I believe). From that I can downgrade the gradle build to run the code just fine.

duaf1xd avatar May 11 '21 15:05 duaf1xd

you can copy other project wrapper dir to this project ,then modify gradle-wrapper.properties
#Tue Dec 08 17:56:20 GMT+08:00 2020 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https://services.gradle.org/distributions/gradle-6.5-all.zip

restart AS.

hgdsys007 avatar Jul 05 '21 02:07 hgdsys007

Copy another project Gradle directory to the Current project. Then it will work.

sahildev001 avatar Aug 26 '21 12:08 sahildev001

Copy another project Gradle directory to the Current project. Then it will work.

It's work with me. Thank you @sugukung

Innovicont avatar Mar 16 '22 15:03 Innovicont

I am facing the same error. I tried changing the distrubutionUrl but still I get the following error- Failed to apply plugin [id 'com.android.internal.version-check']

Minimum supported Gradle version is 6.7.1. Current version is 6.1.1. If using the gradle wrapper, try editing the distributionUrl in C:\Users\harsh\AndroidStudioProjects\Qr-Code-Scanner--master\gradle\wrapper\gradle-wrapper.properties to gradle-6.7.1-all.zip

harshitoshi avatar May 12 '23 19:05 harshitoshi