kandi background
kandi background
Explore Kits
kandi background
Explore Kits
kandi background
Explore Kits
kandi background
Explore Kits
Explore all Gradle open source software, libraries, packages, source code, cloud functions and APIs.

Popular New Releases in Gradle

7.4.2

jib-cli v0.10.0

1.1.1

tinker

gradle

7.4.2

jib

jib-cli v0.10.0

dex2jar

jsonschema2pojo

1.1.1

Popular Libraries in Gradle

Trending New libraries in Gradle

Top Authors in Gradle

1

25 Libraries

18640

2

20 Libraries

116

3

19 Libraries

822

4

18 Libraries

700

5

17 Libraries

2310

6

14 Libraries

1365

7

13 Libraries

577

8

12 Libraries

106

9

12 Libraries

140

10

12 Libraries

529

1

25 Libraries

18640

2

20 Libraries

116

3

19 Libraries

822

4

18 Libraries

700

5

17 Libraries

2310

6

14 Libraries

1365

7

13 Libraries

577

8

12 Libraries

106

9

12 Libraries

140

10

12 Libraries

529

Trending Kits in Gradle

No Trending Kits are available at this moment for Gradle

Trending Discussions on Gradle

    Error: Member not found: 'packageRoot', how to solve ignore: deprecated_member_use in Flutter?
    Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'build.gradle'
    Error: MainActivity must extend android.app.Activity [Instantiatable]
    Could not GET 'play-services-location/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
    Java, Intellij IDEA problem Unrecognized option: --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
    Springboot 2.6.0 / Spring fox 3 - Failed to start bean 'documentationPluginsBootstrapper'
    Message "error: resource android:attr/lStar not found"
    Plugin [id: 'dagger.hilt.android.plugin'] was not found in any of the following sources
    Your project requires a newer version of the Kotlin Gradle plugin. (Android Studio)
    IntelliJ - Invalid source release: 17

QUESTION

Error: Member not found: 'packageRoot', how to solve ignore: deprecated_member_use in Flutter?

Asked 2022-Apr-05 at 06:52

In my flutter project, I have made some updates of plugins and then used flutter upgrade. After that, whenever I am running my flutter project it is showing following error-

1    /C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.2/lib/src/interface/local_platform.dart:46:19: Error: Member not found: 'packageRoot'.
2          io.Platform.packageRoot; // ignore: deprecated_member_use
3                      ^^^^^^^^^^^ FAILURE: Build failed with an exception.
4
5* Where: Script 'C:\src\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1102
6
7* What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
8> Process 'command 'C:\src\flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1
9
10* 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.
11
12* Get more help at https://help.gradle.org
13
14BUILD FAILED in 20s Exception: Gradle task assembleDebug failed with exit code 1
15

So, I need a suggestion that how can I solve this issue?

ANSWER

Answered 2021-Dec-16 at 11:49

For me, cleaning and getting the packages didn't work. This error started after I upgraded flutter. I was on the master channel, a quick fix for me was to switch to stable.

copy icondownload icon

1    /C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.2/lib/src/interface/local_platform.dart:46:19: Error: Member not found: 'packageRoot'.
2          io.Platform.packageRoot; // ignore: deprecated_member_use
3                      ^^^^^^^^^^^ FAILURE: Build failed with an exception.
4
5* Where: Script 'C:\src\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1102
6
7* What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
8> Process 'command 'C:\src\flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1
9
10* 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.
11
12* Get more help at https://help.gradle.org
13
14BUILD FAILED in 20s Exception: Gradle task assembleDebug failed with exit code 1
15flutter channel stable
16flutter upgrade
17

Perhaps theres a better solution which deals with platform package directly.

Source https://stackoverflow.com/questions/70363918

Community Discussions contain sources that include Stack Exchange Network

    Error: Member not found: 'packageRoot', how to solve ignore: deprecated_member_use in Flutter?
    Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'build.gradle'
    Error: MainActivity must extend android.app.Activity [Instantiatable]
    Could not GET 'play-services-location/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
    Java, Intellij IDEA problem Unrecognized option: --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
    Springboot 2.6.0 / Spring fox 3 - Failed to start bean 'documentationPluginsBootstrapper'
    Message "error: resource android:attr/lStar not found"
    Plugin [id: 'dagger.hilt.android.plugin'] was not found in any of the following sources
    Your project requires a newer version of the Kotlin Gradle plugin. (Android Studio)
    IntelliJ - Invalid source release: 17

QUESTION

Error: Member not found: 'packageRoot', how to solve ignore: deprecated_member_use in Flutter?

Asked 2022-Apr-05 at 06:52

In my flutter project, I have made some updates of plugins and then used flutter upgrade. After that, whenever I am running my flutter project it is showing following error-

1    /C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.2/lib/src/interface/local_platform.dart:46:19: Error: Member not found: 'packageRoot'.
2          io.Platform.packageRoot; // ignore: deprecated_member_use
3                      ^^^^^^^^^^^ FAILURE: Build failed with an exception.
4
5* Where: Script 'C:\src\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1102
6
7* What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
8> Process 'command 'C:\src\flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1
9
10* 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.
11
12* Get more help at https://help.gradle.org
13
14BUILD FAILED in 20s Exception: Gradle task assembleDebug failed with exit code 1
15

So, I need a suggestion that how can I solve this issue?

ANSWER

Answered 2021-Dec-16 at 11:49

For me, cleaning and getting the packages didn't work. This error started after I upgraded flutter. I was on the master channel, a quick fix for me was to switch to stable.

copy icondownload icon

1    /C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.2/lib/src/interface/local_platform.dart:46:19: Error: Member not found: 'packageRoot'.
2          io.Platform.packageRoot; // ignore: deprecated_member_use
3                      ^^^^^^^^^^^ FAILURE: Build failed with an exception.
4
5* Where: Script 'C:\src\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1102
6
7* What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
8> Process 'command 'C:\src\flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1
9
10* 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.
11
12* Get more help at https://help.gradle.org
13
14BUILD FAILED in 20s Exception: Gradle task assembleDebug failed with exit code 1
15flutter channel stable
16flutter upgrade
17

Perhaps theres a better solution which deals with platform package directly.

Source https://stackoverflow.com/questions/70363918