I cant create new project in android studio - android-studio

I installed android studio and when I tried to open the android studio I cant run android emulator and It display the error report in below tab.
This is that error message
null value in entry:libOutputDir=null
and line down display the Build Failed

This maybe a gradle bug. Delete the gradle folder in the root directory of your application. Then open the app, let the studio rebuild the gradle again. This has been an issue for a lot of people.

Related

Gradle Distribution URL issue in Android Studio

Facing error -"The specified Gradle distribution 'https://services.gradle.org/distributions/gradle-6.5-all.zip' does not exist." when I'm running android studio normally.
But if I start the android studio as administrator above error is not coming.
I tried deleting the .gradle and .idea file and restarting the android studio, but same error is coming.
So, after trying out lot of solutions on stack nth helped and sort out this problem. Eventually, I had to restore my android studio to default settings. So, that how my problem was resolved.

Can't find "Sync project with Gradle files" in Android Studio running on Mac

I'm running into the error when I tried to run the existing project.
Error: "AndroidManifest.xml doesn't exist or has incorrect root tag"
I'm seeing a lot of solutions suggesting using "Sync project with Gradle files". I'm running Android Studio on my Mac and did not see that option. I do have AndroidManifest.xml file in the project but for some reason Android Studio can't find it.
I have the file under project_name > app > src > main > res.
I have Android Studio 4.1.1 and macOS Catalina 10.15.7
I also got a recommendation when I open up the Android Studio
Migrate Project to Gradle?
This project does not use the Gradle build system. We recommend that you migrate to using the Gradle build system.
More Information about migrating to Gradle
Don't show this message again.
Not sure what to do about it. I'm pretty new to Android Studio. Thanks!

Android Studio AndroidManifest not found after moving project

Recently, I moved my Android Studio Flutter project to another location in my computer by closing the project in Android Studio and then opening it in its new location. This was the error that appeared in my console when I try to run my project again.
What do I need to do?
Launching lib/main.dart on Pixel 3 XL in debug mode...
ERROR: dump failed because resource AndroidManifest.xml not found
Failed to extract manifest from APK: ProcessException: The command failed
Command: /Users/user/Library/Android/sdk/build-tools/29.0.3/aapt dump xmltree /Users/user/Desktop/Coding Projects/Work/Smart Weighing Scale/Mobile App/loadcell_app/build/app/outputs/apk/app.apk AndroidManifest.xml.
No application found for TargetPlatform.android_arm64.
Is your project missing an android/app/src/main/AndroidManifest.xml?
Consider running "flutter create ." to create one.
First of all check AndroidMainfest.xml in project's android folder then please try with flutter clean command in terminal (It's located at the bottom of Android Studio) and then flutter create .

Unknown Attribute Android: error on Android STUDIO 3.2.1

Things i have done to resolve this issue:
Clean Build & Rebuild
Deleted .idea file
Invalidated Caches/ Restart.. option
Turn On Power Save Mode.
SDk is up to date.
Sync Project with Gradle Files done.
Reinstall Android Studio done
recreate new project done
changed something in app Gradle file and synced the project again
android studio old version change also not help
Intellij shows to reset to default namespace, it will delete android namespace..
(In Project, Layout file corrections not reflecting into app)
Android Studio Version
Error Image
gradle image
Intelij Solution
This worked for me
Close Android studio
Delete all files from
C:\Users\.AndroidStudio3.2\system\caches
C:\Users\.AndroidStudio3.2\config //not importent
start android studio
Ran into the same issue. Seems to be something specifically related to Android Studio 3.2. My solution on Windows was to delete everything withing the cache/ folder in the .AndroidStudio3.2/ folder.
This problem happen for Android studio Cache & History.
Firstly In android studio go File -> Close Project and Exit Android Studio.
Then Delete below 2 Folders:
C:\Users\user-name.AndroidStudio3.X\system\caches
C:\Users\user-name.AndroidStudio3.X\config\terminal\history (optional)
Open the Android Studio and Enjoy!
Complete uninstall Android Studio (including system and cache files) and Reinstalling clears my bug...

can't create android studio project in Android Studio

Few days ago I have received an update patch(I don't remember what for were that update it was 5 MB of size), after installing it, studio somehow crashed and stopped working, when I'm starting it there is not wizard for creating android project. I tried to uninstall every file of android studio then download fresh download pack, install it but same problem. (OS Ubuntu 16.04)
Possible reason Plugin for Android is disabled or removed/corrupt
From your Home Screen of your Android Studio
Configure -> Plugins -> Enable Plugin for Android
Then Ok, and Restart
In my case, it was the Android Studio file corrupted file problem.
Close your Android Studio then Delete .AndroidStudio directory from the Users directory and start Android Studio Again is works for me.
C:\Users\[use_name]\\.AndroidStudio

Resources