Hi, There is an error in your XML file, at line no 54. Check it out. Or paste that part of your xml. Also, mention the API version you are using.
Thanks, Kumar Bibek http://tech-droid.blogspot.com On Dec 8, 1:43 am, Vijay <vijay.meenakshisunda...@gmail.com> wrote: > I get a ResourceNotFoundException from > com.google.android.location.ConfirmAlertActivity. But I'm sure > secondary_text_dark.xml is in my base/core/res/res/color. Does anyone > know the reason? > > Here is my log: > > E/AndroidRuntime( 5629): Uncaught handler: thread > android.server.ServerThread exiting due to uncaught exception > E/AndroidRuntime( 5629): *** EXCEPTION IN SYSTEM PROCESS. System will > crash. > E/AndroidRuntime( 5629): java.lang.RuntimeException: Unable to start > activity ComponentInfo{com.google.android.location/ > com.google.android.location.ConfirmAlertActivity}: > android.view.InflateException: Binary XML file line #54: Error > inflating class java.lang.reflect.Constructor > E/AndroidRuntime( 5629): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java: > 2401) > E/AndroidRuntime( 5629): at > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: > 2417) > E/AndroidRuntime( 5629): at android.app.ActivityThread.access$2100 > (ActivityThread.java:116) > E/AndroidRuntime( 5629): at android.app.ActivityThread$H.handleMessage > (ActivityThread.java:1794) > E/AndroidRuntime( 5629): at android.os.Handler.dispatchMessage > (Handler.java:99) > E/AndroidRuntime( 5629): at android.os.Looper.loop(Looper.java:123) > E/AndroidRuntime( 5629): at com.android.server.ServerThread.run > (SystemServer.java:411) > E/AndroidRuntime( 5629): Caused by: android.view.InflateException: > Binary XML file line #54: Error inflating class > java.lang.reflect.Constructor > E/AndroidRuntime( 5629): at android.view.LayoutInflater.createView > (LayoutInflater.java:512) > E/AndroidRuntime( 5629): at > android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:564) > E/AndroidRuntime( 5629): at android.view.LayoutInflater.rInflate > (LayoutInflater.java:617) > E/AndroidRuntime( 5629): at android.view.LayoutInflater.rInflate > (LayoutInflater.java:620) > E/AndroidRuntime( 5629): at android.view.LayoutInflater.rInflate > (LayoutInflater.java:620) > E/AndroidRuntime( 5629): at android.view.LayoutInflater.inflate > (LayoutInflater.java:407) > E/AndroidRuntime( 5629): at android.view.LayoutInflater.inflate > (LayoutInflater.java:320) > E/AndroidRuntime( 5629): at android.view.LayoutInflater.inflate > (LayoutInflater.java:276) > E/AndroidRuntime( 5629): at > com.android.internal.policy.impl.PhoneWindow.setContentView > (PhoneWindow.java:334) > E/AndroidRuntime( 5629): at > com.android.internal.app.AlertController.installContent > (AlertController.java:204) > E/AndroidRuntime( 5629): at > com.android.internal.app.AlertActivity.setupAlert(AlertActivity.java: > 74) > E/AndroidRuntime( 5629): at > com.google.android.location.ConfirmAlertActivity.onCreate > (ConfirmAlertActivity.java:50) > E/AndroidRuntime( 5629): at > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: > 1123) > E/AndroidRuntime( 5629): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java: > 2364) > E/AndroidRuntime( 5629): ... 6 more > E/AndroidRuntime( 5629): Caused by: > java.lang.reflect.InvocationTargetException > E/AndroidRuntime( 5629): at > com.android.internal.widget.DialogTitle.<init>(DialogTitle.java:38) > E/AndroidRuntime( 5629): at > java.lang.reflect.Constructor.constructNative(Native Method) > E/AndroidRuntime( 5629): at java.lang.reflect.Constructor.newInstance > (Constructor.java:446) > E/AndroidRuntime( 5629): at android.view.LayoutInflater.createView > (LayoutInflater.java:499) > E/AndroidRuntime( 5629): ... 19 more > E/AndroidRuntime( 5629): Caused by: android.content.res.Resources > $NotFoundException: File res/color/secondary_text_dark.xml from color > state list resource ID #0x0 > E/AndroidRuntime( 5629): at > android.content.res.Resources.loadColorStateList(Resources.java:1873) > E/AndroidRuntime( 5629): at > android.content.res.TypedArray.getColorStateList(TypedArray.java:303) > E/AndroidRuntime( 5629): at android.widget.TextView.<init> > (TextView.java:380) > E/AndroidRuntime( 5629): at android.widget.TextView.<init> > (TextView.java:320) > E/AndroidRuntime( 5629): ... 23 more > E/AndroidRuntime( 5629): Caused by: android.content.res.Resources > $NotFoundException: File res/color/secondary_text_dark.xml from xml > type colorstatelist resource ID #0x0 > E/AndroidRuntime( 5629): at > android.content.res.Resources.loadXmlResourceParser(Resources.java: > 1980) > E/AndroidRuntime( 5629): at > android.content.res.Resources.loadColorStateList(Resources.java:1868) > E/AndroidRuntime( 5629): ... 26 more -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en