I have an issue regarding Android Studio installation. I accidentally disabled all plugins and Android Studio suggested me to reinstall it from scratch. Based on the previous posts, before the installation, I have to delete the file: disabled_pulgins.txt which located at: ~/Library/Application Support/Google/AndroidStudioPreview[version]. (MacOS)
Unfortunately, there is no such Google folder in my computer. I think it may because I am using M1 chip?
I searched the whole computer but can't find any related docs, dose anyone know where they put those docs are?
Thank you!
if I look at logcat in Android Studio there stands: Please configure Android SDK.
If I tap on configure I'm moving automaticaly to Projectstructure. If I choose the Project file in the left menu I see following picture.
If you want to see, check the link below.
There isn't a Gradle Version or an Android Gradle PLugin Version.
But if I try to put something in there I get the message from Android Studio that the sync faild.
How can I fix that. I hope someone is clever enough to help me because I couldn't find anything in stack overflow or youtube which helped me.
Thank you for HELP!
I don't know why the Link isn't to see In my question.
I hope you can see it now.
I've started to work with Android Studio. I tried to open activity_home_drawer.xml file, but I can only see
waiting for build to finish..
Can any one help me?
I already tried clean project and re build, but not success I had tried in so many ways what are explained in other StackOverflow question. but I still can't find a solution for this.
Gradle needs to re-sync. Go do gradle and make some changes, e.x add comment. There will be a yellow Sync now button on right corner. Click on that, it should fix it
I am not able to set the installation location on Android Studio. Also when I open the installation setup, I'm not able to view the license agreement.
I get the following:
Please help.
Well, I see this the first time and it looks strange, but...
I hope you've already installed Oracle Java 8. If not, you would find it here:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
You don't need to install Android Studio. On Google's site there available also .zip file, which you need only unpack and run.
Look here: http://developer.android.com/sdk/index.html#Other
Direct link: https://dl.google.com/dl/android/studio/ide-zips/1.5.1.0/android-studio-ide-141.2456560-windows.zip
Hope it help
I am starting my migration from Eclipse to Android Studio, and start playing with new projects on Studio.
My test project was working fine till I got some errors messages.
I had to do some manipulation (https://stackoverflow.com/a/16876993/327402) to enable the error output to display, and found the issue that I fixed.
Unfortunately, after this "workaround" (Why the hell have I to make such things to see my errors?), I found that there was an error message that I cannot fix:
error: duplicate class: com.mypackage.name.BuildConfig
error: duplicate class: com.mypackage.name.R
I also noticed that I am not the only one to have this issue (see the comment in the SO answer I linked above)
First time, I was able to fix it by enabling "External build" again, but that happened again, because I needed to see the error output and everything is now broken, and I cannot find what happen.
With Eclipse, the R file was easy to find, in the gen folder, but with Android Studio, there are too many files, and I am a little bit lost.
Any idea/suggestion?
I've found a question like this that has some replies here:
Cannot resolve R.java, duplicate class
You can try this:
Delete the Build folder generated by Android Studio automatically
Also you can try to Rebuild project by clicking Build->Rebuild project after deleting build folder.
So, just to let you know...
A few minutes after I posted my question, Google released an update to Android Studio (0.1.5)
See link: https://plus.google.com/+AndroidDevelopers/posts/Y9vhvGaHCbh
Tor Norbye kindly answered my question in this community, and I am sharing here
So the workaround I quoted in the OP is no more mandatory.
Enabling again External build after upgrading Android Sudio let me see the real errors ( a library and some Gradle import that I fixed)
So, I consider the Android Studio upgrade as the best answer to this question...
Ok, I also have the same problem, and this is what worked for me.
I first unticked external build from compiler settings. Then when I compiled i get two errors related to R.java, duplicate class.
Then i delete the build folder manually from finder. Then rebuild it from android studio, but still same error.
Then I again go back to compiler preference and tick the external build setting, and it worked fine after that.
Looks like some bug.
apparently, or at least for me 0.1.5 has a bug and cannot run in external build
because of some path error you can read about here
https://code.google.com/p/android/issues/detail?id=56628
so i switched to internal building, and then i hit the double R symbol bug
after deleting the build path application is compiled without errors but the build folder is not fully rebuilt, I'm missing the R.java file which the internal builder does not make.
i've rebuilt it on the external builder on an unupdated version as a temp workaround while this issues is fixed.
btw if anyone knows how to tell internal gradle to rebuild the build folder please share.
I just had the same problem and found a way to solve it (You can do this with Android Studio open):
Go to you Android Studio projects folder located in c:\users[USERNAME]\AndroidStudioProjects
Locate your project folder and open it.
Delete the folder named build.
From here, enter your application name folder, where you can find another build folder among with libs and src folders and a file named build.gradle.
RENAME the build folder to build2 or something else.
Now in Android Studio go to Build->Rebuild Project.
And after the project was rebuilt, open again the folder where the build2 folder that you renamed is located.
Delete the new folder named build that was created.
Rename your build2 folder to build again.
Done.