Unity项目导出AndroidStudio打包出错

5 篇文章 0 订阅
2 篇文章 0 订阅

apk是可以正常打包,但是…在手机上运行的时候会出现以下错误。
报错:

your hardware does not support this application,sorry!

= = 然后又是一通google,百度…几番尝试无果…
后来仔细查找Log发现是进入不了Unity界面。出现错误。

Unable to find main (Error) 

又是经过一番查找…可算是解决了…万能的google…
这个好像是因为so文件出现的错误。
我的项目中只用到了armeabi-v7a。当接入其他sdk的时候会包含其他的so文件。

解决方案(一):
首先找到问题答案链接:Unable to find main (Error)
在gradle中添加:
意思是只用armeabi-v7a 打包apk。

android{
    splits {

        // Configures multiple APKs based on ABI.
        abi {

            // Enables building multiple APKs per ABI.
            enable true

            // By default all ABIs are included, so use reset() and include to specify that we only
            // want APKs for x86, armeabi-v7a, and mips.

            // Resets the list of ABIs that Gradle should create APKs for to none.
            reset()

            // Specifies a list of ABIs that Gradle should create APKs for.
            include "armeabi-v7a"
        }
    }
}

解决方案(二):
如果上面方案不行的话可以尝试这个。
Android项目中嵌套unity出现your hardware does not support this application,sorry!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值