apportable转换后:此产品与设备不兼容 [英] After apportable conversion: This item is not compatible with your device

查看:189
本文介绍了apportable转换后:此产品与设备不兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经习惯www.apportable.com工具(免费版)转换成我的Cocos2D IOS项目到Android APK文件。转换是code小调整之后成功。测试在我的Nexus 7 - 工程。上传于谷歌播放(在APK部分使用Nexus 7兼容),现在无法从谷歌安装播放接收以下消息:


  

华硕的Nexus 7此产品不符合您的设备兼容。


有什么建议?

 <?XML版本=1.0编码=UTF-8&GT?;
<表明机器人:sharedUserId =com.estoty.SpaceThimblesHD安卓版code =1370237775的android:=的versionName1.9安卓的installLocation =自动包=com.estoty.SpaceThimblesHD
  的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android>
    <支持-GL纹理机器人:名字=GL_IMG_texture_com pression_pvrtc/>
    <使用许可权的android:NAME =android.permission.INTERNET对/>
    <支持屏安卓smallScreens =false的机器人:normalScreens =真正的机器人:largeScreens =真正的机器人:调整大小=真/>
    <应用机器人:主题=@风格/ FullScreenActivity机器人:标签=@字符串/ APP_NAME机器人:图标=@绘制/图标机器人:名字=com.apportable.app.VerdeApplication机器人:拥有code =真正的机器人:可调试=false的机器人:hardwareAccelerated =真正的机器人:largeHeap =假>
        <元数据机器人:名字=android.app.libs机器人:值=V CXX系统objc FFI pthread_workqueue调度基金会BridgeKit OpenAL的佛得角/>
        <元数据机器人:名字=android.app.lib_name机器人:值=佛得角/>
        <元数据机器人:名字=android.app_name机器人:值=太空杯HD/>
        <元数据机器人:名字=apportable.splash_screen_type机器人:值=信箱/>
        <元数据机器人:名字=apportable.orientation机器人:值=风景/>
        <元数据机器人:名字=apportable.opengles.fast_color机器人:值=真/>
        <活动机器人:标签=@字符串/ APP_NAME机器人:名字=com.apportable.activity.VerdeActivity机器人:launchMode =singleTask机器人:screenOrientation =风景 android:configChanges=\"locale|mcc|mnc|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale\"机器人:windowSoftInputMode =adjustPan>
            &所述;意图滤光器>
                <作用机器人:名字=android.intent.action.MAIN/>
                <类机器人:名字=android.intent.category.LAUNCHER/>
            &所述; /意图滤光器>
        < /活性GT;
        <服务机器人:名字=com.apportable.iap.BillingService/>
        <接收机器人:名字=com.apportable.iap.BillingReceiver>
            &所述;意图滤光器>
                <作用机器人:名字=com.android.vending.billing.IN_APP_NOTIFY/>
                <作用机器人:名字=com.android.vending.billing.RESPONSE_ code/>
                <作用机器人:名字=com.android.vending.billing.PURCHASE_STATE_CHANGED/>
            &所述; /意图滤光器>
        < /接收器>
    < /用途>
< /清单>


解决方案

该问题是由该行造成的:

 <支持-GL纹理机器人:名字=GL_IMG_texture_com pression_pvrtc/>

引起的,当我们最近增加了软件支持PVR的SDK回归。这将在下一版本的SDK

在此期间,您可以通过编辑.apportable / SDK / site_scons /安卓/ mainifest.py建立一个正确的Andr​​oidManifest.xml如下:

 差异--git A / site_scons /安卓/ manifest.py B / site_scons /安卓/ manifest.py
指数7b87747..2731546 100644
--- A / site_scons /安卓/ manifest.py
+++ B / site_scons /安卓/ manifest.py
@@ -68,9 +68,7 @@高清GenerateManifest(ENV,目标):
     清单+ ='安卓版code =+期权(EN​​V,'VERSION_ code')+'\\ n
     清单+ ='机器人:=的versionName'+期权(EN​​V,'SHORT_VERSION')+'> \\ N' - 如果ENV ['TARGET_TEXTURE_FMT'] =='PVR':
