[置顶] Android项目中嵌套unity出现your hardware does not support this application,sorry!
2017-05-05 16:51
681 查看
**
最近遇见这个问题 卡了我好几天 今天终于解决了 下面把解决办法分享给大家
**
问题是打开app直接弹出下面的弹框 点击ok 就退出!
遇到这样的问题 是因为libs文件夹的so文件出现了问题:
**
下面我把项目中的libs文件夹贴出来:
添加完之后的代码:
这两种方法是在我自己项目中亲自试过的 通过这两种方法我的问题解决利了 希望这两种解决办法能帮助到您!
最近遇见这个问题 卡了我好几天 今天终于解决了 下面把解决办法分享给大家
**
问题是打开app直接弹出下面的弹框 点击ok 就退出!
遇到这样的问题 是因为libs文件夹的so文件出现了问题:
**
解决办法 一
我们公司unity导出来的so文件,只有v7a和x86这两个文件夹, 而我的项目中,引入的module中,有一个module的libs里边有v8a,x86,v7a,x86_64的,然后我只留下x86和v7a的(只留下文件夹名字相同的文件夹),其他的文件夹都删掉(我这里删除的是v8a,x86_64),然后clean一下,运行就可以了**下面我把项目中的libs文件夹贴出来:
解决办法二
编辑app目录下的build.gradle文件,为其添加以下代码:sourceSets { main { jniLibs.srcDirs = ['libs'] } }
添加完之后的代码:
apply plugin: 'com.android.application' android { compileSdkVersion 20 buildToolsVersion "20.0.0" defaultConfig { minSdkVersion 9 targetSdkVersion 20 versionCode 1 versionName "1.0" } buildTypes { release { runProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } sourceSets { main { jniLibs.srcDirs = ['libs'] } } }
这两种方法是在我自己项目中亲自试过的 通过这两种方法我的问题解决利了 希望这两种解决办法能帮助到您!
相关文章推荐
- [置顶] Unity3D的android项目启动报错:your hardware does not support this application
- Unity3D android项目启动:your hardware does not support this application
- Unity3D的android项目启动报错:your hardware does not support this application
- eclipse创建android项目,无法正常预览布局文件,出现This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in...
- Android Studio导入项目出现出现Error:(1, 0) Plugin with id ‘com.android.application’ not found.
- SQL 2005 建立数据库图表时出现以下错误Database diagram support objects cannot be installed because this database does not have a valid owner 解决
- Android Diary Application does not specify an API level requirement!错误以及如何将AndroidAudio的项目导入到eclips
- Android添加依赖出现This support library should not use a different version (26) than the compile(25).
- Xcode编译错误: This application does not support this device’s CPU type.
- 启动WCF服务时出现WCF Error: HTTP could not register URL http://+:xxxx/... Your process does not have access rights to this namespace
- SharePoint-- Your client does not support opening this list with Windows Explorer
- Android开发出现”This text field does not specify an inputType or a hint“
- linux下安装PHP的CI框架,出现Your view folder path does not appear to be set correctly. Please open the following file and correct this: i
- The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the ser
- 导入项目出现:Could not find com.android.support.constraint:constraint-layout:2.0.0-alpha8的解决方法
- 错误-Android-OpenCV-It seems that your device does not support camera(or it is locked)
- Your ID is under ID protection. Your current version does not support this function. Please download the latest Simplified Chine
- 导入项目出现:Could not find com.android.support.constraint:constraint-layout:2.0.0-alpha8的解决方法
- [置顶] 【Android】java.lang.IllegalArgumentException: AppCompat does not support the current theme features
- 用Eclipse编译android程序时,出现警告This text field does not specify an inputType or a hint