大佬教程收集整理的这篇文章主要介绍了JNI Android qt 问题,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我试过,用qt做一个AndroID应用程序,我可以编译一些示例程序,但是当我编译自己的程序时,我遇到了下图所示的问题,这是我在Qt中使用java JNI的第一个代码,我想知道怎么做
这里是安卓 XML:
<?xml version="1.0"?>
<manifest package="org.qtproject.example" xmlns:androID="http://scheR_669_11845@as.androID.com/apk/res/androID" androID:versionname="-- %%INSERT_VERSION_name%% --" androID:versionCode="-- %%INSERT_VERSION_CODE%% --" androID:installLOCATIOn="auto">
<!-- The following comment will be replaced upon deployment with default permissions based on the dependencIEs of the application.
Remove the comment if you do not require these default permissions. -->
<!-- %%INSERT_PERMISSIONS -->
<!-- The following comment will be replaced upon deployment with default features based on the dependencIEs of the application.
Remove the comment if you do not require these default features. -->
<!-- %%INSERT_FEATURES -->
<supports-screens androID:largeScreens="true" androID:normalScreens="true" androID:anyDensity="true" androID:smallScreens="true"/>
<application androID:harDWareAccelerated="true" androID:name="org.qtproject.qt5.androID.bindings.QtApplication" androID:label="-- %%INSERT_APP_name%% --" androID:extractNativelibs="true">
<activity androID:configChanges="orIEntation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|FontScale|keyboard|keyboardHIDden|navigation|mcc|mnc|density" androID:name="org.qtproject.qt5.androID.bindings.QtActivity" androID:label="-- %%INSERT_APP_name%% --" androID:screenorIEntation="unspecifIEd" androID:launchMode="singletop">
<intent-filter>
<action androID:name="androID.intent.action.MAIN"/>
<category androID:name="androID.intent.category.LAUNCHER"/>
</intent-filter>
<!-- Application arguments -->
<!-- Meta-data androID:name="androID.app.arguments" androID:value="arg1 arg2 arg3"/ -->
<!-- Application arguments -->
<Meta-data androID:name="androID.app.lib_name" androID:value="-- %%INSERT_APP_liB_name%% --"/>
<Meta-data androID:name="androID.app.qt_sources_resource_id" androID:resource="@array/qt_sources"/>
<Meta-data androID:name="androID.app.repository" androID:value="default"/>
<Meta-data androID:name="androID.app.qt_libs_resource_id" androID:resource="@array/qt_libs"/>
<Meta-data androID:name="androID.app.bundled_libs_resource_id" androID:resource="@array/bundled_libs"/>
<!-- Deploy Qt libs as part of package -->
<Meta-data androID:name="androID.app.bundle_local_qt_libs" androID:value="-- %%BUNDLE_LOCAL_QT_liBS%% --"/>
<!-- Run with local libs -->
<Meta-data androID:name="androID.app.use_local_qt_libs" androID:value="-- %%USE_LOCAL_QT_liBS%% --"/>
<Meta-data androID:name="androID.app.libs_prefix" androID:value="/data/local/tmp/qt/"/>
<Meta-data androID:name="androID.app.load_local_libs_resource_id" androID:resource="@array/load_local_libs"/>
<Meta-data androID:name="androID.app.load_local_jars" androID:value="-- %%INSERT_LOCAL_JARS%% --"/>
<Meta-data androID:name="androID.app.static_init_classes" androID:value="-- %%INSERT_INIT_CLASSES%% --"/>
<!-- Used to specify custom system library path to run with local system libs -->
<!-- <Meta-data androID:name="androID.app.system_libs_prefix" androID:value="/system/lib/"/> -->
<!-- messages maps -->
<Meta-data androID:value="@String/ministro_not_found_msg" androID:name="androID.app.ministro_not_found_msg"/>
<Meta-data androID:value="@String/ministro_needed_msg" androID:name="androID.app.ministro_needed_msg"/>
<Meta-data androID:value="@String/fatal_error_msg" androID:name="androID.app.fatal_error_msg"/>
<Meta-data androID:value="@String/unsupported_androID_version" androID:name="androID.app.unsupported_androID_version"/>
<!-- messages maps -->
<!-- Splash screen -->
<!-- OrIEntation-specific (porTrait/landscapE) data is checked first. If not available for current orIEntation,then androID.app.splash_screen_drawable. For best results,use together with splash_screen_sticky and
use hIDeSplashScreen() with a fade-out animation from Qt AndroID Extras to hIDe the splash screen when you
are done populaTing your window with content. -->
<!-- Meta-data androID:name="androID.app.splash_screen_drawable_porTrait" androID:resource="@drawable/logo_porTrait" / -->
<!-- Meta-data androID:name="androID.app.splash_screen_drawable_landscape" androID:resource="@drawable/logo_landscape" / -->
<!-- Meta-data androID:name="androID.app.splash_screen_drawable" androID:resource="@drawable/logo"/ -->
<!-- Meta-data androID:name="androID.app.splash_screen_sticky" androID:value="true"/ -->
<!-- Splash screen -->
<!-- BACkground running -->
<!-- Warning: changing this value to true may cause unexpected crashes if the
application still try to draw after
"applicationStateChanged(Qt::ApplicationSuspended)"
signal is sent! -->
<Meta-data androID:name="androID.app.BACkground_running" androID:value="false"/>
<!-- BACkground running -->
<!-- auto screen scale factor -->
<Meta-data androID:name="androID.app.auto_screen_scale_factor" androID:value="false"/>
<!-- auto screen scale factor -->
<!-- extract androID style -->
<!-- available androID:values :
* default - In most cases this will be the same as "full",but it can also be something else if needed,e.g.,for compatibility reasons
* full - useful QWidget & Quick Controls 1 apps
* minimal - useful for Quick Controls 2 apps,it is much faster than "full"
* none - useful for apps that don't use any of the above Qt modules
-->
<Meta-data androID:name="androID.app.extract_androID_style" androID:value="default"/>
<!-- extract androID style -->
</activity>
<!-- For adding service(s) please check: https://wiki.qt.io/AndroIDservices -->
</application>
</manifest>
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
以上是大佬教程为你收集整理的JNI Android qt 问题全部内容,希望文章能够帮你解决JNI Android qt 问题所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。