R.Java id error - android

can some help me here??
i am getting error in following line of code in R.java file
public static final int login_user-fb=0x7f0d00bf;
the identifier "-" is creating problem as you all know.
i have not declared this id anywhere in my project, i am using facebook sdk in my project since than it is giving error.
things i have done to rectify the error till now.
1.removed facebook sdk and rebuilt projct.
2.clean project
3.as you know i cannot edit R.java file, i tried doing everything but every time it is creating that code in my R.java file as whenever i run my project.
please help me out here.

Could you please check through your xml-files, and see that you have the correct naming convention for all your id's etc.
I am thinking of these type of naming errors:
android:id="#+id/text-view-example"
and rename them to:
android:id="#+id/text_view_example"
OR
Search in your project by right-clicking on 'app', in your left side panel (android-view), and click on 'Find in Path', and then type in that exact query, login_user-fb, and then replace them to login_user_fb.

Related

(Build failed 'Xcodes output') The getter 'onChanged00' isn't defined for the class 'OTPTextField

I haven't worked on my app for 2 days and all of a sudden, when running the app, I get this error:
debug console
I haven't touched the code and it was working fine 2 days ago.
The links in the error...
otp_field file
otp_field file
...point to the otp_field.dart file(which I never opened), with the error being The getter 'onChanged00' isn't defined for the class 'OTPTextField'.
I'm not sure how this happened and can't seem to solve this. I updated the otp_field entry in the pubspec.yaml file, but this did not work either.
pubspec.yaml file
(This also happens when I run using the android emulator)
What am I missing here? Would be great if you could point me in the right direction. Thanks in advance.

How to fix "No resource found that matches the given name (at 'value' with value '#integer/google_play_services_version')"

I am getting the following error when I build my Android App project in Visual studio 2015.
No resource found that matches the given name (at 'value' with value '#integer/google_play_services_version')
These lines are located under:
obj\Debug\android\manifest\AndroidManifest.xml
There is 3 entires of it inside the AndroidManifest file.
I have downloaded the google play service from the SDK Manager.
Should I reference anything to my solution?
I already has Xamarin.GooglePlayServices.Base, Xamarin.GooglePlayServices.Basement, Xamarin.GooglePlayServices.Maps Referenced.
Thanks.
you have create integer.xml file inside value folder and define your Integer to that place it will solve your problem.
Try doing and a clean all and check that ALL the content under the obj has been deleted and then perform a build all.
If that does not work:
I would try removing the ~GooglePlayServices~ nugets/references and re-add just the Xamarin.GooglePlayServices.Mapsnuget which will bring in the ~Basement and ~Base libraries.
You should end up with a generated manifest that only has one reference to google_play_services_version and that resource should be picked up from Debug/android/XXX/YYYYYY/ZZZZZ/R.java:
i.e.
public static final int google_play_services_version=0x7f070000;
I added several new packages. One of the package is the reason of the error. I have to check one by one and caught the one causing error. Removing that package is all I need to do to resolve the error.

why am I getting the error "error executing aapt "

I'm getting the error executing aapt :return code 1073741819 due to which
.apk file is not generated how to fix this. How to fix if r.java file is missing
It could be a syntax or formatting error in one of the XML files. I just got this error code (it's actually negative), and I checked all the #string references and they were OK. Eventually I figured out it was because of this item in a menu XML file:
<item
android:id="#+id/action_stop"
android:orderInCategory="100"
android:icon="#drawable/ic_action_stop"
android:showAsAction="ifRoom | withText"
android:title="#string/action_stop"/>
However, the spaces around the | apparently aren't valid (XML isn't Java...). Eclipse didn't catch it as an error, but aapt crashed without giving a reason when it saw it. Not particularly graceful handling, by both Eclipse and aapt. Removing the extra spaces made everything work.
The problem with missing entries in strings.xml apparently produces error code -1073741816, not -1073741819. You have to look closely, but the last digit is different.
I'm not saying the problem is definitely some sort of syntax error. But it's another possibility that could be investigated.
I got this error when I had deleted a #string entry that was being referenced in a menu node xml resource.
I had this error and spent time trying to find a solution.
Finally the solution for this error which is: -1073741819 ( check the digits ) was a library was missing from: Properties -> Android -> Library
I just added the missing libraries and got this error resolved.
I got the same problem. What helped me was changing the Project Build Target
Properties->Android->Project Build Target

Android - No Resource Found that matches the given name Errors

I am learning android and I have downloaded an open source app named Astrid and was deploying in eclipse. I got the "No resource found that matches the given name"#string/name_hint". I checked the Strings.xml and found that this label was not available in there. There is another file called String-legacy.xml and in that this value is set. Eclipse is not referring to string-legacy.xml and throwing these errors.
I copied the values from strings-legacy.xml and pasted it to strings.xml and this error was removed. I am sure this is not the right approach...there should be some setting for me to tell eclipse to read from string-legacy.xml
anybody have any thoughts on the same, please advice. Thanks
Harry

Content Provider Resources$NotFoundException

Created a profile using content provider. After running it correctly, added 3 fields to the table. But now its not working correctly.It shows an error like android.content.res.Resources$NotFoundException: String resource ID #0x4d2.Any solution?
If you are using Eclipse, try to do Project|Force Clean. If you are working outside of Eclipse, run ant clean. Your error message is probably because your resources, the generated R.java file, and some of your other compiled code are collectively out of sync.

Categories

Resources