I downloaded a project from git through eclipse. When I try to run my project I would get this error:
[2013-01-26 21:16:43 - FOLDERNAME] /FOLDERNAME/gen already exists but
is not a source folder. Convert to a source folder or rename it.
After I delete the gen folder, I would get this error when I try to clean my project:
[2013-01-26 21:23:38 - FOLDERNAME] Failed to copy Manifest
Please help.
The fix is:
Clean the project by going to Project > Clean.
Right click on the project > Properties > Java Build Path
Open the Source tab
Click on "Add Folder..." and select BOTH gen and src
If you are still having issues after that:
Right click on the project > Properties > Java Build Path
Select the Libraries tab
Click the "Add External JARs..." button. Select the API that is in your android directory (android-sdk\platforms\android-yourversion)
Make sure to Clean the project afterwards
Go to /bin folder and delete AndroidManifest.xml.
Go manifest.xml location and press right click on manifest.xml, select properties and uncheck read only property.
The simplest way to solve this is to
right-click the project node in Eclipse
select the Android tools submenu
select Fix project properties
You may need to close and reopen the project but after this, it should build properly.
The reason for this is that .classpath and .project files are often by default ignored in .gitignore, and these settings are then missing when fetching the project from git.
I got the Failed to copy Manifest error when I loaded the project and here is what got the project running:
in the Problems tab, click the error message
delete it (by hitting the delete key on your keyboard, I'm serious)
r-click the main project node in Package Explorer/ Run As Android Application
Related
I'm new in Android Developer and i learning. But when i create a new project, this error shown.
and in the error log i have so much error, and i don't know how can i export all of them here.
And In the project explorer, my project shown like this:
I don"t know how can i fix all of this error! Thanks for helping and sorry for my bad english!
UPDATE:
My problem is solved. The problem is from my appcompat-v7 project. My friends give me another link of this project and then try it again, and the problem is solved!
And tnx to all of you for your answers. :)
Following are the steps:
Paste the android-support-v7-appcompat.jar that you have downloaded in libs folder of your project.
Right click on your project, select Build Path -> Configure build path.
Select Library Tab then Add Jar option and browse your recently added v7 jar and click OK
that's it :)
Update :
see here
There seems to be a problem with your external library.
Go to project properties by right clicking on project.
Select android from left menu.
check for the appcompat library in bottom window.
If it is not there, add it from a valid path. Clean the project and run it again.
Right Click on the HDArtworks project.
Go to Properties>>Android
Then in the Library section: If you find a red cross in AppCompat_v7 then Select and remove it.
Then click ok. Now come back to the Solution explorer and select the Appcompat_v7 project. and do the clean and build.
When the appcompat_v7 project error free then again Right Click on the HDArtworks project. Go to Properties>>Android
Then in the Library section: If you find a red cross in AppCompat_v7 then Select and remove it. and click Add select AppCompat_v7 and click OK.
Now Clean and Build the HDArtwork project. It should solve the problem
Offline Method :
1.
or maybe you need Offline added this package.Download with Below Link :
http://downloads.puresoftware.org/files/android/extras/support.zip
extract this in SDK-root Folder/extras/android something like that in Windows : ( for me )
C:\Program Files (x86)\Android\android-sdk\extras\android
well, goto Eclipse and add this in your project by below method :
Right Click on your project Properties > Android,
after Restart, it worked fine.
2.
also, you can Copy this Folder (appcompat) ;
//you can find it with this Address :
C:\Program Files (x86)\Android\android-sdk\extras\android\support\v7\appcompat
or after Added above Download link, now ;
copy this Folder (appcompat) to Workspace and added with Properties > Android to your project.
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 using the Android Studio v0.2.x.
I just created a new application with default settings: File->New Project->..., then step by step.
When I built it, it failed. The log is:
Android Source Generator: [MyApplication] AndroidManifest.xml file not found
But I have checked the source. It has the AndroidManifest.xml file. Any idea what causes this?
I solved the problem by re-importing the project. By doing so, Android Studio will re-generate the .iml files.
You can configure the location of the manifest file like this:
open the Project Structure dialog
go to "Modules" (in the left tree)
select "Android" in the middle column of the dialog
Now you see on the right side a list of files where you can pick the Manifest file.
Try cleaning the project , after that refresh and try to build again.
Project -> Clean
The following error occurs when I click on the imported google-play-services_lib in the package explorer:
The project description file (.project) for 'google-play-services_lib' is missing.
This file contains important information about the project.
The project will not function properly until this file is restored.
I have deleted Google Play Services from the SDK and re-installed it, but the same error occurs.
Edit: The problem has been solved. The google-play-services_lib folder was missing a file called .project
select the project google-play-services_lib and delete it from eclipse, but don't select delete from hard disk
Select File > Import > Android > Existing Android Code Into Workspace and click Next.
Select Browse.... Enter /extras/google/google_play_services/libproject.
if it still not working clean project and restart eclipse
source of my answer is redo step two in here
Worked for me when I imported without "Copy files to workspace"
What i have done. I have just copied the content of the
extras\google\google_play_services\libproject\google-play-services_lib
to google_play_services\ folder.
Now clean and build lay_service_lib and reference again that library to your project. Clean and Build your project again and DONE..
My WorkSpace is working now with this help.
Project has no default.properties file! Edit the project properties to set one. works Unknown Android Target Problem
This is the error i got on importing a package, wat could be the problem ???
Your question is not very clear but
try to do as follow:
right click on the project
then, click on properties
then choose Android
then select the target
if you still have the same problem, try to recreate the project from an existant source
file/new android project
in the window appearing, choose create from an existence source
then go select your old project
it should work now
Instead of importing project create a new project using existing source:
File > New > Android Project > Check "Create project from existing source"
This can occur if you are missing the project.properties file.