当前位置:我的异常网» QT开发 » Qt on Android核心编程 开发环境配置有关问题
Qt on Android核心编程 开发环境配置有关问题
www.myexceptions.net 网友分享于:2014-12-18 浏览:0次
Qt on Android核心编程 开发环境配置问题
环境 window xp
qt for android 5.4
买了本Qt on Android核心编程
参照说明搭好环境:
程序编译在模拟器环境和真机环境都能运行,但是在remote control模拟器和真机是出现以下警告,希望给点提示:
启动远端进程。D/dalvikvm( 866): Not late-enabling CheckJNI (already on)
E/Trace ( 866): error opening trace file: No such file or directory (2)
D/dalvikvm( 866): GC_CONCURRENT freed 248K, 5% free 6239K/6535K, paused 29ms+6ms, total 95ms
D/dalvikvm( 866): WAIT_FOR_CONCURRENT_GC blocked 52ms
D/dalvikvm( 866): Trying to load lib /data/data/org.qtproject.example.zyf/lib/libgnustl_shared.so 0x40ff91a8
D/dalvikvm( 866): Added shared lib /data/data/org.qtproject.example.zyf/lib/libgnustl_shared.so 0x40ff91a8
D/dalvikvm( 866): No JNI_OnLoad found in /data/data/org.qtproject.example.zyf/lib/libgnustl_shared.so 0x40ff91a8, skipping init
D/dalvikvm( 866): Trying to load lib /data/data/org.qtproject.example.zyf/lib/libQt5Core.so 0x40ff91a8
D/dalvikvm( 866): Added shared lib /data/data/org.qtproject.example.zyf/lib/libQt5Core.so 0x40ff91a8
D/dalvikvm( 866): Trying to load lib /data/data/org.qtproject.example.zyf/lib/libQt5Gui.so 0x40ff91a8
D/dalvikvm( 866): Added shared lib /data/data/org.qtproject.example.zyf/lib/libQt5Gui.so 0x40ff91a8
D/dalvikvm( 866): No JNI_OnLoad found in /data/data/org.qtproject.example.zyf/lib/libQt5Gui.so 0x40ff91a8, skipping init
D/dalvikvm( 866): Trying to load lib /data/data/org.qtproject.example.zyf/lib/libQt5Widgets.so 0x40ff91a8
D/dalvikvm( 866): Added shared lib /data/data/org.qtproject.example.zyf/lib/libQt5Widgets.so 0x40ff91a8
D/dalvikvm( 866): No JNI_OnLoad found in /data/data/org.qtproject.example.zyf/lib/libQt5Widgets.so 0x40ff91a8, skipping init
D/dalvikvm( 866): Trying to load lib /data/data/org.qtproject.example.zyf/qt-reserved-files/plugins/platforms/android/libqtforandroid.so 0x40ff91a8
D/dalvikvm( 866): Added shared lib /data/data/org.qtproject.example.zyf/qt-reserved-files/plugins/platforms/android/libqtforandroid.so 0x40ff91a8
I/Qt ( 866): qt start
W/System.err( 866): java.lang.ClassNotFoundException: android.graphics.drawable.RippleDrawable
W/System.err( 866): at java.lang.Class.classForName(Native Method)
W/System.err( 866): at java.lang.Class.forName(Class.java:217)
W/System.err( 866): at java.lang.Class.forName(Class.java:172)
W/System.err( 866): at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:396)
W/System.err( 866): at org.qtproject.qt5.android.ExtractStyle.(ExtractStyle.java:100)
W/System.err( 866): at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:438)
W/System.err( 866): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 866): at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err( 866): at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:245)
W/System.err( 866): at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:655)
W/System.err( 866): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:895)
------解决思路----------------------
这是JNI输出的,没有关系,JNI默认会找JNI_OnLoad方法,找不到就输出一条信息。
文章评论