Android Studio opening error: Unable to Start Correctly (0xc000007b) - android-studio

I just installed Android.Studio.3.4.1.0.x64 but when I want to open it, I get this error:
The application was unable to start correctly (0xc000007b). Click OK
to close the application.
Why this happens and how can I fix it?
I searched for the error and did these things but didn't work:
Reinstalled the AndroidStudio
Installed dot net framework 4.7.2 developer pack
Installed latest version of DirextX
Restarted my computer each time of above steps

I found the following answer here JetBrains IDE Error on start : The application was unable to start correctly (0xc000007b) from #Amir Karamat, and it worked for me:
in Windows 10 you should follow these steps:
open Settings (just right-click on windows start and choose
settings)
search for 'Windows Defender Settings' or just go to 'Update & Security' > 'Windows Security'
then open 'App & browser control', in the new opened window scroll down to the end to find 'Exploit protection settings', click
that
sort of settings will be shown and you can change the default settings. to create an exception you should click "Program settings"
(which doesn't seem to be a button,but it is!)
click 'add program to customize', in the dialog enter your ide name.exe (you can easily find it by clicking 'open file location' on
shortcut of the application)
in my case the application name was 'phpstorm64.exe'
next you have to look for 'force randomization for images (Mandatory ASLR)' check the 'override system settings' and switch it
off and apply settings.
I'm not sure if it's needed,but turning off 'Randomize memory allocations (Bottom-up ASLR)' stated to work for others

Related

"Unable to locate adb" using Android Studio on Windows 10 to develop Flutter apps

Android Studio upgraded to version 4.0.1, and now I get a "Unable to locate adb" message when trying to launch an Android emulator image from the AVD manager, in order to run/debug a Flutter app. I have tried all the obvious things, e.g. checked to see that there is an adb.exe image at .../AppDate/Local/Android/Sdk/platform-tools. I have even tried de-installing completely and did a clean install of everything from scratch. I have plenty of disk space, anti-virus has not quarantined it. Interesting, if I start a native Android app (e.g. "basic activity"), then the message goes away and the image starts OK
Android Studio - launch emulator AVD - "unable to locate adb"
Visit the above link to get solution in detailed way with pictures.
I had the same issue as you were facing, I have Researched the Whole Internet but found nothing useful. So, I somehow figured out the problem and fixed it, The problem is at
app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
Whenever we create a new project due to some reason the Module SDK is not set up automatically. Thus the ADB manager was throwing an error 'Unable to locate AVD', which is not that fatal as the error/warning is not stopping us from launching /starting the emulator, but it is so annoying to see that pop-up box. So here is my simple and quick fix.
Solution:
Click on the project folder, tap the dropdown icon just beside it.
Now Navigate to the path below.
android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
Now Click on the file GeneratedPluginRegistrant.java to open it.
Once it is open, At the Top you will notice a bar that says 'Module SDK is not defined',
Now right against it, you will also see a hyper-text named 'Setup SDK', Just Click on it.
That will open a Pop-up Box with the title 'Select project SDK'.
Now select the Android Platform API and then click OK. After that being done Restart your IDE.
Your Problem will be Solved. And you will also notice that Emulator Opens up way faster than before.
NOTE:
The Above Steps has to be performed with every new flutter project.
I have already answered to your question before to Read more and understand in detail with pictures just visit the link
Android Studio - launch emulator AVD - "unable to locate adb"

Edit Configuration pops up when I run a project,ignoring it says Cant start compilation as output path not set

This dialogue box appears after I click run
When I run the android project I downloaded from Android Developers website, the edit configuration dialogue box shows up. When I press run again, it says the configuration is wrong.I am a beginner and have never opened any project (nor made in my android studio) before.
Appears if I again click run,says incorrect configuration
Another box after that which asks to set output path
I tried adding a configuration named "FragmentBasics" in the Application menu but it doesn't allow me to select the main class.
The java class doesnt get selected
(Tip: Update your Android Studio. It looks like an ancient version... Do that before doing anything else.)
(Prerequisites: Create an Android Virtual Device (AVD): Error running 'app: No target device found. Android Studio 3.6 Preview)
You don't have the right configurations.
(1 Go to the Configuration Dropdown Menu and click Edit Configurations.
(2 Delete existing configurations (None of the classes in your project have the "main" method declaration)
(3 Add an "Android" run config
(4 Fill in config information
Now you are ready to deploy your app (Assuming you have an AVD).
Hope I helped you!

Android Studio won't run application from studio ide?

I've got an application I've been working on and am having an issue with android studio. When I click "build->run" and then select my device, the application never runs on my phone (and the log in android-studio that automatically comes up does not have anything, whereas in the past when I have used this feature it usually says something like, "waiting for phone..." and then the application pops up and automatically opens on the phone and you get some other pertinent information). I have the phone already in developer mode with the install from unknown sources set to on. When I manually move the application from its gradle build location to the phone and then install it manually in file explorer, all is well and the application performs as expected. As I need to debug, however, this is not a very viable solution. Anybody have any advice as to how to get it to run from the IDE? I have tried rebuilding and invalidating the cache/restarting android studio, to no avail.
When I click the run tab at the bottom I have an empty window. When I click the debug tab, I see:
Waiting for device.
Target device: samsung-samsung_sm_g920a-randomIntegerId
Uploading file
local path: /home/eric/Documents/class/OOSE/final_project/2015-group-17/project_code/android/Place2B/app/build/outputs/apk/app-debug.apk
remote path: /data/local/tmp/oose2017.myApp
Note: I am building the application on a LUbuntu 15.04 VM on a windows 8 host, and am using the latest version of android studio.
EDIT: gradle console indicates a successful build as well (obviously since moving the .apk manually to the device works properly).
Open 'Run->Edit Configurations...', and look for your app module in the column on the left-hand side.
Select it, then go to the 'General' tab.
Under the 'Activity' section, there are a couple of radio buttons. Make sure that 'Launch default activity' is selected.

I can't see AVD manager window in android studio 0.4.0

I am using windows 8,android studio 0.4.0 jdk 7_45 and jre7 installed. JAVA_HOME and JAVA variables are also set in Environment Path Variables.
When I click on tools-> android->avd manager , it shows nothing (not even error anywhere) . Nothing at all happens.
What should i do? I guess this version is not very stable.
It Seems your AVD Manager is missing from root SDK directory please follow the Steps
1. Go to sdk\tools\lib\ and copy AVDManager.exe
2. Paste it to root of your sdk Directory.
Now you have sdk\AVD Manager.exe
Now try to run it.
Check the permission for your Android folder.
C:\Program Files (x86)\Android
I fixed the same issue by right-clicking on the Android directory then
Properties->Security then selected the user name and ticked Full control then hit OK
If all else fails run as Administrator - this worked for me
Maybe, you need to go to android directory at first time.
Try to run Android studio in projectName/android folder. Then button AVD Manager must be active.
Run monitor.bat from android/sdk/tools, It open Android Device monitor.
From Window menu select AVD manager and also sdk manager.
You can try to access AVD without the help of Android studio.
AVD can be found:
C:\Users\[user]\AppData\Local\Android\sdk\AVD Manager.exe
You will need to run this as administrator by right clicking and clicking 'Run as Administrator'
I got the same problem.
Check you don't have any errors on the bottom of android studio. I got one with sdk build. If you got the same click on the link in error log.
Next go to file -> settings -> Appearance&Behavior -> Menus and Toolbars.
Roll up Main menu -> Tools.
Choose Android.
Click on 'Apply' button and 'OK'.
Wait for a while (gradel progressbar on the bottom).
I hope that I solve your problem.

I have made an application in visual studio 2012 and went under whole process of certification but the test failed, please give me the solution?

please guide me , how to change the default icon in the project in visual studio 2012 ?
due to that the certification test fails .
Due to this error I am not able to upload it to the windows store.
To change the default icon, first find or make an icon file. Then do this:
Go to the project properties. (Project menu.)
Select the Application pane. (Probably the first one.)
Go to the section Resources.
Check the option (radio) button Icon and manifest.
For the Icon field, use the browse button to select your icon file.
Save it, build it, try the certification test again.

Resources