I deleted my app on phone and then I run android studio but it gives me an error like this :
C:\reactnative\ProjectName\android\app\build\intermediates\signing_config\debug\out\signing-config.json (Access Denied)
I didnt get this error before.
Just delete the file signing_config.json
Run react-native run-android or run app from android studio again
delete build folder which is placed in C:\reactnative\ProjectName\android\app\
and then run your project react-native run-android
Run Android Studio as Administrator it will work.
As I was not able to even clean the project, So I deleted the build folder manually, and build It again, this worked for me.
For me, there is not such a file and path in the project directory. Just I have to run Android studio as administrator and problem gone.
I use windows 10 , 64.
If you are facing this error in Flutter then just run the following command in terminal
flutter clean
the answer is given for flutter. If someone is wondering
Related
I have installed Android Studio but when running an application on an emulator, I face a problem, please help me with this issue . It shows the screen as below, please help me out
Error during during performing emulator
you can try:
1- clean project -> sync project with gradle file -> rebuild project
2- invalidate cache and restart IDE
Flutter app runs on VS Code with Start Debugging & Run Without Debugging and also with terminal command "flutter run" .
However it runs on Android Stuido only with terminal command "flutter run".
When I try to run it on Android Studio, with the play button which triggers the build, I get this error :
"Entrypoint isn't within the current project."
Invalidate Caches and Restart, flutter clean, quitting and restarting Android Studio are some options I tired with no success at all.
Have any of you faced the same issue?
What can be the problem? And please the solution...
Thanks in advance,
Oz
Here's the image of Run Config :
Click on File-> Project Structure -> Module then add root folder of your project then it will detect its a flutter app and then build
It works for me, hope it will work for everyone.
Goto File -> Project Structure -> Module
Or
in edit configuration, just name it "main" and locate the location of 'main.dart' file in the Dart entrypoint text field.
Please take a look at the below screenshot.
Run/Debug Configuration screenshot
Getting this error in android studio 3.5
Android Version 3.5
SDK 28
flutter latest version
Any one help me with this error? Getting this in windows 7 ultimate
Failed to extract manifest from APK: Exit code -1073741515 from: C:\Users\Shahryar Ahmed\AppData\Local\Android\sdk\build-tools\29.0.2\aapt dump xmltree C:\Users\Shahryar Ahmed\AndroidStudioProjects\flutter_app\build\app\outputs\apk\app.apk AndroidManifest.xml.
No application found for TargetPlatform.android_arm.
Is your project missing an android\app\src\main\AndroidManifest.xml?
Consider running "flutter create ." to create one.
Try to do a
flutter clean
This solved lots of problems for me
From Menu Goto Tools->Flutter->Flutter Clean.
as shown in below picture.
File->Invalidate Caches/Restart..
I encountered the same problem and I fixed it by deleting the app.apk in the build/app/ouputs/apk directory and it worked.
This problem happened to me .
and the error was that the file aapt.exe in this ( C:\Users\username\AppData\Local\Android\sdk\build-tools\29.0.2\aapt.exe) is opened by antivirus .
the solution is : stop the antivirus and run again it will work .
also :
you can double click on aapt.exe file , if it opened by another program it will show what is this program , so you can stop or close this program and run again .
Consider opening as administrator your android studio .exe
I went through the same problem. I just uninstalled previous build in my emulator and did flutter run again... worked for me.
After this answer:
https://stackoverflow.com/a/68142732/14409491
I uninstalled the antivirus
Then I deleted all folders in the build-tools in C:\Users\user\AppData\Local\Android\Sdk\build-tools
After that, downloaded build-tools again from android studio
I was also facing this issue while using VS Code, then I tried running on Android Studio because sometimes issues are related to emulator.
Though running flutter clean on the terminal from the project
directly seemed to solve my problem. after that also get(pub get) your dependencies to avoid further build errors.
I'm creating a new flutter project in Android studio for the first time. I give the project a name and choose Flutter sdk. I then clicked finish and then noting happened. Android studio says that
"Flutter create command was unsuccessful"
When I navigate to command directory using file explorer, I new folder is created with the project name I've given but it is empty.
Please help.
I don't think you installed flutter correctly. First and foremost, make sure you run flutter doctor from your terminal.
If it doesn't work then you didn't install flutter properly.
If it works, try creating your project via terminal by typing flutter create projectname
I hade the same issue in ubuntu
first, check flutter doctor and solve the error if there was
then check the git installation
in my case, I didn't install git
On Windows at least you need to add <flutter_dir>\bin to your path, and then restart Android Studio. It is not clear to me why Android Studio needs to know the location of the Flutter SDK if it doesn't then use that information but... :shrug:
Git also needs to be in the PATH too (as C:\Program Files\Git\cmd); I have always used git-bash just fine without that but now it seems to be a requirement that isn't clearly surfaced when upgrading.
In My case set the flutter sdk path first while create the app and then create the app
I'm getting into flutter so I followed the install doc on the website and had no issue, installed the flutter and dart plug-ins on both Android Studio and Intelli J. The flutter doctor -v command results in the following
But yet when I try to create a new flutter project in Android Studio a folder is created with the project name but it is empty and I get the following in the event button on the welcome screen.
Error creating project
Flutter create command was unsuccessful
So I decided to create the project manually in gitbash where the create command worked perfectly.
I opened the project in Android Studio and discovered another problem even with the emulator running or phone attached the devices section of the run ribbon displays no device and always says loading in the dropdown when clicked.
So again I opened gitbash and in the project root folder type flutter run and the default flutter test app appeared on the emulator.
In Summary, Android studio can open but not create the project nor can it run it but the project can be run from gitbash on the emulator I launched from Android studio.
BTW: IntelliJ has a similar result when creating a project.
I have no idea what was causing the issue but a fresh install of Git seems to have resolved the issues.