I am attempting to create an android project through eclipse as I have many other times, but today Im having a strange problem. After choosing new project - Android project - setting my name and target SDK - icon/empty activity etc. When I have to name the empty activity I enter a name and if I click Finish nothing happens and the name activity menu stays there. The next button is greyed out.
The only thing I can do is cancel out from there. In my project explorer the project HAS been created though. There are no src files, no activity or anything really. A small manifest file and some empty resource files.
Im not familiar with the icons associated with these files and folders. I dont know why this is happening. I have tried "Help" -> "Install new software" and install from url: https://dl-ssl.google.com/android/eclipse/ and have also tried updating and install all current SDK's but nothing seems to work.
Has anyone else experienced anything similar?
Related
Everything was good. Today, I opened Android Studio, and every kotlin class code and even layout and value files turned into another format like XML. I don't know what kind of strange reason it is.
I have been trying to fix this for 2 days now. even though I opened my files into some other editors(sublime, notepad)but the problem is still there.
I am attaching some screenshots MainActivity.kt.
I also tried these couple of things below
File > Sync project with Gradle files. Result: didn't solve my problem.
File > Invalidated cache/restart. Result: didn't solve my problem.
Try this.
Right-click on the file (e.g.: MainActivity.kt),
then click on "Open In", it will open your explorer window.
At this point open that file, which now you see in your explorer window, in a notepad, make a change (e.g.: adding a space where there is already a blank space)
and save the file.
Now Android Studio should see it correctly or, if not, try to restart Android Studio.
If that works, do the same for all suddenly-changed files.
I was working around with my Project when I noticed appcompat_v7. I didn't know what exactly that was, so I just deleted it. And now, none of my projects are generating R.java, even after cleaning and rebuilding. Did everything which I could find on the net, but all in vein.
I managed to get back appcompat_v7 by making a new project, but even that wasn't generating R.java. I've messed it all up now, what to do next? How to get back R.java?
Strange fix but this workes
Right-click on the "appcompat_v7" project and go to -> Properties -> Android.
Your target build should already be set at the latest build (in my case Android 5.0.1). Click any other android package (apart from its current target) and click "Apply". Click "Ok" to close the box.
Re-open the Properties box by the same method but this time check the latest build (in my case Android 5.0.1) as the Project Build Target. Click "Apply", then "Ok" to close the box.
Clean the appcompat_v7 project. You'll probably need to clean/build all other projects that reference this library.
This solved it for me.
I installed Eclipse luna, Android SDK, ADT (all latest) & set up everything.
Even after re-starting Eclipse I don't see Welcome to Android screen. I can only see Welcome Screen. But the settings required for Android & Java were all set I believe so, so the installation might be done properly only.
I tried creating Android projects, on last dialog i.e. select Activity type, I select, click Finish ; the screen blinks and the same page is seen. I tried with variations (using different Activity type) & create 4 projects, can see the projects created, also the activity java file in src folder is created. But on Eclipse Don't see anything. But on top title, I see the project name.
Similarly to chk with I tried creating Java project, same thing. It seems somethign is wrong with Eclipse. Other than WElcome Screen I don't see anything. I even tried to open just a java file - file name is seen on top, but file contents not seen on screen.
Image of how I am creating project & its results :
After clicking Finish & Creating files, etc, again Step 5 is on focus and on back the Initial Welcome Screen is only seen.
If at all I click Finish again, then I get error that ApplicationName already exists.
See the Folders & Files created after clikcing Finish
The files, activity is created. So the Performing Changes has also done its work, but the view is lost ???
This is where I can't get what is happening & Why? What is going wrong here. I have only Android 5.0.1 API 21. I don't have 2.2 - Is that the reason !
Created Manifest File :
- - - -
Can someone please help me with this. I am stuck up and am in hurry to start working.
Any help is highly appreciated.
Thanks
Have you tried reset perspective? (Window -> Reset perspective)
Thanks to all. I got it solved.
I saw 2 icons on the top left below menu bar. On clicking that I could see the project explorer & other windows. And finally closed the Welcome Screen.
Thanks a lot for everybody's effort to help me solve my problem.
Thanks once again.
Then i have installed all file of SDK and i have created the New Android Application Project, I saw the src is empty, so there wasn't the MainActivity and a lot of file like the apk or ActivityMain.
I cleaned a lot of time the project and "Build automatically" is flagged.
Eclipse doesn't "run" the apk because there isn't...
Anyone know what the problem could be?
You might have unchecked the "Create activity" box in the New Android Application Project wizard. To generate a new Activity, right click the project and press "New" -> "Other" -> Expand "Android" -> "Android Activity". Now a wizard for creating an Activity should appear.
Whenever you build your project after that, an .apk file should be created.
Try updating.
Click "Help" -> "Install new software" and install from https://dl-ssl.google.com/android/eclipse/
I had the same issue before. It seems that the version I downloaded was not up to date.
I was also facing this problem, but i figured out. I choosed Empty Activity in step 6 instead of Blank Activity, rest of steps are same as yours.
1. New Android Application Project
2. Selected API 19 4.4 KitKat for Minimum, target and compile with SDK.
3. Theme Holo Light
4. Uncheck create custom launcher
5. Make sure create activity IS checked, everything else left alone
6. Create activity checked on next screen and selected Empty Activity
7. Activity Name and Layout Name left as defaults.
8. Click finish..
I hope this will work for you too.
I've downloaded the ADT Kit from the Android Developer Website, but if I try to create a new Project (New-> Android Application Project), the Manifest file is not created. In the console window, I get the message:
'[2013-12-13 15:50:08 - package name] AndroidManifest.xml file missing!'
How can I solve the problem?
I already tried to clean the Project and run again, but the xml file isn't created. I tried also to uninstall (delete) the SDK and download it again, but there is the same mistake.
I found the solution:
First, I Updated my SDK, but it wasnt the problem. The problem was the character 'ö' in the project / package name. Eclipse didn't create the Manifest because of him.
It's a German App...
To fix this problem, right click the project or edited resource and select “Refresh”.
If you edit outside of Eclipse a lot, you can enable auto-refresh by going to Window->Preferences menu, then in the Preferences dialog box, select General > Workspace.
Check the “Refresh automatically” box.
and even in the eclipse in the top menu bar you can find search-->check the automatically build