gpt4 book ai didi

android - opensense sdk 笔示例 - HtcPaintingView ClassNotFoundException

转载 作者:行者123 更新时间:2023-11-30 04:35:00 29 4
gpt4 key购买 nike

HTC 刚刚发布了 OpenSense SDK: http://www.htcdev.com/devcenter/opensense-sdk

任何人都可以运行 Sense SDK 笔示例吗?当我尝试在我的 Ubuntu 计算机上运行它们时,Flyer 模拟器打开,然后应用程序崩溃并出现此 logcat 异常:

08-09 21:33:50.949: ERROR/AndroidRuntime(463): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.htc.demo.penmenu/com.htc.demo.penmenu.MainActivity}: android.view.InflateException: Binary XML file line #55: Error inflating class com.htc.painting.engine.HtcPaintingView
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:1748)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at android.app.ActivityThread.handleLaunchActivity(Ac tivityThread.java:1764)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at android.app.ActivityThread.access$1500(ActivityThr ead.java:122)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at android.app.ActivityThread$H.handleMessage(Activit yThread.java:1002)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at android.os.Handler.dispatchMessage(Handler.java:99 )
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at android.os.Looper.loop(Looper.java:132)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at android.app.ActivityThread.main(ActivityThread.jav a:4025)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at java.lang.reflect.Method.invokeNative(Native Method)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at java.lang.reflect.Method.invoke(Method.java:491)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:841)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:599)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at dalvik.system.NativeStart.main(Native Method)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): Caused by: android.view.InflateException: Binary XML file line #55: Error inflating class com.htc.painting.engine.HtcPaintingView
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:682)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at android.view.LayoutInflater.rInflate(LayoutInflate r.java:724)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at android.view.LayoutInflater.rInflate(LayoutInflate r.java:727)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at android.view.LayoutInflater.inflate(LayoutInflater .java:479)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at android.view.LayoutInflater.inflate(LayoutInflater .java:391)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at android.view.LayoutInflater.inflate(LayoutInflater .java:347)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at com.android.internal.policy.impl.PhoneWindow.setCo ntentView(PhoneWindow.java:223)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at android.app.Activity.setContentView(Activity.java: 1780)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at com.htc.demo.penmenu.MainActivity.onCreate(MainAct ivity.java:42)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1048)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:1712)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): ... 11 more
08-09 21:33:50.949: ERROR/AndroidRuntime(463): Caused by: java.lang.ClassNotFoundException: com.htc.painting.engine.HtcPaintingView in loader dalvik.system.PathClassLoader[/data/app/com.htc.demo.penmenu-2.apk]
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at dalvik.system.PathClassLoader.findClass(PathClassL oader.java:251)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at java.lang.ClassLoader.loadClass(ClassLoader.java:5 40)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at java.lang.ClassLoader.loadClass(ClassLoader.java:5 00)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at android.view.LayoutInflater.createView(LayoutInfla ter.java:542)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:671)
08-09 21:33:50.949: ERROR/AndroidRuntime(463): ... 21 more

所以它看起来是一个 ClassNotFoundException。

最佳答案

我成功运行的唯一示例是兼容性演示。

嘘 HTC 发布了一个半生不熟的“SDK”。

关于android - opensense sdk 笔示例 - HtcPaintingView ClassNotFoundException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7007807/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com