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

Popular New Releases in Plugin

jQuery 3.6.0 Released!

v4.0.0 - pre-release

8.4.11

Select2 4.1.0-rc.0

Various fixes

jquery

jQuery 3.6.0 Released!

code-server

v4.0.0 - pre-release

postcss

8.4.11

select2

Select2 4.1.0-rc.0

bypass-paywalls-chrome

Various fixes

Popular Libraries in Plugin

Trending New libraries in Plugin

Top Authors in Plugin

1

307 Libraries

15360

2

145 Libraries

2481

3

116 Libraries

3168

4

95 Libraries

33232

5

85 Libraries

723

6

84 Libraries

1913

7

78 Libraries

2291

8

75 Libraries

4484

9

65 Libraries

11871

10

54 Libraries

5621

1

307 Libraries

15360

2

145 Libraries

2481

3

116 Libraries

3168

4

95 Libraries

33232

5

85 Libraries

723

6

84 Libraries

1913

7

78 Libraries

2291

8

75 Libraries

4484

9

65 Libraries

11871

10

54 Libraries

5621

Trending Kits in Plugin

No Trending Kits are available at this moment for Plugin

Trending Discussions on Plugin

    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'
    The unauthenticated git protocol on port 9418 is no longer supported
    CentOS through a VM - no URLs in mirrorlist
    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'
    Your project requires a newer version of the Kotlin Gradle plugin. (Android Studio)
    ESlint - Error: Must use import to load ES Module
    Allow insecure protocols, android gradle
    Android studio - Generate signed APKs broke

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'
    The unauthenticated git protocol on port 9418 is no longer supported
    CentOS through a VM - no URLs in mirrorlist
    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'
    Your project requires a newer version of the Kotlin Gradle plugin. (Android Studio)
    ESlint - Error: Must use import to load ES Module
    Allow insecure protocols, android gradle
    Android studio - Generate signed APKs broke

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