信息:在真实设备上测试,AndroID版本4.4.4.,cocos2d-x-3.13.1,c,目标4.4.2,eclipse Neon.1a版本(4.6.1),mac os.
如果需要其他信息,我可以提供.
AndroIDManifest.xml中:
<?xml version="1.0" enCoding="utf-8"?><manifest xmlns:androID="http://schemas.androID.com/apk/res/androID" package="com.companyname.gamename" androID:versionCode="1" androID:versionname="1.0" androID:installLocation="auto"><uses-sdk androID:minSdkVersion="19"/><uses-feature androID:glEsversion="0x00020000" /><application androID:label="@string/app_name" androID:icon="@drawable/icon"> <!-- Tell Cocos2dxActivity the name of our .so --> <Meta-data androID:name="androID.app.lib_name" androID:value="MyGame" /> <activity androID:name="org.cocos2dx.cpp.AppActivity" androID:label="@string/app_name" androID:screenorIEntation="landscape" androID:theme="@androID:style/theme.NoTitlebar.Fullscreen" androID:configChanges="orIEntation|keyboardHIDden|screenSize"> <intent-filter> <action androID:name="androID.intent.action.MAIN" /> <@R_419_4602@ androID:name="androID.intent.@R_419_4602@.LAUNCHER" /> </intent-filter> </activity></application><supports-screens androID:anyDensity="true" androID:smallScreens="true" androID:normalScreens="true" androID:largeScreens="true" androID:xlargeScreens="true"/><uses-permission androID:name="androID.permission.INTERNET"/><permission androID:name="androID.permission.INteraCT_ACROSS_USERS_FulL" androID:protectionLevel="signature"/>
LogCat(警告,错误,断言):
04-21 09:49:49.917: E/Watchdog(596): !@Sync 124504-21 09:49:52.780: W/AlarmManager(596): Set alarm: type= 3 triggerAtTime= 143810266,called by : com.Google.androID.gms,intent:Intent { cmp=com.Google.androID.gms/.lockBox.LockBoxAlarmReceiver }04-21 09:49:59.997: W/AlarmManager(596): Set alarm: type= 3 triggerAtTime= 143817481,called by : androID,intent:Intent { act=androID.intent.action.TIME_TICK flg=0x50000000 }04-21 09:50:00.157: W/ResourceType(2304): Failure getting entry for 0x010400da (t=3 e=218) in package 0 (error -75)04-21 09:50:00.157: E/accuweather(2304): [AccuTab_Magagine]>>> UIMK:1463 [0:0] time : 08:5004-21 09:50:00.177: W/ResourceType(2304): Failure getting entry for 0x010400da (t=3 e=218) in package 0 (error -75)04-21 09:50:19.917: E/Watchdog(596): !@Sync 124604-21 09:50:36.803: W/ContextImpl(25935): Calling a method in the system process without a qualifIEd user: androID.app.ContextImpl.startActivity:1255 androID.content.Contextwrapper.startActivity:330 androID.content.Contextwrapper.startActivity:330 com.samsung.androID.MtpApplication.MtpReceiver.handleMessage:786 androID.os.Handler.dispatchMessage:102 04-21 09:50:36.813: W/ContextImpl(25935): Calling a method in the system process without a qualifIEd user: androID.app.ContextImpl.startActivity:1267 androID.app.ContextImpl.startActivity:1256 androID.content.Contextwrapper.startActivity:330 androID.content.Contextwrapper.startActivity:330 com.samsung.androID.MtpApplication.MtpReceiver.handleMessage:786 04-21 09:50:37.033: W/ActivityManager(596): mDVFSHelper.acquire()04-21 09:50:37.043: E/MTPRx(25935): started activity for popup04-21 09:50:37.154: W/ApplicationPackageManager(25935): getCSCPackageItemText()04-21 09:50:37.204: E/SettingsReceiverActivity(25935): PREF_DONT_ASK_AGAIN : true04-21 09:50:37.214: W/inputMethodManagerService(596): Window already focused,ignoring focus gain of: com.androID.internal.vIEw.IinputMethodClIEnt$Stub$Proxy@42ef9528 attribute=null,token = androID.os.BinderProxy@42a655d804-21 09:50:38.084: W/ApplicationPackageManager(596): getCSCPackageItemText()04-21 09:50:40.036: W/ActivityManager(596): mDVFSHelper.release()04-21 09:50:49.916: E/Watchdog(596): !@Sync 124704-21 09:50:52.789: W/AlarmManager(596): Set alarm: type= 3 triggerAtTime= 144530276,intent:Intent { act=androID.net.ConnectivityService.action.PKT_CNT_SAMPLE_INTERVAL_ELAPSED flg=0x4000000 }04-21 09:50:52.849: W/AlarmManager(596): Set alarm: type= 3 triggerAtTime= 143870336,intent:Intent { cmp=com.Google.androID.gms/.lockBox.LockBoxAlarmReceiver }04-21 09:50:59.996: W/AlarmManager(596): Set alarm: type= 3 triggerAtTime= 143877482,intent:Intent { act=androID.intent.action.TIME_TICK flg=0x50000000 }04-21 09:51:00.076: W/ResourceType(2304): Failure getting entry for 0x010400da (t=3 e=218) in package 0 (error -75)04-21 09:51:00.076: E/accuweather(2304): [AccuTab_Magagine]>>> UIMK:1463 [0:0] time : 08:5104-21 09:51:00.096: W/ResourceType(2304): Failure getting entry for 0x010400da (t=3 e=218) in package 0 (error -75)04-21 09:51:03.719: E/memtrack(26128): Couldn't load memtrack module (No such file or directory)04-21 09:51:03.719: E/androID.os.DeBUG(26128): Failed to load memtrack module: -204-21 09:51:03.900: W/ActivityManager(596): No content provIDer found for permission revoke: file:///data/local/tmp/MyGame.apk04-21 09:51:19.915: E/Watchdog(596): !@Sync 124804-21 09:51:30.275: W/ApplicationPackageManager(25304): getCSCPackageItemText()04-21 09:51:42.527: W/ActivityManager(596): No content provIDer found for permission revoke: file:///data/local/tmp/MyGame.apk04-21 09:51:43.588: E/PackageManager(596): parse pkg : /data/app/vmdl276537072.tmp04-21 09:51:43.618: E/PackageManager(596): dexopt start04-21 09:51:44.980: E/PackageManager(596): dexopt end04-21 09:51:49.915: E/Watchdog(596): !@Sync 124904-21 09:51:53.068: W/AlarmManager(596): Set alarm: type= 3 triggerAtTime= 143930557,intent:Intent { cmp=com.Google.androID.gms/.lockBox.LockBoxAlarmReceiver }04-21 09:51:56.111: W/PackageManager(596): verifying app can be installed or not04-21 09:51:56.331: W/PackageManager(596): Not granting permission androID.permission.INSTALL_LOCATION_PROVIDER to package com.companyname.Gamename (protectionLevel=18 flags=0x8be46)04-21 09:51:56.511: W/ApplicationPackageManager(596): getCSCPackageItemText()04-21 09:51:56.561: W/ApplicationPackageManager(596): getCSCPackageItemText()04-21 09:51:56.771: W/ApplicationPackageManager(596): getCSCPackageItemText()04-21 09:51:56.781: W/ApplicationPackageManager(930): getCSCPackageItemText()04-21 09:51:56.781: W/ApplicationPackageManager(930): getCSCPackageItemText()04-21 09:51:56.781: E/SamsungIME(1471): mOCRHelper is null04-21 09:51:56.941: W/ApplicationPackageManager(951): getCSCPackageItemText()04-21 09:51:58.343: W/ApplicationPackageManager(1195): getCSCPackageItemText()04-21 09:51:58.453: E/EdmStorageProvIDer(596): admin not in database,something went wrong04-21 09:51:59.103: W/AlarmManager(596): Set alarm: type= 0 triggerAtTime= 1492761134119,called by : com.androID.vending,intent:Intent { cmp=com.androID.vending/com.Google.androID.finsky.services.ContentSyncService }04-21 09:51:59.344: W/IcingInternalCorpora(1352): getNumBytesRead when not calculated.04-21 09:51:59.354: E/memtrack(26153): Couldn't load memtrack module (No such file or directory)04-21 09:51:59.354: E/androID.os.DeBUG(26153): Failed to load memtrack module: -204-21 09:51:59.504: E/Finsky(25304): [1] com.Google.androID.finsky.wear.bl.a(847): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE,resolution=null,message=null}04-21 09:51:59.814: W/ActivityManager(596): mDVFSHelper.acquire()04-21 09:51:59.994: W/AlarmManager(596): Set alarm: type= 3 triggerAtTime= 143937482,intent:Intent { act=androID.intent.action.TIME_TICK flg=0x50000000 }04-21 09:52:00.215: W/ActivityManager(596): Permission Denial: getCurrentUser() from pID=26179,uID=10129 requires androID.permission.INteraCT_ACROSS_USERS04-21 09:52:00.245: W/ApplicationPackageManager(26179): getCSCPackageItemText()04-21 09:52:00.275: W/ActivityManager(596): Permission Denial: getCurrentUser() from pID=26179,uID=10129 requires androID.permission.INteraCT_ACROSS_USERS04-21 09:52:00.615: E/JniHelper(26179): Failed to find static java method. Class name: (null),method name: getCocos2dxPackagename,signature: ()Ljava/lang/String; 04-21 09:52:00.615: W/ResourceType(2304): Failure getting entry for 0x010400da (t=3 e=218) in package 0 (error -75)04-21 09:52:00.625: A/libc(26179): Fatal signal 11 (SIGSEGV) at 0xfffffff4 (code=1),thread 26179 (peFromTheIsland)04-21 09:52:00.635: E/accuweather(2304): [AccuTab_Magagine]>>> UIMK:1463 [0:0] time : 08:5204-21 09:52:00.645: W/ResourceType(2304): Failure getting entry for 0x010400da (t=3 e=218) in package 0 (error -75)04-21 09:52:00.865: W/sqliteConnectionPool(1352): A sqliteConnection object for database '+data+data+com_Google_androID_gms+databases+metrics_db' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.04-21 09:52:00.875: W/sqliteConnectionPool(1352): A sqliteConnection object for database '+data+data+com_Google_androID_gms+databases+help_responses_db_18' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.04-21 09:52:00.875: W/sqliteConnectionPool(1352): A sqliteConnection object for database '+data+data+com_Google_androID_gms+databases+auto_complete_suggestions_db' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.04-21 09:52:00.875: W/ApplicationPackageManager(1352): getCSCPackageItemText()04-21 09:52:01.165: W/ActivityManager(596): Force finishing activity com.companyname.Gamename/org.cocos2dx.cpp.AppActivity04-21 09:52:01.206: W/ApplicationPackageManager(596): getCSCPackageItemText()04-21 09:52:01.216: W/ApplicationPackageManager(596): getCSCPackageItemText()04-21 09:52:01.516: E/androID.os.DeBUG(596): !@Dumpstate > dumpstate -k -t -z -d -m 26179 -o /data/log/dumpstate_app_error04-21 09:52:01.596: W/ContextImpl(596): Calling a method in the system process without a qualifIEd user: androID.app.ContextImpl.sendbroadcast:1372 com.androID.server.analytics.data.collection.application.CrashAnrDetector.broadcastEvent:296 com.androID.server.analytics.data.collection.application.CrashAnrDetector.processDropBoxEntry:254 com.androID.server.analytics.data.collection.application.CrashAnrDetector.access0:60 com.androID.server.analytics.data.collection.application.CrashAnrDetector.onReceive:102 04-21 09:52:01.716: W/ActivityManager(596): Activity pause timeout for ActivityRecord{425a2d00 u0 com.companyname.Gamename/org.cocos2dx.cpp.AppActivity t89 f}04-21 09:52:01.906: W/ActivityManager(596): mDVFSHelper.release()04-21 09:52:02.577: W/ApplicationPackageManager(596): getCSCPackageItemText()
LogCat(过滤应用程序(完整版)):
04-21 09:52:00.185: D/ActivityThread(26179): handleBindApplication:com.companyname.gamename04-21 09:52:00.245: W/ApplicationPackageManager(26179): getCSCPackageItemText()04-21 09:52:00.265: D/displayManager(26179): displayManager()04-21 09:52:00.305: D/dalvikvm(26179): Trying to load lib /data/app-lib/com.companyname.gamename-1/libmyGame.so 0x41ccab7004-21 09:52:00.615: E/JniHelper(26179): Failed to find static java method. Class name: (null),signature: ()Ljava/lang/String; 04-21 09:52:00.625: A/libc(26179): Fatal signal 11 (SIGSEGV) at 0xfffffff4 (code=1),thread 26179 (peFromTheIsland)解决方法
<uses-permission androID:name="androID.permission.INSTALL_LOCATION_PROVIDER"/>
从Manifest文件中删除此权限.您只能使用正常和危险许可.
第三方开发人员无法向其应用程序授予安装新位置提供程序(androID.permission.INSTALL_LOCATION_PROVIDER)所需的权限.只允许OEM安装新的位置提供程序.
编辑
<permission androID:name="androID.permission.INteraCT_ACROSS_USERS_FulL" androID:protectionLevel="signature"/>
编辑
检查包名称我在AndroIDManifest.xml中看到com.companyname.gamename,您正在使用包com.companyname.Gamename运行您的应用程序,AppActivity在org.cocos2dx.cpp中
总结以上是内存溢出为你收集整理的Cocos2d-x安装的应用程序无法在android上启动全部内容,希望文章能够帮你解决Cocos2d-x安装的应用程序无法在android上启动所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)