Flutter gradle

gradle file is located in the android directory within your Flutter project and is used to define the properties and settings specific to your Android app. Problems reading data from Binary store in C:\\Users\\abc\\AppData\\Loca Aug 28, 2019 · 0. Getting Started Resources. flutter-plugin-loader" version "1. Gradle Build failing with kotlin exception in flutter. gradel file ///old settings. e (C:\Users\USERNAME). 6 to 3. This issue seems to have come since last week. Mar 6, 2024 · Flutter created or after version 3. afterEvaluate(Closure) when the project is already evaluated. For Mac OS, go to Android Studio -> Preferences, and the rest is the same. gradle' line: 1156. There are many Gradle Build Tool trainings available to help you get started quickly. daemon=false in gradle. Add this line to the app level build. Check build. Follow the steps to create an upload keystore, reference it from the app, and add signingConfigs in build. Sep 26, 2020 · 15. > Configure project :firebase_auth. Locate to your flutter project folder 2. Where: Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter. id "dev. 7 cannot find installed JDK 22 in IntelliJ. java. android/ hidden subfolder. Declaring multiple repositories. Command-line completion scripts for bash and zsh can be downloaded from the gradle-completion project page. 7. gradle folder once located. yaml of your flutter project doesn’t have its namespace field added. Update the version. 5) • Android Studio at /opt/android-studio. Tried . When I run flutter run I get The Android Gradle plugin supports only Kotlin Gradle plugin version 1. 16. Oct 16, 2023 · Yea the video is showing where I updated these files but this is what I did to get my app working again, I COULD NOT FIND a guide describing this. jar file automatically, so that users will not be confused. Jun 11, 2019 · 9. build:gradle”, but there you configure the AGP version and for that no 7. You can define more than one repository for resolving dependencies. VERSION_1_8 } kotlinOptions { jvmTarget = '1. properties, but the same problem. FAILURE: Build failed with an exception. In any case, once the Android project is opened in Android Studio, you can make changes in your build. Run with --info or --debug option to get more log output. The release notes say: Feb 17, 2020 · I'm currently developing applications with Flutter. 10 and higher. Otherwise simply execute a build. Dec 21, 2020 · I'm working with flutter in ubuntu 18. 0 (current latest Jul 8, 2019 · Opening the root directory of a Flutter project doesn’t expose all the Android files to the IDE. properties located at {yourProjectName}/android/gradle/wrapper/gradle-wrapper. \flutter\packages\flutter_tools\gradle\flutter. /gradlew , it looks for the classpath and as per the code in gradlew or gradlew. 1. gradle (i already try the 31 and 33 version and even force the dependance as you can see plugins { id "com. For more details, pls review your gradlew file (in Unix-like OS) or gradlew. 0. buijs. gradle from your system disk the path of the folder like: C:\Users'your user name'. It's likely that this file was generated under C open flutter SDK which is the downloaded flutter file then follow the above steps as mentioned. g. The command flutter build apk --split-per-abi builds an APK file for each CPU architecture. 0-dev. gradle, android/build. Json. Apr 2, 2021 · Upgrade gradle in a Flutter project. Jan 28, 2018 · 1. ├── gradle │ └── wrapper │ ├── gradle-wrapper. - changing the JAVA_HOME environment variable. Change compileSdkVersion in bundle. Oct 30, 2020 · My flutter app runs fine on the emulator, runs fine on my android when connected via USB, but crashes before opening when updated from the play store. How to run gradle build manually on a flutter project. and then look for file named flutter. gradle The klutterPlugin generates the MethodChannel code used by the Flutter frontend to communicate with Kotlin Multiplatform backend. bat When you execute . > Run with --info or --debug option to get more log output. try flutter flutter clean then flutter run. 10. This says that you are targeting an older version of Java than is fully supported by what you are using. Roll pub packages by @flutter-pub-roller-bot in 139811. alpha (02 July 2022) com. It covers essential changes in settings. /gradlew assembleDebug. To do this in IntelliJ, see my Answer. gradle file: buildscript { ext. 2. Now, click on 'gradle' in the right panel. Feb 14, 2019 · I am trying to add firebase dependencies. Black Lives Matter. /gradlew build or . Apr 25, 2024 · To resolve this warning you have to change your build. 4 exists, just 7. > It will be removed in version 5. ljhgithub. The Gradle team offers free training Installing manually. 18. Jan 13, 2022 · 3. 10' // Change Sep 20, 2023 · Run Gradle on Java 21, while letting Gradle manage your Java 22 project. It fixed the issue for me. gradle (it will be inside of android folder) Execute the flutter run command after returning to Android Studio and launching the terminal. * Try: > Run with --stacktrace option to get the stack trace. or. I have tried the method in gradle user guide and other questions in SO to add org. Step 1. Projects created with versions of Flutter prior to 3. 优化步骤. Forth step : Open Terminal inside the android studio and write flutter clean as shown below. Run your build, debug, release, etc. > Process 'command 'C:\flutter\bin\flutter. include ':app' def localPropertiesFile = new File(rootProject. 10 2. Feb 29, 2024 · Since Flutter 3. > Run with --scan to get full insights. 4s Gradle task assembleRelease failed with exit code 1 build. In your case the project :audio_session which I think would be a dependency added in pubspec. jar file Open and edit gradle-wrapper. 此时Gradle正在下载gradle构建工具以及相关依赖库,由于官方gradle默认配置的依赖下载服务器处于国外,国内用户访问非常缓慢,常常一个依赖下载就要花半天时间,好在国内有阿里、清华等镜像源,我们可以配置镜像代理加快依赖的下载. If you are using a version of Gradle installed on your system instead of the wrapper, you can run gradle --version to check. properties ├── gradlew ├── gradlew. zip means I am using Gradle 2. Jun 23, 2021 · Enter your android folder : cd android. Jun 26, 2024 · Learn how to sign your Flutter app with a digital certificate and configure gradle for release builds. What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'. First make sure that all your packages in the pubspec. try any of the following: upgrade your dependencies in your pubspec. projectDir, "local. Install Flutter and get started. properties. Declaring multiple repositories is helpful if some dependencies are only available in one repository but not the other. now run your app It worked for me. I stuck in the problem of Gradle daemon. google-services Dec 9, 2021 · Go to flutter_app => android => gradle => wrapper directory Delete gradle-wrapper. bat file (in Window OS) to see how Gradle config JAVACMD variable. Flutter makes it easy and fast to build beautiful apps for mobile and beyond - flutter/flutter Nov 6, 2023 · This is happening because from gradle 8 it is required for all projects to have namespace added in their build. Step 2: Set password and generate the API key and encrypted password. sudo update-alternatives --config java. 20 hours ago · Here is the current app/build. 8' } Oct 23, 2022 · I tried to run a brand new Flutter Android App but ran into a Build Gradle problem. flutter. Historically, this was done imperatively with Gradle's legacy, imperative apply script method. gradle file: apply plugin: 'com. [!] Android Studio (version 3. For example. 8 will fully support Java 22. [ ] Use '--warning-mode all' to show the individual deprecation warnings. Jun 29, 2019 · 引入flutter. 16, support was added for applying these plugins with Gradle's declarative plugins {} block (also called the Plugin DSL) and it is now the recommended approach. gradle. make the tar c command in prepare_package. I have bumped the gradle from 7. jar │ └── gradle-wrapper. Feb 16, 2024 · This guide provides step-by-step instructions to migrate your Flutter app from an older version to Flutter 3. 2 step: add set up the database and a test table. jar to classpath Aug 4, 2021 · * SystemAlertWindow 권한 및 초기 세팅 * SystemAlertWindow 권한 및 초기 세팅 * SystemAlertWindow 권한 및 초기 세팅 * 권한 허용 후 BottomSheet가 내려가지 않는 문제 수정 * 코드 간결화 * 플로팅 창 전환 아이콘 홈 페이지에 추가 * SystemAlertWindow 플러그인 삭제 * SystemAlertWindow 플러그인 삭제 * Gradle 버전 4. Open Android Studio and let it do the gradle sync. Apr 27, 2023 · You can try some of the following options: - changing the IDE settings. gradle, and Oct 26, 2018 · 0. gradle unable to resolve class GradleException. Open a terminal/command prompt and navigate to your project's root directory. gradleを SDK から読み込む段階でエラーが発生している様子が窺えます。 開発環境# この時の手元の環境を確認すると以下のようになっていました。 The Gradle build cache is a cache mechanism that aims to save time by reusing outputs produced by other builds. /gradlew clean build, this works sometimes and buils from vscode. Nov 18, 2019 · In your flutter project there are 2 folders, ios & android. Does the same to everyone else that has tried May 5, 2015 · This determines which version of Gradle you are using. When I run flutter run -v in command prompt, it works but not from VSCode. Next, click on 'Execute Gradle Task' icon. 0 (currently available on all channels). Then open the. Dec 21, 2020 · in my case, flutter installed in *D:\program\flutter* so i can find the template in: D:\program\flutter\packages\flutter_tools\templates\app_shared\android. Locate to the . After the APKs are built, each APK file is found in the project_name\\\\build\\\\app\\\\outputs\\\\apk Sep 11, 2021 · If I were to believe this answer, gradle will reuse the artifacts. compileSdkVersion ndkVersion flutter. groovy' line: 482 * What went wrong: A problem occurred evaluating root project 'android'. Featured on Meta We spent a sprint addressing your requests — here’s how it went . This command will generate the signing report. Dec 29, 2019 · Go down to Flutter and click on the 'Open Android module in Android Studio'. (See screenshot for reference) This should open the project as an Android Project. load(reader) } def flutterSdkPath = properties. yaml are of the latest version. After updating your java version, let check Gradle current JVM's version to ensure this change was applied. The following dependencies do not sati Mar 6, 2024 · The Gradle assemble task in Flutter is integral to generating the APK (Android Application Package) that you'll install on the device or emulator. gradle unable to resolve class GradleException Hot Network Questions How many steps are needed to turn one "a" into at least 100,000 "a"s using only the three functions of "select all", "copy" and "paste"? Feb 8, 2022 · Flutter: Gradle plugin supports only Kotlin Gradle plugin version 1. gradle files are properly configured. (if not visible by default) Delete the folder named . May 11, 2019 · eventually after boxing my head and loosing the tightened knot, i upgrade my system back to windows 10 and install everything one after the other: Step 1: i install ADB Step 2: i install Android Studio code Step 3: i install Dart and Flutter Step 4: i install SDK for android studio and set the environmental variables Step 5: i install SDK May 24, 2020 · The internet connection might be unstable but you really need to delete gradle-wrapper. delete your . . * Where: Script 'C:\flutter\packages\flutter_tools\gradle\flutter. If you're on OSX or Linux you can then type in the terminal . Dart plugin not installed; this adds Dart specific functionality. gradle' line: 904. If you have any build_runners, re-run them. x to 2. I tried flutter clean / pug get and update but I got the following exception: [ +136 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 6. After every change I made I cleaned the flutter app, generated a new 'xxx. flutter > packages > flutter_tools > gradle. Feb 1, 2023 · The app-level build. r6-7. See related Question, Gradle 8. gradle file in C:drive. I can't run my project although flutter doctor is no problem. Locate to android 3. gradle的配置文件仅执行buildscript代码块和FlutterPlugin插件的apply方法,目的是插入Flutter任务。 二、插件 定义FlutterPlugin插件,实现接口Plugin<Project>,apply方法。 . 12 Android projects. I did find out that in the previous version of Android Studio (I'm not sure which, sorry!), it seems that the "Sync Project With Gradle Files" option can be found by clicking File > Sync Project With Gradle Files OR at the toolbar. At last, upgrading the gradle (also flutter in my case) resolved this. So in summary, there are two build. 13 I face this problem and there is the solution: 1. * What went wrong: The Android Gradle plugin supports only Kotlin Gradle plugin version 1. And then try calling gradle directly with the --info flag in order to have more output to debug your issue if not solved. Complete, with docs and sources. Open the terminal and go in the android folder. jar file before retry. Locate where you extract the flutter files and then traverse the folder from. Gradle had to re-download certain files (possibly?) as a result of my upgrading from 2. 3. Hot Network Questions What is the "closest approximation" to fields by an equational variety? Oct 8, 2023 · * Where: Script 'E:\android studio\new flutter\flutter 3\flutter\packages\flutter_tools\gradle\src\main\groovy\flutter. May 14, 2024 · In this release, the Flutter tool enforces a policy regarding the versions that it supports for Gradle, the Android Gradle Plugin (AGP), Java, and Kotlin. Some Android licenses not accepted. tmpl\gradle\wrapper the template gradle wrapper named as: gradle-wrapper. See also t: labels. 19. plugins {. gradle folder again, but with correct configuration. gradle folder (usually in C:\users\your_username) 2. Flutter plugin not installed; this adds Flutter specific functionality. i. tmpl Mar 23, 2021 · Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand Sep 30, 2021 · Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand Jun 8, 2023 · android { compileSdkVersion flutter. 5. Unable to build Flutter app. gradle' line: 1005 * What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'. Jul 26, 2022 · Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand Oct 12, 2020 · Flutter android build. Android Studio throws exception while running Flutter App. Loading. 187. Feb 19, 2024 · 在历史上,这是通过Gradle的 传统、命令式应用脚本方法 完成的。. :) The Gradle task 'assembleDebug' took 2-3 minutes to complete. properties") def properties = new Properties() assert localPropertiesFile. getProperty Jul 13, 2023 · If a developer is building for Android and their Java version is incompatible with either the AGP or Gradle versions that Flutter currently supports by default for new Flutter projects, then - a warning will show noting the incompatibility and - steps will be shown to fix the issue, the recommended option being to configure a new compatible Feb 5, 2021 · Navigate to my Home and turn on show hidden folders. Run flutter clean. 2 to 8. Rerun the project again. gradle file to 29 or whichever you're having installed. 1 step: add the dependencies in the pubspec. gradle file that points to a file in the Flutter tool that's present in 1. answered Jan 28, 2018 at 15:58. Delete the . application" id "kotlin-android" // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. Hope the flutter/IDE development team can resolve this issue, for example to delete gradle-wrapper. \\gradlew clean. Or. 16, projects generated with flutter create use the Plugin DSL to apply Gradle plugins. flutter root folder: Add 'google ()' in the buildscript: answered Nov 3, 2018 at 17:12. The editor will tell you to sync. Dec 8, 2022 · I also tried to do gradlew clean, but it gets stuck aswell. Process 'command 'C:\src\flutter\bin\flutter. Mar 14, 2024 · Don’t confuse Android Gradle Tools version with Gradle version. flutter run command will recreate . home` in `gradle. 0 and higher. 3. 1-all. Bump Dartdoc to 8. Downloads available for Windows, macOS, Linux, and ChromeOS operating systems. 2로 다운 Jun 20, 2023 · Flutter Gradle task assembleDebug failed with exit code 1 zip END header not found. 3 step: initialized the database class. gradle Files: Ensure that your build. Upgrading Flutter projects to Gradle 4. triaged-android Triaged by Android platform team 1 day ago · This creates a some/path/flutter_module/ Flutter module project with some Dart code to get you started and an . 修改build. Then check the box -> Offline work below. 0 if that is what you wanted. withReader("UTF-8") { reader -> properties. [flutter release] Add cherry pick template for pull request description by @XilaiZhang in 139590. You can mix any type of repository described in the reference section. Oct 3, 2019 · Flutter android build. Gradle build failed to produce an . The new free courses are a part of the DPE University by Gradle Inc. exists() localPropertiesFile. A solution for this would to be check the depedencies pub Flutter makes it easy and fast to build beautiful apps for mobile and beyond - Upgrading Flutter projects to build with gradle · flutter/flutter Wiki Mar 7, 2012 · flutter; android-studio; gradle; or ask your own question. Upgrading from 3. Then run: . For full Java 21 support, you can use Gradle 8. Jul 7, 2021 · Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. 1. /gradlew assembleDebug --info. Simply start Android Studio and open the Android (sub)project directly. Mar 25, 2024 · Steps to reproduce IDK how to tell you to reproduce, but i have create a new flutter project and moved my old project files to it Actual results This is my android/build. Flutter makes it easy and fast to build beautiful apps for mobile and beyond - flutter/flutter 1 day ago · We stand in solidarity with the Black community. enableR8=true' is deprecated. My flutter app when run from VScode is always stuck at running-gradle-task-assembledebug. Make your allpojects->repositories same like buildscript->repositories. Mar 17, 2021 · I have been running my flutter app without issues, but recently I can't run or debug my apps again, each time I try running my app from the terminal or debug console it always get stuck at Flutter App stuck at “Running Gradle task 'assembleDebug'”. 自 Flutter 3. If you open this subdirectory as its own separate project in Android Studio, the IDE will be able to fully support editing and refactoring all Android files (like Gradle scripts). The current Gradle release is version 8. * Get more help at https://help. I also faced the similar issue in intellij, the reason was I recently updated my system password which was configured in JFrog and associated with . Oct 14, 2020 · For Windows : flutter config --android-studio-dir="C:\Program Files\Android\Android Studio" This command works fine if you have Android Studio installed. properties`. 0. Then open the android project of your flutter app with android studio, select Refactor->Migrate to Androidx (make sure that you are doing that that from the android project and not from the flutter one). 5. properties file Change distributionUrl=https Oct 9, 2023 · Use Gradle Wrapper: Try running the signingReport task using the Gradle Wrapper from the command line. AGP unluckily called their artifact “gradle” as in “com. 16 need to be migrated manually. Open android/settings. I'll keep an eye on it, and if the problem persists, I'll reopen the issue. and you shouldn't see those errors. klutter. 8, released on 31 May 2024. Failed to notify dependency resolution listener. tools. > WARNING: The option setting 'android. How to migrate your Flutter app's Android Gradle build files to the new, declarative format. Run the flutter app. Upgrading pre 1. The . In Flutter 3. 在 Flutter 3. Applying Gradle plugins using the plugins {} block executes the same code as before and should produce equivalent app binaries. properties and replace the distributionUrl by changing the gradle version. The later command will try to create an apk. bat, there is a line to add gradle-wrapper. Jul 2, 2020 · #flutter #kotlin #multiplatform 2023. If in doubt, choose the binary-only version and browse docs and sources online. To be frank, this problem is now affecting all Flutter apps on my machine I&#39;ve never had this type of issu Apr 3, 2020 · Usually it Is bcoz of the . Jul 25, 2022 · Where: Script 'C:\flutter\packages\flutter_tools\gradle\flutter. gradle files in a Flutter project: one at the project Jan 6, 2010 · When I try to build my Flutter project with flutter run I get the following error: FAILURE: Build failed with an exception. Run with --scan to get full insights. Now, Run the command gradlew clean. google. 16 以来,使用 flutter create 生成的项目使用 Plugin DSL 来应用 Gradle Dec 18, 2018 · Select "Flutter" -> "Open Android Module in Android Studio". This problem because of the new version of flutter 3. gradle and settings. android. Upcoming initiatives Aug 11, 2021 · To change the plugin version open build. gradle file in android folder Feb 21, 2023 · * Try: Run with --stacktrace option to get the stack trace. If not, then you may need to make few changes in either your project or in shared_preferences project. This should open a 'Run Anything' window. Also, it will allow to install dependencies for Firebase related libraries, which is going to be the next step. Starting a Gradle Daemon, 16 busy Daemons could not be reused, use --status for details. android folder contains an Android project that can both help you run a barebones standalone version of your Flutter module via flutter run and it's also a wrapper that helps bootstrap the Flutter module an embeddable Android library. Delete . kotlin_version = '1. 20 and higher. gradle and change the version. Open the file gradle-wrapper. 5 and then switching from Stable to Master channel. Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4. The integration flow can be done using the Android Studio IDE with the Flutter plugin or manually. Download the previous version for flutter like 3. 0 of the Android Gradle plugin. github. For the time being, I'm closing the issue. Run gradlew build 5. Process 'command 'C:\flutter\bin\flutter. And yes, upgrading gradle has so many consequences, and spent almost a day fixing the build process with the new gradle version. json file and produce Android resources that can be used in your application's code. croxx5f. 0 International License, and code samples are licensed under the BSD License. 0". Deleted and created a new emulator Jun 26, 2024 · Flutter can be embedded into your existing Android application piecemeal, as a source code Gradle subproject or as AARs. Initially, the tool only provides warnings. org BUILD FAILED in 6s Running Gradle task 'assembleRelease' Running Gradle task 'assembleRelease' Done 7. dart' file which is needed to use the moor_flutter package. gradle folder from your user folder in Windows 10. Run gradlew clean 4. Everything worked. dart verbose by @christopherfujino in 139687. Try: Run with --stacktrace option to get the stack trace. Click the OK button. 16 中,添加了对使用 Gradle 的 声明式插件 {} 块 (也称为Plugin DSL)应用这些插件的支持,现在是推荐的方法。. Sep 13, 2023 · 2. Run with --info or --debug option to get Download latest stable Flutter SDK. Step 1: Go to JFrog and edit your profile. /gradlew clean and . gradle -v. In this case, gradle-2. C:\Development\projects\flutter>cd kchat. Java 21, Gradle 8. > A problem occurred configuring project ':app'. May 5, 2023 · warning: [options] source value 7 is obsolete and will be removed in a future release. answered Jun 23, 2021 at 15:06. #flutter #kotlin #multiplatform #klutter 2022. 1 and Android Studio Gradle plugin 3. Parvanshu1 (parvanshu) March 14, 2024, 11:51am 3. [ +35 ms] "flutter run" took 332,133ms. Wait until android studio finishes migrating your Jun 9, 2018 · Go to File -> Settings. 8. gradle Flutter projects created on the master channel will generate an android/settings. 4. yaml. 04. 2 by @kallentu in 139780. Jan 14, 2020 · I have stuck on this for a week and applied almost everything I found on the internet. gms. The distribution zip file comes in two flavors: Binary-only. Gradle Building Failure & Flutter. bat'' finished with non-zero exit value 1. /gradlew signingReport. Also if you're using Android Studio, in the project structure, you can open the android Dec 3, 2021 · Android Gradle Issue - Flutter / Dart. org Deprecated Gradle features were used in this build, making it incompatible with Gradle 8. publish-flutter-aar Jul 11, 2019 · 次に、androidフォルダ内のみを開き、Gradle の Sync を行うと、下図のようにflutter. lastly, if it didn't work you've to delete the flutter src folder in Script 'C:\src\flutter and reinstall it again Feb 19, 2024 · To build a Flutter app for Android, Flutter's Gradle plugins must be applied. bat'' finished with non-zero exit value 1 * Try: Run with --stacktrace option to get the stack trace. To resolve this, run: flutter doctor --android-licenses. Jan 12, 2015 · I had the same issue after restarting my PC. This file is used to configure the app-level dependencies and build settings. apk file. Finally Run the application and Feb 21, 2024 · Since Flutter 3. Oct 6, 2016 · This plugin will allow to process the google-services. Flutter apps contain a subdirectory named android. Under "Andr May 7, 2021 · Run with --scan to get full insights. VERSION_1_8 targetCompatibility JavaVersion. 2. > Cannot run Project. If the problem still persists check if your project and shared_preferences both uses the same gradle version. beta (08 October 2023) dev. ndkVersion compileOptions { sourceCompatibility JavaVersion. - changing `org. Option 3- Local Gradle distribution. Sep 24, 2021 · FAILURE: Build failed with an exception. The build cache works by storing (locally or remotely) build outputs and allowing builds to fetch these outputs from the cache when it is determined that inputs have not changed, avoiding the expensive work of regenerating them. /gradlew cleanBuildCache. And open the ' Build,Execution,Deployment '. On its eventual release, Gradle 8. Apr 4, 2024 · P3 Issues that are less important to the Flutter project platform-android Android applications specifically t: gradle "flutter build" and "flutter run" on Android team-android Owned by Android platform team tool Affects the "flutter" command-line tool. and run. edited Jun 29, 2019 at 14:07. Build Tools -> Gradle. Open the root flutter folder in your computer, and open the gradle folder in that root folder (For example C:\flutter\package\flutter_tool\gradle) and add ' google () ' to the buildscript. Download the latest Gradle distribution. jh hv qy ft ly tt sa so gk lq