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']
}
}
Similar Posts:
- How to Solve Failure [INSTALL_FAILED_OLDER_SDK]
- [Solved] Execution failed for task ‘:app:mergeDebugResources’
- Android Stdio Compile project report Error:Failed to find target with hash string ‘android-24
- Problems encountered in integrating.so with Android Studio: about java.lang.unsatisfiedlinkerror: native method not found
- Android about LIBS, jnilibs library basic instructions and conflict resolution
- To solve the version compatibility problem of support library: the support package has a red underline when it is introduced
- Solution of no debuggable applications after Android monitor connects devices in Android studio
- [Solved] Duplicate class com.blankj.utilcode.BuildConfig found in modules classes.jar
- Lint found fatal errors while assembling a release target [How to Solve]
- AndroidStudio Error:Failed to resolve: com.android.support:appcompat-v7:29