Jump to content
Changes to the Jaspersoft community edition download ×

Binary XMl file error


potnuru.sunil

Recommended Posts

 

Hi community
 
I am getting this error when run the application in android
 
 
 
 
11-23 12:03:24.203: E/AndroidRuntime(1004): FATAL EXCEPTION: main
11-23 12:03:24.203: E/AndroidRuntime(1004): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jaspersoft.android.jaspermobile/com.jaspersoft.android.jaspermobile.activities.ServerProfilesManagerActivity}: java.lang.RuntimeException: Binary XML file line #32: You must supply a layout_width attribute.
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.app.ActivityThread.access$600(ActivityThread.java:123)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.os.Handler.dispatchMessage(Handler.java:99)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.os.Looper.loop(Looper.java:137)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.app.ActivityThread.main(ActivityThread.java:4424)
11-23 12:03:24.203: E/AndroidRuntime(1004): at java.lang.reflect.Method.invokeNative(Native Method)
11-23 12:03:24.203: E/AndroidRuntime(1004): at java.lang.reflect.Method.invoke(Method.java:511)
11-23 12:03:24.203: E/AndroidRuntime(1004): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
11-23 12:03:24.203: E/AndroidRuntime(1004): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
11-23 12:03:24.203: E/AndroidRuntime(1004): at dalvik.system.NativeStart.main(Native Method)
11-23 12:03:24.203: E/AndroidRuntime(1004): Caused by: java.lang.RuntimeException: Binary XML file line #32: You must supply a layout_width attribute.
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:491)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:5318)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.view.ViewGroup$MarginLayoutParams.(ViewGroup.java:5439)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.widget.LinearLayout$LayoutParams.(LinearLayout.java:1776)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:1700)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:56)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.view.LayoutInflater.rInflate(LayoutInflater.java:741)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:823)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.view.LayoutInflater.rInflate(LayoutInflater.java:729)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.view.LayoutInflater.rInflate(LayoutInflater.java:742)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:823)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.view.LayoutInflater.rInflate(LayoutInflater.java:729)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
11-23 12:03:24.203: E/AndroidRuntime(1004): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.app.Activity.setContentView(Activity.java:1835)
11-23 12:03:24.203: E/AndroidRuntime(1004): at roboguice.activity.RoboListActivity.setContentView(RoboListActivity.java:58)
11-23 12:03:24.203: E/AndroidRuntime(1004): at com.jaspersoft.android.jaspermobile.activities.ServerProfilesManagerActivity.onCreate(ServerProfilesManagerActivity.java:74)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.app.Activity.performCreate(Activity.java:4465)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
11-23 12:03:24.203: E/AndroidRuntime(1004): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
11-23 12:03:24.203: E/AndroidRuntime(1004): ... 11 more
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Looks like you did some modifications in this app and you missed to specify a "layout_width" attribute for layout that used in ServerProfilesManagerActivity.

Also, if you're using styles (like in original app), you need to make sure that your custom styles are included in /res/values/styles.xml.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...