My project crashes because the /data/app/pkg/libs/arm64/myfile.so does not exists, MAINLY this folder (/data/app/pkg/libs) does not exists EVEN THO i created one.
Here is a screenshot:
Arm64 folder not included in build
I don’t know what happened, so my first trial is that in your build.gradle config it only include jars. Is it correct?
I cannot seem to understand what you’re saying
But here is my build.gradle:
apply plugin: ‘com.android.application’
android {
compileSdkVersion 21
buildToolsVersion “21.1.0”
defaultConfig {
applicationId "com.HJCD.test"
minSdkVersion 14
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
ndk {
abiFilters "armeabi-v7a", "x86", "armeabi", "mips", "arm64"
}
}
sourceSets {
main {
jni.srcDirs = [‘jniLibs’]
jniLibs.srcDir ‘libs’
}
}
}
dependencies {
api ‘com.android.support:support-v13:27.+’
compile fileTree(dir: ‘libs’, include: [’.jar’,’.so’])
}
I have fixed the bug it looks like i needed to store it inside the jniLibs folder
In what folder? I was trying it without success too