I want to delete a library file from subversion.
The steps I follow are
1. Delete from my libs folder
2. Delete dependencies from property file
3. Then Synchronize to commit the change
The issue happening is I cant see the deleted file to commit while synchronizing. What am I missing? I need to delete this library file from Subversion. I am doing this through Android Studio
Follow below steps :-
1. Select parent folder and right click.
2. And click on commit button.
Related
i would like to delete one folder (unused library) from my project in Android Studio. But i cannot to do that by delete key on keyboard or any other way.
I tried to found delete under refactor->safe delete, but this option is disabled.
If i removed folder manually from folder, Android studio created a folder again and putted in one .iml file, so i cannot delete folder again.
Thanks for any help.
Remove it from settings.gradle
Build --> Clean (the blue rectangle should disappear)
Right click on module -->Delete
To remove a module, you first have to delete it from .idea/modules.xml.
Once you do that and save the file, you'll be able to delete the folder, which will no longer be marked with the module's blue rectangle.
Don't forget to remove the module from settings.gradle.
I found this aswer at delete project in android Studio 0.3.4
The problem is occurring because of workspace.xml and modules.xml inside .idea directory of your project.
You cant not delete any module if there is blue rectangle over it, Follow the steps to delete your module from project :
Go to File> Project Structure , select the module you want to delete and press the red minus sign button to remove.
Note : Also remove if any reference in build.gradle file of your main module.
Clean your project using Build > Clean Project
Close your Android Studio now
Go to the project directory and delete the your_project.iml file and content of .idea folder from project root directory, also delete the module directory which you want to remove.
Open Android Studio again and let it sync the project with gradle
If module appears again there will not be any blue rectangle mark on it so you can delete by right click > delete and clean your project.
Sync your project again with gradle, if it appears again check your event log if somewhere something from library is used, if it is remove them all.Check your File > Project Structure as well if there are any error referring to your module library on bottom. If it is using the red bulb button remove it.
After remove all things Clean Your project and sync again.
Let me know in comments if any problem occurs.
I'm a complete newbie to Eclipse and Android development and I've been trying to delete a project and then creating one with the same name again. I choose to delete the project from the workspace and the dir/files are indeed gone. The new AndroidManifest.xml file though has the original contents appended as does the layout XML file and generates parsererrors rightaway!
Are references to the project file somehow stored outside the workspace dir itself that I can delete by hand?
If I restart Eclipse after deleting the project, it doesn't give me this problem
When you delete a project from the eclipse it shows you following dialog box,
If you have selected(ticked) the option as shown in the image, it will delete all the files and folders of the project from the workspace. You can not get back once you delete it. But if you haven't selected this option then it will only delete project from the project explorer/package explorer, but project files and folders are safe there in the workspace which you can later get it by importing in the eclipse.
Once you delete the project from the Workspace, in Windows it's at the User main Workspace/[The project] once you delete, your project goes to dream land. so you restart Esclipse and make new one with same name, thats not an issue.
Umm, try searching in your mac about the project name, or go to the workspace and delete it, it should be enough.
I found this, take a look at it, please:
How to delete Eclipse completely (including settings and plugins) from Mac OS X?
Sorry, but you can delete Eclipse, and re-install it as a secondary option, if u deleted the Dir, and your project name is still in-use x.x
EDIT: in the link it says that you can change the workspace to another place, so I suggest you change the workspace place or delete the whole workspace after u take a backup of it.
When I highlight my project, go to properties, select java build path and then try to remove an Android Dependency from my list of Android dependencies the remove button is grey'd out. How can I remove that specific dependency?
JFTR:
I have had similar problem after a messed merge of two projects branches on Eclipse. I could revert the merge as I did not commited yet, but Eclipse project files that I do not store in my repository was messed.
The solution for me was to:
Delete the error message from "Problems" view.
Clean the project (Project / Clean...)
Solved!
Delete the dependency from the libs folder.
Well, the above solutions didn't work for me so I just enter the project.properties file and remove the dependency (which is written there as a reference).
These are the steps on Ubuntu:
Using console on project root folder type sudo vi project.properties
Go to the line that you want to remove and delete it (you can type double d to remove a line --> dd)
Close and save the file (press ESC and then wq)
Clean the project and rebuild.
Note: Before you change project.properties manually you are strongly advised to backup your project since this operation is unsafe!!!
Sorry for the elaboration for those who speak fluent Linux.
2 types of dependencies I can found so far under Android Dependencies:
Build path to your workspace libs folder
Build path to some other project which install by Android tools and
create as another project under Eclipse, e.g. GridLayout for
android(android-support-v7-gridlayout.jar)
To remove the first one, it is easy. Just delete the jars under libs folder.
To remove the second one, it is also easy. Just go to the project's Build Path, select Android, remove the reference item under Library panel
I am getting the following errors when I try to load an Android project in Eclipse that was working just fine last week.
Any ideas?
[2012-03-16 09:29:43 - MyProject] /MyProjectName/gen already exists but is not a source folder. Convert to a source folder or rename it
Note that I have tried to clean the project several times, even restarted but it still gives me this errors.
right click on project and go to project properties, then goto java build path, and then in source tab, click on add folder button and add gen folder.
just src and gen folders should be checked there if you haven't any library projects attached.
MyProject] /MyProjectName/gen already exists but is not a source folder. Convert to a source folder or rename it
This problem happens when eclipse does not able to find each linked contents in a project.
For example:
When we import a project to eclipse from a specific folder(suppose D://NewFolder), eclipse memorized and link each content with its appropriate path (which is D://NewFolder/project_library/src in our example).
But if we replaced(Here D://NewFolder To E://Another_Folder) or delete the library from its specific folder(Here D://NewFolder), eclipse unable to find its(project_library) original path
and give red error.
So when this problem happens, first we have to make sure that the imported project or library is its original folder and no changes has made to this.
Otherwise again replace the project to its specific folder to which eclipse has linked at the time of import i.e parent folder.
This happens because your .classpath file got wiped out somehow. This file contains all the information from the Java Build Path tab under Project Properties. You could add in all information manually but there's an easier way of fixing this problem.
If you have a copy of the .classpath file on your machine, you can just copy and paste it into your project directory.
Follow these steps in Eclipse :
Project -> Properties -> Select Java Build Path ->
Open Source tab -> Click Add Folder and check the gen
I would like to fully remove all the links to an external library in my project. How can I do that ?
What I did:
Right click on project folder => Properties => Android => remove the library in the right panek
Right click on project folder =>Build Paths => Configure build paths =>In the right panel: the folder relative to the library can be expanded; I manage to remove one of the resources in this expanded fodler but not the others (and consequently not the root folder)
The library (.jar) is still visible in my project above the assets folder and I don't manage to remove it. Below how it looks (cannot be remove by right click and delete (gray)):
Any help would be appreciated !
Maybe You have to go:
right click on your project:
properties > select "Android"
Under "Library", remove the library you want.
It maybe some libraries include other libraries so you couldn't remove it from where you have tried.
Right click on the jar file -> Build Path -> Remove from Build Path
Open settings.gradle and delete:
"include ':librayname'"
Then delete lib file from app Myproject/app folder.
I was able to remove an External Library after following these steps:
Remove compile entry from build.gradle (app)
RESTART Android Studio.
Following steps worked for me :
Right click on JAR file in libs folder
Choose option Refractor and then select Safe Delete Option
Delete this entry from build.gradle --> compile files('libs/)
open Android Studio terminal and execute this command --> gradlew clean
jar file will be deleted but Code you have used from the jar file will still be there in java files. you can manually delete that.