Skip to content

Fails to build #3

@oberoivarun

Description

@oberoivarun

I followed:

  • git clone
  • graphql-faker ./fake.schema — open
  • flutter pub run build_runner build
  • flutter run
Launching lib\main.dart on Android SDK built for x86 in debug mode...
lib\main.dart:1

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file 'C:\Users\varun\Code\flutter\.pub-cache\hosted\pub.dartlang.org\connectivity_plus-1.0.4\android\build.gradle' line: 22

* What went wrong:
A problem occurred evaluating project ':connectivity_plus'.
> Could not get unknown property 'javaToolchains' for task ':app:compileDebugAndroidTestJavaWithJavac' of type com.android.build.gradle.tasks.AndroidJavaCompile.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* Where:
Script 'C:\Users\varun\Code\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 346

* What went wrong:
A problem occurred configuring project ':connectivity_plus'.
> Could not get unknown property 'android' for project ':connectivity_plus' of type org.gradle.api.Project.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 5s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions