[android-developers] Even with Min SDK version, building app against 2.2 breaks 1.5?
Hi, I just built my app against the new SDK released yesterday and it seems to break when I run the app in my old 1.5 profile in regards to packaging assets. I haven't changed anything about my application and it ran on API 3 - 7. However just increasing that build to 8 seems to change something with the way assets are packed. Here is a stack trace with the app trying to load a resource that it says it cannot fine. If I recompile the same code in the same workspace against API 8, it cannot find some of my drawables. Anything that seems wrong or is this a bug? Min Version set to 3 and targeted at 8 is all I have changed. 05-21 13:35:25.550: ERROR/AndroidRuntime(6127): Uncaught handler: thread main exiting due to uncaught exception 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): android.view.InflateException: Binary XML file line #1: Error inflating class java.lang.reflect.Constructor 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.view.LayoutInflater.createView(LayoutInflater.java:512) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java: 56) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:562) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.view.LayoutInflater.inflate(LayoutInflater.java:385) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at com.yelp.android.ui.panels.businesssearch.BusinessAdapter.getView(BusinessAdapter.java: 126) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.widget.HeaderViewListAdapter.getView(HeaderViewListAdapter.java: 191) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.widget.AbsListView.obtainView(AbsListView.java:1269) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.widget.ListView.makeAndAddView(ListView.java:1623) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.widget.ListView.fillDown(ListView.java:607) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.widget.ListView.fillFromTop(ListView.java:664) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.widget.ListView.layoutChildren(ListView.java:1481) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.widget.AbsListView.onLayout(AbsListView.java:1113) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.view.View.layout(View.java:6133) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1119) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:998) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.widget.LinearLayout.onLayout(LinearLayout.java:918) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.view.View.layout(View.java:6133) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.widget.FrameLayout.onLayout(FrameLayout.java:333) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.view.View.layout(View.java:6133) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.widget.FrameLayout.onLayout(FrameLayout.java:333) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.view.View.layout(View.java:6133) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.widget.FrameLayout.onLayout(FrameLayout.java:333) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.view.View.layout(View.java:6133) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.view.ViewRoot.performTraversals(ViewRoot.java:929) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.view.ViewRoot.handleMessage(ViewRoot.java:1482) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.os.Handler.dispatchMessage(Handler.java:99) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.os.Looper.loop(Looper.java:123) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.app.ActivityThread.main(ActivityThread.java:3948) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at java.lang.reflect.Method.invokeNative(Native Method) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at java.lang.reflect.Method.invoke(Method.java:521) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:782) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at dalvik.system.NativeStart.main(Native Method) 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): Caused by: java.lang.reflect.InvocationTargetException 05-21 13:35:25.590: ERROR/AndroidRuntime(6127): at android.widget.RelativeLayout.init(RelativeLayout.java:145) 05-21
Re: [android-developers] Even with Min SDK version, building app against 2.2 breaks 1.5?
I just built my app against the new SDK released yesterday and it seems to break when I run the app in my old 1.5 profile in regards to packaging assets. I haven't changed anything about my application and it ran on API 3 - 7. However just increasing that build to 8 seems to change something with the way assets are packed. Here is a stack trace with the app trying to load a resource that it says it cannot fine. If I recompile the same code in the same workspace against API 8, it cannot find some of my drawables. Anything that seems wrong or is this a bug? Do a full rebuild of the project. In Eclipse, I think Project|Force Clean does this. Outside of Eclipse, ant clean does this. Most likely, the resource IDs changed, but Java code that inlined those resource IDs did not. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- 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