Android Studio 3.1.1 not working fine - android

Recently I have installed latest android studio 3.1.1 and created new Kotlin demo project but its not working fine. When I open it some aapt2.exe command window open. Please check below screenshot.
Also when I close android studio its hang and not close. I have to force close it via Task Manager.
I have also try it with java code but nothing is worked.

Uninstall Android studio ->
Delete .android folder ->
Clear temp files ->
fix registry error using CCleaner or as you prefer ->
Restart system ->
Reinstall ->
Restart system.
That worked and working fine for me now.
Update : Check whether SDK and android studio version are same. In case of mismatch it may not work.

Related

Can't Load project in android studio

My laptop crashed while android studio was running (probably due to some corrupted files). I reinstalled the windows and installed android studio again , but when I tried to load my previous project , it only says Gradle project sync in progress and remains in the same state. I have
tried to open a new project but same goes for it.
This problem could be related to build.gradle file. Please, try this solution by #vijay_t. Also try to disable android studio plugins.

How do I completely uninstall Android Studio from Windows 10?

My Android Studio is not working properly. So I decided to uninstall it. It was impossible for me. The uninstaller provides a check box to uninstall the program that cannot be checked. How can I manually uninstall Android Studio?
Try finding it in c:program files or c:program files x86, then delete the entire Android Studio folder.
Also maybe try "repair" option first, if Android Studio offers it
First go in Start -> TaskManager -> Check Android Studio -> End Task
Then Go in ControlPanel -> Uninstall Programs -> Select Android Studio
and it will delete all the files permanently from your device

ho to fix the gradle project sync failed

i'm completely new to android studios.
While creating my first project it shows an error in XML view as**Gradle project sync failed ** which u could found in my screenshot and help me fix it and i'm working in Ubuntu 16.04 screenshot showing the error.
Close Android Studio
Go to /home/dhepak/.gradle/caches and delete (or move to have a backup) everything in this folder.
Restart Android Studio
There is a 'cache.properties.lock' that is holding a global lock which is preventing you from running your script.
Restart Android Studio -> Clean Project -> Make Project -> Rebuild Project -> Run

Cannot run my app, asking to select Android SDK

Today I've installed Android Studio Canary 1
Now I cannot run my app. This following dialog appears.
I've already set the right SDK location through File-> Project Structure-> Android SDK location.
Expecting your help to solve this problem.
Warning Dialog image:
Go to project structure settings and set Source Compatibility and Target Compatibility to your current java development kit version:
Just you need to sync your project file with your gradle file.
File -> Sync Project with Gradle Files
I tried every answer in this post but my problem only got resolved when I made these steps:
File -> Close project -> Remove project -> Open existing project (same
project)
Maybe this will save a morning to another person with the same bug.
EDIT
This happened to me a lot on a MacBook. After I posted this answer it just kept happening so what I did was:
uninstall the Android Studio version I had from the App Store;
download the desktop stable version from Android Studio website;
start using the desktop version of Android Studio.
Never happened again.
Sometimes the SDK path will be incorrectly configured. You would need to fix it.
To Settings/Preferences( command + , on mac).
Search for SDK
Under Android SDK, click on edit and point it the root of sdk directory on your file system. (If ther is no SDk installed then install in from the below list).
i suggest you go to build.gradle and sync again.
Or Tools -> Android -> Sync Project with Gradle Files (Android 3+)
You need to insall SDK api 19 check this out.
https://developer.android.com/studio/releases/platforms
Go to sdk manager and install sdk according to your device and check your device api. Example if your device is jellybean then install api 19 sdk.
Go to Tools> Android > SDK Manager and make sure you have selected default Setting under System Setting. In this image I have selected Android 7.1.1 as default SDK
Just click on the button ..."Sync Project with gradle file"
Error will be remove
I had the same problem and what it worked for me was just sync with gradle.
I just did what I've found in this similar question:
How do I "select Android SDK" in Android Studio?
The original answer:
go to build.gradle and click sync now. Then it worked.
Update :
File -> Sync Project with Gradle Files (Android Studio 3.1.1)
Tools -> Android -> Sync Project with Gradle Files (Android Studio
3.0.1) Or You can click on the icon from the toolbar.
Sync Project Icon
This answer may not help works for later version as Android studio Team work on making the tool more better, the way to sync may be
different in the next version of Android Studio.
COMMON WAY that may helps is try to sync project and then Invalidate
Caches and Restart Android Studio.
Solution for Android Studio 3.1.2
Before that, by the way, I had invalidated cache and restarted too, but it didn't work.
Please, try and let us know.
P.S.
I had this problem after I imported a project from Git, just in case someone would like to replicate.

Cant start a new project in Android Studio, nothing happens

I am new to Ubuntu and Android, and I tried to install Android Studio and succeeded in that matter, but when I click Start a new project nothing happens. I tried reinstalling, but it didnt help. Any ideas?
EDIT:
i managed to create project manually using terminal, but in android studio I still cant create project nor edit existing project (some IDE error is thrown)
You should be more specific (screenshot or quotes of error), so try this:
In Android Studio, go to Configure -> Project Defaults -> Project
Structure -> Platform Settings (SDK) choose the Android SDK, set the
build target and click on apply.
After successfull installation of Android studio,sdk and jdk i was not able to open new project in Android in Android Studio on windows 7. This got resolved by doing the below settings,
Configure -> Project Defaults -> Project Structure -> Platform Settings (SDK) choose the Android SDK >click Apply and Ok.
You are good to go. Please note that you need jdk 1.7 to work with Android studio.

Categories

Resources