- 清单+ ='<支持-GL纹理机器人:名字=GL_IMG_texture_com pression_pvrtc/> \\ N'
- ELIF ENV ['TARGET_TEXTURE_FMT'] =='ATC':
如果+ ENV ['TARGET_TEXTURE_FMT'] =='ATC':
         清单+ ='<支持-GL纹理机器人:名字=GL_AMD_com pressed_ATC_texture/> \\ N'
     ELIF ENV ['TARGET_TEXTURE_FMT'] =='S3TC:
         清单+ ='<支持-GL纹理机器人:名字=GL_EXT_texture_com pression_s3tc/> \\ N'

,然后重建应用再生的Andr​​oidManifest.xml

I'm used www.apportable.com tool(Free version) to convert my Cocos2d IOS project to Android APK file. Conversion was successful after little tweak in code. Tested on my Nexus 7 - works. Uploaded on Google Play(in APK section is compatible with Nexus 7), now can't install it from Google Play receiving following message:

Asus Nexus 7 This item is not compatible with your device.

Any suggestions?

<?xml version="1.0" encoding="utf-8"?>
<manifest android:sharedUserId="com.estoty.SpaceThimblesHD" android:versionCode="1370237775" android:versionName="1.9" android:installLocation="auto" package="com.estoty.SpaceThimblesHD"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <supports-gl-texture android:name="GL_IMG_texture_compression_pvrtc" />
    <uses-permission android:name="android.permission.INTERNET" />
    <supports-screens android:smallScreens="false" android:normalScreens="true" android:largeScreens="true" android:resizeable="true" />
    <application android:theme="@style/FullScreenActivity" android:label="@string/app_name" android:icon="@drawable/icon" android:name="com.apportable.app.VerdeApplication" android:hasCode="true" android:debuggable="false" android:hardwareAccelerated="true" android:largeHeap="false">
        <meta-data android:name="android.app.libs" android:value="v cxx System objc ffi pthread_workqueue dispatch Foundation BridgeKit OpenAL verde" />
        <meta-data android:name="android.app.lib_name" android:value="verde" />
        <meta-data android:name="android.app_name" android:value="Space Cups HD" />       
        <meta-data android:name="apportable.splash_screen_type" android:value="letterbox" />
        <meta-data android:name="apportable.orientation" android:value="landscape" />
        <meta-data android:name="apportable.opengles.fast_color" android:value="true" />
        <activity android:label="@string/app_name" android:name="com.apportable.activity.VerdeActivity" android:launchMode="singleTask" android:screenOrientation="landscape" android:configChanges="locale|mcc|mnc|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale" android:windowSoftInputMode="adjustPan">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <service android:name="com.apportable.iap.BillingService" />
        <receiver android:name="com.apportable.iap.BillingReceiver">
            <intent-filter>
                <action android:name="com.android.vending.billing.IN_APP_NOTIFY" />
                <action android:name="com.android.vending.billing.RESPONSE_CODE" />
                <action android:name="com.android.vending.billing.PURCHASE_STATE_CHANGED" />
            </intent-filter>
        </receiver>
    </application>
</manifest>

解决方案

The problem is caused by the line:

    <supports-gl-texture android:name="GL_IMG_texture_compression_pvrtc" />

caused by regression in the SDK when we recently added software pvr support. It will be fixed in the next SDK revision.

In the meantime, you can build a correct AndroidManifest.xml by editing .apportable/SDK/site_scons/android/mainifest.py as follows:

    diff --git a/site_scons/android/manifest.py b/site_scons/android/manifest.py
index 7b87747..2731546 100644
--- a/site_scons/android/manifest.py
+++ b/site_scons/android/manifest.py
@@ -68,9 +68,7 @@ def GenerateManifest(env, target):
     manifest += '          android:versionCode="' + Option(env, 'VERSION_CODE') + '"\n'
     manifest += '          android:versionName="' + Option(env, 'SHORT_VERSION') + '">\n'

-    if env['TARGET_TEXTURE_FMT'] == 'pvr':
-        manifest += '    <supports-gl-texture android:name="GL_IMG_texture_compression_pvrtc" />\n'
-    elif env['TARGET_TEXTURE_FMT'] == 'atc':
+    if env['TARGET_TEXTURE_FMT'] == 'atc':
         manifest += '    <supports-gl-texture android:name="GL_AMD_compressed_ATC_texture" />\n'
     elif env['TARGET_TEXTURE_FMT'] == 's3tc':
         manifest += '    <supports-gl-texture android:name="GL_EXT_texture_compression_s3tc" />\n'

and then rebuilding the app to regenerate AndroidManifest.xml

这篇关于apportable转换后:此产品与设备不兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