Giter VIP home page Giter VIP logo

Comments (4)

BraisGabin avatar BraisGabin commented on July 20, 2024

Works for me. Can you attach the exception stack trace?

from tablefixheaders.

ashx1 avatar ashx1 commented on July 20, 2024

Hi,

Here is the stack trace:

03-15 09:32:21.229: E/dalvikvm(3806): Could not find class 'com.inqbarna.tablefixheaders.TableFixHeaders', referenced from method com.inqbarna.tablefixheaders.samples.StyleTable.onCreate
03-15 09:32:21.229: W/dalvikvm(3806): VFY: unable to resolve check-cast 18 (Lcom/inqbarna/tablefixheaders/TableFixHeaders;) in Lcom/inqbarna/tablefixheaders/samples/StyleTable;
03-15 09:32:21.239: D/AndroidRuntime(3806): Shutting down VM
03-15 09:32:21.239: W/dalvikvm(3806): threadid=1: thread exiting with uncaught exception (group=0x40018578)
03-15 09:32:21.249: E/AndroidRuntime(3806): FATAL EXCEPTION: main
03-15 09:32:21.249: E/AndroidRuntime(3806): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.inqbarna.tablefixheaders.samples/com.inqbarna.tablefixheaders.samples.StyleTable}: android.view.InflateException: Binary XML file line #2: Error inflating class com.inqbarna.tablefixheaders.TableFixHeaders
03-15 09:32:21.249: E/AndroidRuntime(3806): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651)
03-15 09:32:21.249: E/AndroidRuntime(3806): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
03-15 09:32:21.249: E/AndroidRuntime(3806): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
03-15 09:32:21.249: E/AndroidRuntime(3806): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
03-15 09:32:21.249: E/AndroidRuntime(3806): at android.os.Handler.dispatchMessage(Handler.java:99)
03-15 09:32:21.249: E/AndroidRuntime(3806): at android.os.Looper.loop(Looper.java:130)
03-15 09:32:21.249: E/AndroidRuntime(3806): at android.app.ActivityThread.main(ActivityThread.java:3687)
03-15 09:32:21.249: E/AndroidRuntime(3806): at java.lang.reflect.Method.invokeNative(Native Method)
03-15 09:32:21.249: E/AndroidRuntime(3806): at java.lang.reflect.Method.invoke(Method.java:507)
03-15 09:32:21.249: E/AndroidRuntime(3806): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
03-15 09:32:21.249: E/AndroidRuntime(3806): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
03-15 09:32:21.249: E/AndroidRuntime(3806): at dalvik.system.NativeStart.main(Native Method)
03-15 09:32:21.249: E/AndroidRuntime(3806): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class com.inqbarna.tablefixheaders.TableFixHeaders
03-15 09:32:21.249: E/AndroidRuntime(3806): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:581)
03-15 09:32:21.249: E/AndroidRuntime(3806): at android.view.LayoutInflater.inflate(LayoutInflater.java:386)
03-15 09:32:21.249: E/AndroidRuntime(3806): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
03-15 09:32:21.249: E/AndroidRuntime(3806): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
03-15 09:32:21.249: E/AndroidRuntime(3806): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:209)
03-15 09:32:21.249: E/AndroidRuntime(3806): at android.app.Activity.setContentView(Activity.java:1657)
03-15 09:32:21.249: E/AndroidRuntime(3806): at com.inqbarna.tablefixheaders.samples.StyleTable.onCreate(StyleTable.java:16)
03-15 09:32:21.249: E/AndroidRuntime(3806): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-15 09:32:21.249: E/AndroidRuntime(3806): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
03-15 09:32:21.249: E/AndroidRuntime(3806): ... 11 more
03-15 09:32:21.249: E/AndroidRuntime(3806): Caused by: java.lang.ClassNotFoundException: com.inqbarna.tablefixheaders.TableFixHeaders in loader dalvik.system.PathClassLoader[/data/app/com.inqbarna.tablefixheaders.samples-1.apk]
03-15 09:32:21.249: E/AndroidRuntime(3806): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
03-15 09:32:21.249: E/AndroidRuntime(3806): at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
03-15 09:32:21.249: E/AndroidRuntime(3806): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
03-15 09:32:21.249: E/AndroidRuntime(3806): at android.view.LayoutInflater.createView(LayoutInflater.java:471)
03-15 09:32:21.249: E/AndroidRuntime(3806): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
03-15 09:32:21.249: E/AndroidRuntime(3806): ... 19 more

Thanks.

from tablefixheaders.

BraisGabin avatar BraisGabin commented on July 20, 2024

Really strange. It seems that you don't import the project properly. How do you import the library? http://stackoverflow.com/a/8281477/842697

from tablefixheaders.

ashx1 avatar ashx1 commented on July 20, 2024

I import the library by going to File>Import>Android>Existing Android Code Into Workspace, select projects and then add the library to the project through the configure build path but it is the wrong way of doing it because I just tried the method in the link you provided above and it works. So I was importing it the wrong way. Thanks for all your help, and now I know how to import libraries into eclipse the right way.

And Thanks for this library (TableFixHeaders) its awesome!

Thanks.

from tablefixheaders.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.