Android Studio renaming - android

I recently renamed my Android app project in Android Studio (1.1b4) project, but am now unable to rebuild. I get this error:
Error:Execution failed for task ':app:clean'.
> Unable to delete directory: D:\AndroidstudioProjects\PcUpload\app\build\intermediates\res\release\values-sw600dp-v13
I renamed by right-clicking the top-level in the Project hierarchy, then selecting "Refactor...Rename".
Can anyone advise how I can remedy this?

Please make sure to rename project using refactor. You are getting that error because that project technically doesnt exsist under that directory, due to rename.
Another solution would be
Close android studio
Change project root directory name
Open android studio
Open the project(not from local history but by browsing to it)
Or follow This youtube video!
Or this!

Related

Android; Type com.google.gson.ExclusionStrategy is defined multiple times:

after importing a project library i get the error
C:\Users\Jordy\AndroidStudioProjects\Application\app\build\intermediates\external_libs_dex\debug\out\classes.dex
any ideas how to fix this?
So i just had this problem again, i did solve it this time.
open your android project in explorer, delete the .gradle folder
then go to the app folder and delete the buildfolder in there.
re-run your project in android studio and it should be fixed

Why the following error is showing while importing an project?

Why the following error is showing in android studio while importing a external project (https://github.com/udacity/ud839_Miwok/tree/Starter-code)?
Error: Gradle 'ud839_Miwok-Starter-code' project refresh failed
Error:Content is not allowed in prolog.
Try to clean and to rebuild your project. This is located at the Build Menu.
If this does not help, please show more details like your project tree, especially your resource diretory. It may also be that you created something at a place where it is not allowed to be.

After update android studio - fail to create new project

After updating my Android studio today I created simple project and I got following error that.
Error:Could not set process working directory to 'E:\DevelopAndroid\myNewProject': could not set current directory (errno 5)
The 'E:\DevelopAndroid\' is exist and the 'myNewProject' folder created.
But still I can't upload the code to my Git server.
I am not able debug it.
And I don't know what to do.
Renaming directory without space
delete .idea folder
Restart Android Studio
It will work
close current project, delete it and create a new same project, it works for me.
under your project-> look a folder(.idea) delete everything in it. then go to file-> select sync project with gradle files click and let your project sync again
I solve this by assigning full control permissions to the root directory in my Windows 10 machine. In my case cdm-webservice-v2 is the project directory.

Failed to read file modules.xml in Android Studio

I'm getting this error:
And I'm not sure what to do. There is no modules.xml file in the specified folder, so how can I get it back?
Close Android Studio, if it's opened
Go to the project workspace (Eg: C:\wheverever\it\is\TheProjectName)
Delete .idea folder
Open Android Studio and re import that project into it.

Android Studio loading issue

How to solve this issue .
Load setting Cannot load settings from file
'C:\Users\sujeet14108\AndroidStudioProjects\Rough.idea\gradle.xml':
Error on line 1: Content is not allowed in prolog.
Please correct the file content
The problem is occurring because of gradle.xml inside App/build directory of your project.
Try this way
Clean your project using Build > Clean Project
Close your Android Studio now
Go to the project directory and delete the gradle.xml file
Open Android Studio again and let it sync the project with gradle .
Android studio compile error "Content is not allowed in prolog"

Categories

Resources