After apportable conversion: This item is not compatible with your device

浪子不回头ぞ 提交于 2019-12-06 09:13:01

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!