Could not find apksig-7.1.3.jar in android studio - flutter

I'm trying to sync build.gradle for a flutter app in android studio but it gave this error
this error comes after I tried solving "ssl peer shut down incorrectly" error using the first answer in this question .
I followed all three steps of that solution but without adding the certificates and then I reconverted the steps but I remained with the same error.
Then I was trying to upgrade the gradle but it was interuppted and then the above error occured.

Related

Error running pod install (Flutter android studio)

im having trouble building my flutter project on my mac M1. When i try launching it in android studio im getting the error code 'error running pod install' and when i try opening it in xcode im getting 'module cloud_firestore not found'.
I have tried all the solutions in this thread How to solve "error running pod install" in flutter on mac? but nothing seems to work.
Im having no troble building flutter project without any dependencies but as soon as i add one im getting the error messages mentioned above, any ideas on how i could solve this?
I came to this problem as well (Macbook Air M1). I also tried the solution on your mentioned link but failed. However, finally I could solve the problem by following the steps on 'Deploy to iOS Device'
https://docs.flutter.dev/get-started/install/macos#install-xcode
Run this code on Terminal
$ sudo gem install cocoapods
$ sudo gem install ffi -- --enable-libffi-alloc
Restart Android Studio

What went wrong: Execution failed for task ':app:validateSigningDebug'

here is the exception I get when I try to run simple flutter app on my physical device
I was working flutter projects on Android studio and run it successfully , but after I update it with flutter and dart , I coudn't even run a simple app .. it requires me a unique application Id
here is how my build.gradle file looks like with the to do hint
The error says Failed to create keystore, please refer to this answer

Error Module 'flutter_secure_storage' not found when try Product ->Build for -> Profiling

well this error occurs to me when I try to make my app in production.
The app is created with flutter and I was able to create the apk for android, but when I try to do it for ios it won't let me.
The file that I am opening is Runner.xcworkspace and the problem is the import of a flutter library, it seems to me that I have to make some kind of connection with the pods.
here is the error, I want to tell you that I do not want to run the app, but to make an installer
The error that occurs when building a release (ie. flutter build ipa) and not when running a debug build is:
/[REDACTED]/ios/Runner/GeneratedPluginRegistrant.m:48:9: fatal error: module
'flutter_secure_storage' not found
#import flutter_secure_storage;
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
For me regenerating Podfile in the following way solved the issue:
rm ios/Podfile && flutter build ios
See Closed [ios][release] GeneratedPluginRegistrant.m Module not found
#43986

Flutter Gradle build with error exception

i just setup my android studio and vs code and flutter SDK installed but any time i try running the project i get this Gradle error, i cant figure out what the problem is please help me out.
After running the flutter doctor everything seems to be okay.
the problem might be caused by many factors so lets try some solutions
after each one rebuild your app if the error message changed or the problem solved please keep us informed
run these commands one by one
flutter channel stable
flutter upgrade --force
flutter pub cache repair
cd your app folder
flutter clean
edit app/build.gradle in your host app such as it includes the local repo
like in here
repositories {
maven {
url 'https://storage.googleapis.com/download.flutter.io'
}
}
use VPN and rebuild your app

flutter given error while running: Error waiting for a debug connection: Bad state: No element

I'm launching the app in a real device.
Anyone knows why this is happening?
Launching lib/main.dart on GT I9063T in debug mode...
✓ Built build/app/outputs/apk/debug/app-debug.apk.
Error waiting for a debug connection: Bad state: No element
Error launching application on GT I9063T.
Exited (sigterm)
Even the hello-world app is showing this error.
Run flutter clean.
This works for me.
I had this error with a clean install on MacOS X (Mojave), and after trial and error discovered that the main user who is running flutter debug needs to be an admin user.
Clue was the line:
log: Must be admin to run 'stream' command
when running from command line.
After this VS Code and command line work.
Build always works on my VS code normally. Updating to the latest Flutter 1.12 also started showing this and most times, my code either shows up on my device first before showing that debug has started or the program just quits. Any fix with VS code because I am not an Android Studio fan.
Try to change flutter channel to beta using "flutter channel beta". it worked for me to fix issue which is because flutter version is updated to "v1.12.13+hotfix.5".
I ended reinstalling flutter sdk.
Ubuntu 16.04
VSCODE
Started with Flutter 12. It seems that the user must be admin now.
Rolling back to a previous Flutter version will do for now.
flutter version v1.9.1+hotfix.6
I changed the channel of flutter to the master and works, I was using the stable channel.
You can use the command:
flutter channel master
or just flutter channel to see another channel.
In the 'Developer Options' of my phone, when I changed the 'Select Debug app' option to 'Nothing', the error was solved.
Try to downgrade the libglvnd package to version 1.2.0 in arch linux.
This started occuring after i updated xcode to 14.1.
Simple Restarting mac works with flutter clean