appcombat_v7 and missing AndroidManifest.xml - android

I just managed to successfully install Eclipse and even set up an AVD.
To get started I created a project, but there are two things I wondered about.
Eclipse created a folder appcombat_v7 above my actual project. I've never seen this happen before (like in youtube-videos, or so)
The other thing is, when I wanted to run my project on my AVD it said there was an error that I have to fix first. Eclipse told me AndroidManifest.xml is missing. It really was, I cleaned the project, that solved the issue. I wonder why it was missing though. Is that normal?
Thanks in advance. Philip

This appcombat_v7 is something that comes with the latest version of SDK, this happedned with my workspace also when i updated to the SDK.
Also it automatically adds the fragment part.

Related

Not Resolving/Importing Any Class Android Studio

Okay its weird error though, but I will explain it, actually I did remove "emulator" folder from my android SDK folder because it's causing android studio to slows down on ita knees, and when I did it, it throws a Gradle related error like "Can not read from some file", well for that i did reinstall Gradle 4.1 and error gone, but the weirdest problem occurred, now i can not import any class except appcompatactivity and constraint layout which I implemented in build.gradle , for those who wonder what I have messed up with the Android SDK folder, I want to tell you guys I just downloaded everything from scratch except having JDK 1.8.0_171. I mean I can not even import core java classes or anything, studio is pointing out for "please specify android SDK" or something, but hey I have already fresh SDK, what will be the issue, help me guys, and I swear I will never mess with SDK, am running out of time, already wasted too much time with this, Thank You !😊
Okay so finally i deleted C:/users/username/.AndroidStudio3 folder with all files in it! Works like charm ! An stupid solution for a stupid problem, btw problem solved ! Thanks everyone !!😊😊
Close the current project and go to project location directory and delete
.idea folder
You can open your project again. This worked for me and problem comes most often when you are working with VCS. And this problem is not associated with android component classes but also to the libraries, both shows the same error.
You need specify the SDK in Modules section in Project Settings.
Right Click your Project Name in Android Studio and Select Settings..
or
Perform these three steps
Open gradle.buld in your app module
Change minSdkVersion and sync gradle
Revert back your minSdkVersion and sync gradle again

R.java not generating

I know there have been several problems like this, but in all of the threads that I have seen the problem is that the .xml files contain errors(or are named with capital letters or something).
In my case, eclipse won't even generate a R.java when I create a new project that only includes the standard "hello world" example files.
I have restarted, re-installed and recreated projects, but nothing seems to work so in my desperation I am hoping someone has seen a similar problem and knows a solution.
If you run a clean on the project it should regenerate all the generated java files, namely R.
In Eclipse, under the Project menu, is an option build automatically. That would help you build the R.java file every time modifications are made. The Clean... option is also there under Project.
I noticed a very similar problem upon upgrading the version of my Android Development Tools to 22. The solution was to install all updates for ADT by opening...
Help -> Install New Software
... and using the update site...
https://dl-ssl.google.com/android/eclipse/
... to install all outstanding Developer Tools updates.
First of all thanks for answering.
It turned out that after installing the ADT, some SDK packages had not installed, (even though I distinctly remember choosing to install them). I installed those packages and everything seems to be working fine.
Thank you

Problems after updating to Android SDK 20 in Eclipse

I updated tools in my Eclipse first by going to Help->Check For Updates and installing everything i that it suggested. Then by going to Window->Android SDK Manager and updating multiple things including my SDK version.
After I have finished my update all my Android projects got a nice red box with an x inside it. I explored the projects and noticed that none of them had any errors inside the project just the project itself had the error icon. I searched online and i found that other people had similar problems. So i thought i found the solution. Alas after cleaning and building the project I got additional error icons next to multiple java files in my projects. Eclipse cannot locate the automatically generated R files when it tries to import them and all the imports are selected red.
I tried deleting the whole content of .android directory (starting with specific few files then the whole content) but that did not bring desired results.
So i have deleted the newly generated files and restored all the old ones.
When I clean and build the projects again all the errors disappear but only until I try to run the project again and then same error appears:
Your project contains error(s), please fix it before running it.
I have also found a related question. It claims that there must be a problem with my xml files. I did not modify any of my xml files since updating the tools so I dont know what could cause them to have errors.
Any ideas as to what is going on??
I've found that eclipse is now picking up errors that it didn't pick up before, because they updated lint, you may have to check all your files and see if there is an error because of this, if it doesn't work try removing Android from the build and reattach it, clean the project, build project, make sure the activities are using the right R files and check what lint says, its like a little square with a tick in it I think.
I had exactly the same problem, solved by removing any imports of R in my code and then cleaning the project
Strangest thing just happened. Even though I have done this 2 times before I have again deleted all my files in .android folder exited my Eclipse and opened it back up again. All the errors were gone and most of my projects work correctly. I have spend a lot of time on this problem and i dont know how it got resolved but Im glad its working again.

