Unity android项目抛出“您的硬件不支持此应用程序,对不起".错误 [英] Unity android project throws "Your hardware does not support this application sorry" error

查看:675
本文介绍了Unity android项目抛出“您的硬件不支持此应用程序,对不起".错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经调查了2天.我读了很多东西.总结一下我读到的内容:

I have been investigating for 2 days. I have read a lot of things. To summarize what I read:

  • 非NEON设备不适用于UNITY 5版本.
  • 您应将安装位置"设置为自动或强制内部"
  • 您应将写访问权限"设置为仅限内部使用"

除了上述设置之外,我还尝试了以下纹理压缩设置:

Along with the above ones, I also tried with these texture compression settings:

  • 请勿覆盖
  • DXT(Tegra)

我也尝试过两种情况:

  • 当我从UNITY构建游戏并生成apk时.在电话上效果很好.
  • 我选择了"Google Android Project"并导出了统一项目.导出后,我得到了/assets/bin/文件夹并复制到我的android项目资产中.使用此选项时,它不起作用.

我尝试过的电话是Sony Xperia M5和One Plus2.它们都具有ARM Cortex-A53 CPU.因此,我认为可以消除Non-NEON选项.我认为应该有另一个原因导致此问题.

Phones that I tried are Sony Xperia M5 and One Plus 2. Both of them have ARM Cortex-A53 CPUs. Hence, the Non-NEON option is eliminated I think. I think that there should be another reason causing this problem.

顺便说一句,该游戏适用于s5,s6,s3 mini和Xperia Z1的两种情况.

By the way, the game works on both cases on s5, s6, s3 mini and Xperia Z1.

谢谢.

推荐答案

Android团队的一位朋友发现,与fresco集成后,本机库丢失了,该库是在Android应用程序中显示图像的强大系统.另外,fresco的github页面上还有一个问题: https://github.com/facebook/fresco/issues/361

A friend in the Android team found that native libraries missing after integration with fresco which is a powerful system for displaying images in Android applications. Also, there is an issue on the fresco's github page: https://github.com/facebook/fresco/issues/361

在那儿,一个昵称为kassim的人说:"Android上的本机库的一个常见问题是,如果一个本机库可用于abi,那么您的所有本机库都需要对该abi可用,不会回落到较低的支撑abi,因此x86_64不会回落到x86".

In there, a man whose nickname is kassim says that "A common issue with native libs on Android is that if one native lib is available for an abi then all your native libs need to be available for that abi, it won't fall back to a lower supporting abi, so x86_64 won't fall back to x86".

他提供将以下代码放入build.gradle文件的android部分:

He offers putting the code below into the android section of build.gradle file:

packagingOptions {
    exclude "lib/armeabi/libbitmaps.so"
    exclude "lib/armeabi/libgifimage.so"
    exclude "lib/armeabi/libimagepipeline.so"
    exclude "lib/armeabi/libmemchunk.so"
    exclude "lib/armeabi/libwebp.so"
    exclude "lib/armeabi/libwebpimage.so"
    exclude "lib/arm64-v8a/libbitmaps.so"
    exclude "lib/arm64-v8a/libgifimage.so"
    exclude "lib/arm64-v8a/libimagepipeline.so"
    exclude "lib/arm64-v8a/libmemchunk.so"
    exclude "lib/arm64-v8a/libwebp.so"
    exclude "lib/arm64-v8a/libwebpimage.so"
    exclude "lib/x86_64/libbitmaps.so"
    exclude "lib/x86_64/libgifimage.so"
    exclude "lib/x86_64/libimagepipeline.so"
    exclude "lib/x86_64/libmemchunk.so"
    exclude "lib/x86_64/libwebp.so"
    exclude "lib/x86_64/libwebpimage.so"
}

这解决了问题.

这篇关于Unity android项目抛出“您的硬件不支持此应用程序,对不起".错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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