Can't add an assets folder in Android Studio 3.6.3 - android-studio

Windows 10
Android Studio 3.6.3
I was trying to add an assets folder to my Android Studio project, which as I understand, should be located under new->folder->Assets Folder in any context menu of the Project view.
Opening the context menu for the app/src/main folder in the Project view doesn't show the new->folder option. I've tried adding it through the File menu, alt+insert and context menus of different project directories. The folder option doesn't exist in any of those.
contents of the context menu->new
Edit: I've also tried:
Reinstalling Android Studio without importing user settings
Restarting Android Studion with Invalidate Cache & Restart

Related

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...

Android Studio doesn't show gradle.properties file

Since I created a global gradle configuration in %USER_HOME%/.gradle/gradle.properties, my project in android studio doesn't show me the local gradle.properties file anymore.
Instead I see a "Resource Bundle 'gradle'" which contains only the global file.
Can anyone guide me how to get the local file back in the view?
I am using latest Android Studio 3.2

Why is Android studio not automatically cleaning my project

I recently renamed my project by closing Android Studio, renaming the root project directory then opening A.S again.
A.S names the project using the new directory name, then I open it. A new .iml file is created with the new name. I deleted the old one and cleaned the project.
Everything went fine but now when I build it just deploys the app instead of cleaning it first. I have to manually clean it and it's annoying.
Is there a setting that might have gotten messed up?
Platform Details: Android Studio 3.0.1, Windows 10
Ok. So, apparently if you add flavors to your project then you have to manually clean the project otherwise when you build, Android Studio will launch the previous APK.

How to solve the issue of Android Studio 3 (3.1 canary) Preview: Cannot import project

I am working on Android Studio 3 Preview at the moment. However, whenever I tried to open an old project it says:
The project file specified already exists.
I have deleted:
Old code/project from hard disk (completely)
Removed the project from the project list.
Any tips on this?
This needs two steps:
You must delete the .idea folder under your project. It is a hidden directory. use ls -a to find it out.
Right click build.gradle and choose application. It probably popup a window asking for a program to open it, choose Android Studio.
I faced the same problem with 3.1 and .idea folder was also not there. Still it was not working. So instead of doing "Import Project" I did "Open an existing Android Studio project" and it worked.
I encounter same problem recently when opening existing Android Project,
deleting .idea or open directly build.gradle through Mac OS Finder work for me
Open the gradle file (select Android Studio if an application picker pops up) and it should bring up the "Import Project" dialog.
Just go to your Project Location Delete All files like .idea, .app etc and Relocate Your Project Location.

Android Studio 1.3.2 No Module

Trying to follow this tutorial to run a new android project on a samsung device.
https://developer.android.com/training/basics/firstapp/running-app.html
However, I'm stuck in this step:
Run the app from Android Studio
1) Select one of your project's files and click Run from the toolbar.
I've selected the MyLoginActivity.java file but I can't click run (it's grey out)
I've tried to “Edit Configuration" add a "Android Application" but "Module" is empty:
I've tried to "Sync Project with Gradle Files". But the "Module" is still empty.
There was an ampersand (&) in the directory path! Creating a new project in a new directory without the & symbol solved all the issues.
No issue when opening a new project for XCode.

Resources