I am very much asking for help. I have been struggling with this problem for several months. I am trying to perform various methods that I found on the Internet and nothing helps. I always get this error:
Multiple build operations failed.
Could not create task ':flutter_plugin_android_lifecycle:generateDebugUnitTestConfig'.
Could not create task ':google_mobile_ads:generateDebugUnitTestConfig'.
Could not create task ':path_provider_android:generateDebugUnitTestConfig'.
Could not create task ':shared_preferences_android:generateDebugUnitTestConfig'.
Could not create task ':url_launcher_android:generateDebugUnitTestConfig'.
Could not create task ':webview_flutter_android:generateDebugUnitTestConfig'.
Could not create task ':flutter_plugin_android_lifecycle:generateDebugUnitTestConfig'.
this and base files have different roots: D:Androidaplikacjeaplikacja pod domenaapp-j-plappSource File V_3.0.5flywebbuildflutter_plugin_android_lifecycle and C:UsersatomAppDataLocalPubCachehostedpub.devflutter_plugin_android_lifecycle-2.0.17android.
The application was bought on CodeCanYon, but the author does not help.
When I run the flutter version application it turns on the emulator and the application displays fine.
When I open the Android folder in Android Studio the above error appears.
Here’s what I tried to do:
- deleted the content C:UsersatomAppDataLocalPubCache
- Tools -> Flutter -> Flutter Clean | Terminal -> flutter pub cache repair and Tools -> Flutter -> Flutter Pub Get
- .gradlew clean Error: BUILD FAILED in 3s 1 actionable task: 1 executed
2
Answers
In my case, it looks like this: I don't know which line to delete from here. I will ask for your advice.
There seems to be an issue with the Android Lifecycle Package.
check your pubspec.yaml file for this package:
Remove the line and Run (1 after another)
This should reinstall the package.
Don’t know if itll solve the problem though.
If it doesnt help try searching your entire for the entire root path thats apparently different. If you find anything check if its set up correct or post the details here.