I am creating a app from a existing source (Gingerbread download softkeyboard) when it loads into eclipse it only loads empty folders, there isnt even a Java file other then the gen java file.
It says the manifest is missing but when I look into the Gingerbread folder outside of eclipse the manifest file is there along with a slew of other files that eclipse did not load. What could be the issue?
Also when I try to import (I've tried by root and archive) it gives an error of no projects found.
What you need to do is going into the folder that you imported your project from. Copy the files from it, including the Android Manifest file. Then go into the folder eclipse created in your workspace and paste the contents into it. This will overwrite the default folders that eclipse created. Go back into eclipse and f5 and you should see your files how up.
Related
I create a folder in android package path (in this path: app\build\generated\source\r\debug\android\ ) named "print" to put my files.
Application works well but after a while it removes automatically and must create and copy my files again.
I unchecked "Optimize imports on fly" in Settings>Editor>General>AutoImport but again deleted my file (same as checked).
I don't understand why it deletes that file and folder, You have any solution?
You have to put the file inside the src folder ,not the build folder.
screenShot showing where the file should be
You are putting your folder inside an Android generated folder. That will get regenerated every time you rebuild. You will have to put your files elsewhere. If they are media files, put them in a resource folder. Otherwise, assets works too.
I learned that in every project we have only 1 AndroidManifest.xml file.
BUT I found two of the same file name !!
One is in the root folder, and the other is in the /bin folder...
How come, and what shell I do ?
thx !
project/bin folder is for compiled (to bytecode) source code and project resources.
Do not worry about it, your IDE is handling content of bin folder automaticly.
When all code is compilled, your IDE (I think, it is Eclipse) can build your project.
When your project builds, it creates a copy of itself for execution in the bin folder.
You can ignore everything in the bin folder as its automatically generated and it doesn't require any edit directly of you.
The only AndroidManifest.xml you have to worry about is the one in your root project directory
One is created by the developer (the one in root folder) and the other one (the one in /bin) is created by eclipse or whatever IDE you are using.
The other one is a compiled binary. This is totally fine. You don't have to do anything. Continue developing!
I copied the code onto my computer via
svn checkout http://desk-clock.googlecode.com/svn/trunk/ desk-clock-read-only
into the folder C:\Programming\desk-clock-read-only
I try to create the project via File/New/Other/Android/Android Project from Existing Source.
I select the C:\Programming\desk-clock-read-only path.
For some reason eclipse only wants to import C:\Programming\desk-clock-read-only\res.
The source files are in C:\Programming\desk-clock-read-only so they don't get imported.
There's just an empty src folder.
What do I have to do to import the project correctly?
I dont't know how the developer of this project managed it to run this but usually the java files belong inside the src folder and the manifest definitely not inside the res folder. If you change this Eclipse(or the IDE of your preference) might recognize it, but you'll maybe get some errors because just putting the java files inside the src folder shouldn't solve it. You actually need a package. Check your manifest for that.
In my project I have added some folders that I want included in my project for source files. But no matter what I do, the source never gets recognized. I tried refreshing, clean up, restarting but nothing works. Here is the project's source folder:
I want the folders integration/android added. This is how it is showing up in Eclipse:
And here is what my build configuration looks like:
I could be wrong, but it looks like you have added them as a folder, but not actually added the folder to your project.
The folder should show up in your src folder in the solution explorer window under your other package.
Try creating the package name in your project, then move all the src files into it.
And when its in the src folder, in its correct package, you dont need to include any extra build paths.
(You can have multiple packages in a single application)
Importing someone elses project that is over 2 years old is almost always problematic. I found the easiest solution just to create a fresh project and add the files manually from the old project.
Hi i have erorr "R cannot be resolved" everytime when i create android project in eclipse under ubuntu with android sdk. In windows everything ok. What's wrong?
R is a Java class created in source form by the build process. It contains definitions of locally unique numbers to refer to the assets under your project's 'res' directory.
See if you have a 'gen' folder in the route of your Eclipse project. Then look in this folder and see if you have R.java class under a package structure representing the same as the 'package' attribute in the manifest tag in your AndroidManifest.xml.
There is a common problem where the 'gen' folder gets deleted by Project->Clean, or where a project is copied from one workstation to another it seems sometimes the 'gen' folder does not get generated. You could try making a 'gen' folder of your own in your project root to see if this fixes it.
If you are referring to this file from a Java file with a package different to this you will have to explicitly 'import' it, but Eclipse should prompt you with assistance about this.
There is one useful trick, you just go to strings.xml and then press space than back space and CRTL+S this will rebuild your code and also generate everything in gen folder that is connected with strings.xml