Unity3D android项目启动:your hardware does not support this application

接入的是360游戏相关的sdk,在我手机和模拟器运行都没问题,但是在华为荣耀及360手机出现your hardware does not support this application,sorry的弹窗提示,全部搜索也没有见到 your hardware does not support this application 这个提示。



hardware 的弹窗提示基本上都是 armeabi x86 等不同平台引起的。 也就是jni引用so文件


首先排查 gradle配置,看有没有 ndk 对 armeabi  x86 等平台限制,发现没有做限制


然后对比游戏原来具有的jniLibs 有哪些适配。 


1.Unity 原来项目中包括:

armeabi  x86  armeabi-v7a

三种


2 新引入的360相关的sdk部分包括的so文件目录有 7个

除了上述3个平台之外,还有 arm64-v8a,mips,mips64,x86_64 四个平台


360相关sdk比自己平台多这么多才出现 上面的弹窗提示,然后就试着删除,把比Unity多的4个平台删除,再运行果然不再提示上述错误。


但为什么出现这种平台适配问题,原理还不清楚,希望知道的大神给予解析指点。谢谢,以此记录一下游戏对接遇到的又一个坑



  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Chapter 1: Hello, Android 1 A Little Background 2 The Not So Distant Past 2 The Future 3 What It Isn’t 3 An Open Platform for Mobile Development 4 Native Android Applications 4 Android SDK Features 5 Access to Hardware including Camera, GPS, and Accelerometer 6 Native Google Maps, Geocoding, and Location-Based Services 6 Background Services 6 SQLite Database for Data Storage and Retrieval 7 Shared Data and Interapplication Communication 7 P2P Services with Google Talk 7 Extensive Media Support and 2D/3D Graphics 8 Optimized Memory and Process Management 8 Introducing the Open Handset Alliance 8 What Does Android Run On? 9 Why Develop for Android? 9 What Will Drive Android Adoption? 10 What Does It Have That Others Don’t? 10 Changing the Mobile Development Landscape 11 Introducing the Development Framework 11 What Comes in the Box 12 Understanding the Android Software Stack 12 The Dalvik Virtual Machine 14 Android Application Architecture 14 Android Libraries 15 Advanced Android Libraries 16 Summary 17 。。。。。。 Chapter 10: Accessing Android Hardware 315 Using the Media APIs 316 Playing Media Resources 316 Recording Multimedia 317 Using the Camera 319 Controlling Camera Settings 319 Using the Camera Preview 320 Taking a Picture 320 Introducing the Sensor Manager 321 Using the Accelerometer and Compass 323 Introducing Accelerometers 324 Detecting Acceleration Changes 324 Creating a Speedometer 326 Determining Your Orientation 329 Creating a Compass and Artificial Horizon 330 Android Telephony 333 Making Phone Calls 334 Monitoring Phone State and Phone Activity 334 Monitoring Data Connectivity and Activity 337 Accessing Phone Properties and Status 338 Controlling the Phone 338 Using Bluetooth 339 Introducing the Bluetooth Service 339 Controlling the Local Bluetooth Device 340 Discovering and Bonding with Bluetooth Devices 340 Managing Bluetooth Connections 342 Communication with Bluetooth 342 Using a Bluetooth Headset 344 Managing Network and Wi-Fi Connections 345 Monitoring and Managing Your Internet Connectivity 345 Managing Active Connections 346 Managing Your Wi-Fi 347 Controlling Device Vibration 350 Summary 351 Chapter 11: Advanced Android Development 353 Paranoid Android 354 Linux Kernel Security 354 Introducing Permissions 354 Declaring and Enforcing Permissions 355 Enforcing Permissions with Broadcasting Intents 355 xiv Contents Using AIDL to Support IPC for Services 356 Implementing an AIDL Interface 356 Using Internet Services 361 Building Rich User Interfaces 361 Working with Animations 361 Using Themes to Skin Your Applications 372 Advanced Canvas Drawing 373 Introducing SurfaceView 390 Creating Interactive Controls 393 Summary 398 Index 399

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值