Tag Archives: proguard

android unity Error: your hardware does not support this application,sorry!

recently, I met a problem about this, which occurred when I connected to unity3d on Android

the problem is to open the app and pop up the pop-up box below. Click OK to exit

This problem is caused by a problem with the so file in the LIBS folder

Solution one

Delete other so files, only v7a and x86

then clean it and run it

Next, I’ll post out the LIBS folder in the project: (just two red boxes are needed)

Solution two

Edit the build.gradle File, add the following code to it:

sourceSets {
        main {
            jniLibs.srcDirs = ['libs']
        }
    }

Code after adding:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    buildToolsVersion "28.0.0"

    defaultConfig {
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    sourceSets {
        main {
            jniLibs.srcDirs = ['libs']
        }
    }