Eclipse - Android not auto-generating R class

have an odd one..
Using Eclipse Juno, and everything was working fine for the last couple months. At some point yesterday, while Eclipse was cleaning my project, something crashed - popped up the Windows error reporting. (Didn't catch the name of what crashed..)
Now, I have no R.java class in /gen, and nothing I've tried will generate it. On top of that, when doing a clean rebuild of the project, the Output window remains blank. (No errors, no status message.. nothing.)
Tried just about everything - including the latest which included reinstalling Eclipse and then ADT. Still hadn't helped. (I have NOT tried clearing the workspace metadata yet, will do that soon.)
Any thoughts on what else to check?
--Fox.
Edit: Updating a random file - either .java or an XML layout/drawable does not have any effect, still nothing. Also, removing saved preferences from workspace .metdata data didn't have an effect either.
Edit 2: Okay - not sure WHY it was happening, but creating a new project and the issue was corrected.
So somehow either the project settings (.settings or project.settings) must have gotten corrupted. I have the origianl project still, and am curious to see why it happened, but creating a new project and copying sources and resources over, and no more issue.
Thanks to all that offered comments - goes to show that any kind of little corruption can cause strange things to happen.
The reason in 99% of the cases is that you are missspelling something in some xml file.
The R class file won't appear until all xml files are correct.
I suggest look carefully into your XMLs for a very small syntax error.
Or try taking off 1 by 1, until you figure it out wich one is the problematic.
:) kind of annoying, i know.
If you don't have any errors in your xml files, you tried to reboot your eclipse, your emulator, then open the sdk manager and apply all update. My R have finally been generated.
I found this happened after updating my Android SDK Manager and related eclipse plugins. I am running in Ubuntu, and it would not let me update the plugins unless I ran as the root user (using "sudo eclipse")
This left some of the Android SDK Manager items, and the eclipse plugins, owned by root. This stopped the "clean" working on the project - it must have been something that had been added as the root user, and not accessible as my normal user.
I had to "chown" my eclipse directory and my Android SDK Manager directory so it was owned again by my normal user:
cd /home/myacct/android-sdk/
chown -R myacct:myacct *
After this the clean option worked, and R was regenerated.
This was it for me:
In your AndroidManifest.xml file, make sure that you have the SDK installed for the version number in android:minSdkVersion="##".
You can install SDKs from the Android SDK Manager, found under Window -> Android SDK Manager in Eclipse / ADT.
For me it ended up being gen/com/(appname)/R.java missing.
Not in my recycle bin, not anywhere... just took a surprise vacation and never returned.
I had a backup copy in a different folder. Copied it back and all's good now

Android Eclipse Error "Android Packaging Problem"

I am getting an error in my Problems tab for my Android Project in Eclipse. The error is "Android Packaging Problem" with an Unknown location.
Unknown Error NullPointerException
I cannot determine what this problem is. My project was working a few hours ago. The only change I made was to add a public interface ITrackDao to my project and implement it. There are no errors associated with this.
I am not even sure where to begin to look. I cannot launch the application. Can someone give me an idea on what area I can look into?
Thanks
Peter
I was confronted with this problem too, and I solve it by clicking Menu->Project->Clean. The error goes away after cleaning the project.
I had a similar error - but instead of a NullPointerException it was an InvalidoperationException from somewhere in Eclipse.
A Project > Clean solved that one too.
Cleaning the project was not enough for me. I had to first remove a <classpathentry/> that specified the interface from the .classpath file and a <linkedResources>'s <link> to the same interface in the .project file before cleaning the project would remove the error.
I had the same problem. I tried the clean up option but for some reason it still did not work. I copied my project and pasted it as a new project and that cleared it up for me.
I had this same error in an imported project and cleaning was not helpful, however by deleting the library references in the .project and .classpath eclipse files, and then relinking things and cleaning, I was able to get things building again.
First I should recommend that you start using subversion or other versioning on your apps, that way you can pinpoint every change between each iteration. If your project was in subversion you could compare with previous and then pinpoint what changed.
With that said, I would also check through any recently changed layout XML, make a change and hit save and make sure you don't get errors. I've experienced strange null pointer/errors in Eclipse at times when my layout was fine, and by making a change and saving, the errors go away.
I ran into the same problem coz of my blackberry sdk installation. I think it messed up my eclipse 3.6.2 install . I just reinstalled eclipse and it all worked like a charm
I worked with a SVN project and one installation have eclipse Galileo. The other have updated to Helios.
In Helios I found this problem and clean is no solution.
After Galileo reinstall (all installations equals now), I deleted workspace and a new checkout resolved the problem.
I had the same problem. I tried the clean up option but for some reason it still did not work. I solved this problem using this step
Project name ->Android tool ->Add support Library

Categories

Resources