Error running Gradle

138 views
Skip to first unread message

Binuwara Nagahawatta

unread,
Dec 9, 2019, 4:41:18 AM12/9/19
to Flutter Development (flutter-dev)

I am trying to launch my Flutter project on Android Emulator.  Each time I try to start it, ' Gradle error ' appears.


Error:

* Error running Gradle:



ProcessException: Process "C:\Users\Binuwara\Documents\FlutterProjects\anony\android\gradlew.bat" exited abnormally:




> Configure project :app

WARNING
: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'.

It will be removed at the end of 2019.

For more information, see https://d.android.com/r/tools/task-configuration-avoidance.

To determine what is calling variant.getJavaCompile(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.

WARNING
: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'.

It will be removed at the end of 2019.

For more information, see https://d.android.com/r/tools/task-configuration-avoidance.

To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.

WARNING
: API 'variantOutput.getProcessResources()' is obsolete and has been replaced with 'variantOutput.getProcessResourcesProvider()'.

It will be removed at the end of 2019.

For more information, see https://d.android.com/r/tools/task-configuration-avoidance.

To determine what is calling variantOutput.getProcessResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.

 
Command: C:\Users\Binuwara\Documents\FlutterProjects\anony\android\gradlew.bat app:properties




Please review your Gradle project setup in the android/ folder.



Exited (sigterm)


build.gradle


buildscript {



    ext
.kotlin_version = '1.2.71'

    repositories
{

        google
()

        jcenter
()

   
}




    dependencies
{

        classpath
'com.android.tools.build:gradle:3.5.0'

        classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

        classpath
'com.google.gms:google-services:4.3.2'

   
}

}




allprojects
{

    repositories
{

        google
()

        jcenter
()

   
}

}




rootProject
.buildDir = '../build'

subprojects
{

    project
.buildDir = "${rootProject.buildDir}/${project.name}"

}

subprojects
{

    project
.evaluationDependsOn(':app')

}




task clean
(type: Delete) {

   
delete rootProject.buildDir



}



Can you please indicate a solution to this problem

Thanks in advance


Aderoju Olaitan

unread,
Dec 9, 2019, 5:42:42 AM12/9/19
to Flutter Development (flutter-dev)
Check your network, gradle is trying to download some dependencies.

happy coding
Reply all
Reply to author
Forward
0 new messages