A problem occurred configuring project ':shared_preferences_android' - flutter

I was trying to use this dependency but the problem is that my terminal couldn't access the directory due to my user name. I have a school organization account, and after the name it has a "(St" after my name. I tried to cd into that directory but it tells me that is requires a "close parentheses" or ")". How can I fix this?
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':shared_preferences_android'.
Could not resolve all dependencies for configuration ':shared_preferences_android:classpath'.
Could not load module metadata from C:\Users\BoneteJobertJanne(St.gradle\caches\modules-2\metadata-2.97\descriptors\org.jetbrains.kotlin\kotlin-reflect\1.5.31\a8be1fe3b3911d3d3425fe720cf42835\descriptor.bin
Failed to notify project evaluation listener.
Could not get unknown property 'android' for project ':shared_preferences_android' of type org.gradle.api.Project.
Could not get unknown property 'android' for project ':shared_preferences_android' of type org.gradle.api.Project.

Related

Flutter app error: could not get unknown property 'android' for project ':flutter_native_splash' of type org.gradle.api.Project

I run my flutter app and I got this error message:-
A problem occurred configuring project ':flutter_native_splash'.
Could not load compiled classes for build file 'C:\Users\df\Desktop\flutter.pub-cache\hosted\pub.dartlang.org\flutter_native_splash-2.2.16\android\build.gradle' from cache.
Failed to notify project evaluation listener.
Could not get unknown property 'android' for project ':flutter_native_splash' of type org.gradle.api.Project.
Could not get unknown property 'android' for project ':flutter_native_splash' of type org.gradle.api.Project.

Flutter Pub Cache Error build gradle error

^^^^^^^^^^^^^^^^^^^^
/D:/flutter_3.0.5/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-2.4.1/lib/src/firebase_app.dart:18:25: Error: Member not found: 'FirebaseAppPlatform.verify'.
FirebaseAppPlatform.verify(_delegate);
^^^^^^
lib/screens/kilofarmsWebview.dart:22:13: Error: The method 'WebView' isn't defined for the class 'KilofarmsWebview'.
'KilofarmsWebview' is from 'package:ruby/screens/kilofarmsWebview.dart' ('lib/screens/kilofarmsWebview.dart').
Try correcting the name to the name of an existing method, or defining a method named 'WebView'.
How to Solve this error. i was run my another laptop build gradle works fine. but my current system not worked in build gradle. but both are same setup.
How to Solve this error. i was run my another laptop build gradle works fine. but my current system not worked in build gradle. but both are same setup.

Getting Flutter FAILURE: Build failed with an exception

What went wrong:
A problem occurred configuring project ':firebase_auth'.
Could not load compiled classes for build file 'C:\flutter.pub-cache\hosted\pub.dartlang.org\firebase_auth-3.3.19\android\build.gradle' from cache.
Failed to notify project evaluation listener.
Could not get unknown property 'android' for project ':firebase_auth' of type org.gradle.api.Project.
Could not find method implementation() for arguments [project ':firebase_core'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Could not get unknown property 'android' for project ':firebase_auth' of type org.gradle.api.Project.

Error in flutter project build gradle problem

What went wrong:
A problem occurred configuring root project 'android'
Could not resolve all artifacts for configuration
":classpath
Could not find com.android.tools.build:gradle:6.7.
Searched in the following locations:
-nttps:1/dl.google.com/d/android/maven2/com/android/tools/build/aradle/6.7/gradle-6.7.pom
nttps://repo_naven_apache.org/maven2/com/android/tools/build/aradle/6.7/gradle-6.7.pom
Required by:
project

when i run my flutter app ,there emerge a unexpected problem , error :

What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not resolve project :path_provider_macos.
Required by:
project :app > project :path_provider
Unable to find a matching configuration of project :path_provider_macos: None of the consumable configurations have attributes.
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 2s
Finished with error: Gradle task assembleDebug failed with exit code 1
Some imports are missing. Try flutter pub get to update packages, or flutter pub cache repair, which will re-import all dependencies.
thank everyone , i get the solution about my problem : go to your Flutter sdk folder ,then go to .pub-cache\hosted\pub.dartlang.org\ ,if there have a path_provider_macos-0.0.4 folder ,delete it ,if no ,you try go .pub-cache\hosted\pub.flutter-io.cn\ , and remove path_provider_macos-0.0.4 folder
Deleted the folder you said,but show this wrong : Project :flutter declares a dependency from configuration 'embed' to configuration 'default' which is not declared in the descriptor for project :path_provider_macos.
The following is detailed:
> A problem occurred configuring project ':flutter'.
> Could not resolve all dependencies for configuration ':flutter:embed'.
> Could not resolve project :path_provider_macos.
Required by:
project :flutter
> Project :flutter declares a dependency from configuration 'embed' to configuration 'default' which is not declared in the descriptor for project :path_provider_macos.
> Could not resolve project :path_provider_linux.
Required by:
project :flutter
> Project :flutter declares a dependency from configuration 'embed' to configuration 'default' which is not declared in the descriptor for project :path_provider_linux.