I'm trying to install firebase_auth in my flutter project. To install flutter pub add firebase_auth I am using command. It installs firebase_auth package but installs version ^0.15.4. It does not install the new version and naturally causes conflicts.
I'm getting an output like this:
[simto_todolist] flutter pub get
Running "flutter pub get" in simto_todolist... 1.084ms
exit code 0
--
[simto_todolist] flutter pub get
Running "flutter pub get" in simto_todolist...
Cannot create link, path = 'C:\src\flutter\.pub-cache\_temp\dir20230c53\ios\Classes\FLTFirebaseAuthPlugin.m' (Operating System Error: Not granted by required privileges.
, errno = 1314)
pub get failed (66; , errno = 1314))
exit code 66
What is the problem? How can I solve it? Thank you very much in advance for the help.
You can set in manual by editing your pubspec.yaml project file
firebase_auth:
when you remove version from your file pub will install latest version
Related
After setting up all the .json files, pubspec file and initialization in the main method when I am trying to create the codegen_loader.g.dart file from the terminal by invoking flutter pub run easy_localization:generate, it's not getting through. Even no error message is getting.
Below is a snippet of the command line:
PS C:\Users\Prosanto\Desktop\Android Dev\localization> flutter pub run easy_localization:generate -h
PS C:\Users\Prosanto\Desktop\Android Dev\localization> flutter pub run easy_localization:generate -S "assets/translations" -O "lib/translations"
PS C:\Users\Prosanto\Desktop\Android Dev\localization>
Nothing is happening, any help or suggestion is highly helpful.
I dealt with this same issue on Mac, but these steps should still help.
First, I ran this command from the Mac terminal, not from Android Studio (whether that made any difference, who knows, but it wasn't working when running from the IDE). It's different from the easy_localization docs
flutter pub run easy_localization:generate --source-dir assets/translations
After that, I ran this command:
flutter pub run easy_localization:generate -S assets/translations -f keys -o locale_keys.g.dart
And the necessary files were generated as expected. I hope this helps!
I get this strange error in VScode when I try to execute the command React-native run-android in the terminal.
Also ran react-native doctor and all green checkmarks for Node,yarn, android_home, and android sdk 0 errors
Not sure how to fix these issues as I have tried all suggestions in previous threads. Anyone have this issue that could assist? This is a windows machine.
Error Image
1.first Gradle needed to connect to the internet.
2.cd android
./gradlew clean
./gradlew wrapper
./gradlew -v // to download the new version
3.project app-level build.gradle file:
update version this
com.google.firebase:firebase-analytics
and this
com.google.gms:google-services
I want to use flutter but I am getting this while running flutter doctorError
I have cmdline tools install as seen in below picture
android sdk tools
But when I use command "flutter doctor --android-licenses"
It is showing sdkmanager not found:-Sdkmanagernot found error
I have tried literally everything mentioned on internet to remove this error but nothing works
// try to set
flutter config --android-sdk <path-to-your-android-sdk>
when I run my app I get this error :
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install F:\flutter-project\1\third_app\third_app\build\app\outputs\apk\app.apk: Failure [INSTALL_FAILED_INVALID_APK: Package couldn't be installed in /data/app/com.example.third_app-1: Package /data/app/com.example.third_app-1/base.apk code is missing]
Error launching application on Android SDK built for x86.
update:
I run flutter clear in the terminal and after restarting my computer and executing again, the problem solved
One of the SO post mentioned in the comment:
For Flutter projects, with VS Code editor, go to the project source
folder and delete the "build" folder and start debugging.
This could also be attained by running flutter clean from the terminal. This command helps you delete build cache which is in the /build folder. You can always uses this command when there are any bugs in the build process.
Launching lib/main.dart on Android SDK built for x86 in debug mode...
[!] Gradle does not have execution permission.
You should change the ownership of the project directory to your user, or move the project to a directory with execute permissions.
Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
I got the same error trying to execute flutter run on a mac. Apparently, in your flutter project, there is a file android/gradlew that is expected to be executable (and it wasn't). So in my case, I ran...
chmod a+rx android/gradlew
...afterwards the flutter command worked.
FOR FLUTTER
I have tried mostly everything mentioned here and on my own. The solution, actually, it is a series of solutions and worked for me, I am mentioning them try as you wish.
Make sure no antivirus *firewall is blocking,
gradle.bat, gradlew.bat,
git,
flutter,
android studio
Get the latest Gradle and install it to lower privilege directory, not in Program Files or Program Files (X86); I did it in D drive.
Don't forget to update the path in Environment Variables.
I also installed JAVA Runtime (JRE).
Install git as it is necessary for flutter.
You can Check-in windows command line after installing each (Git, Gradle and flutter doctor). if nothing seems to work Restart the pc after each.
You might try it first, Disable the Gradle plugin and re-enable and restart android studio.
After this when you will compile /run the app it will take a long time please bear with that(at least 15 min just to be sure).
I had the app directory with Read, Write & Modifying permissions still, it was giving that error-
Error code 1 "gradle does not have execution permission. you should change the ownership of the project directory to your user, or move the project to a directory with execute permissions."
so I think it is related to the connection with the plugin.
Hope it helped :-)
Try to set the execution flag on your gradlew file:
chmod +x gradlew
chmod a+rx android/gradlew
This works but for windows you need to install "Git for Windows"