build.gradle - Android Unable to identify the apk for variant arm-debug and device -


i have .so files , jar, when run error: unable identify apk variant arm-debug , device. i'm noob here must doing wrong, cant seem figure out. ideas? using android studio 1.1.0 , genymotion emulation.

this build file looks like:

apply plugin: 'com.android.application'  android {      compilesdkversion 22     buildtoolsversion "22.0.0"     defaultconfig {         applicationid "com.ctech.music.androidstreamer"         minsdkversion 14         targetsdkversion 22         versioncode 1         versionname "1.0"     }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     }     productflavors {         x86 {             ndk {                 abifilter "x86"             }         }         arm {             ndk {                 abifilters "armeabi-v7a", "armeabi"             }         }         mips {             ndk {                 abifilter "mips"             }         }      }     packagingoptions {         exclude 'meta-inf/dependencies'         exclude 'meta-inf/notice'         exclude 'meta-inf/license'         exclude 'meta-inf/license.txt'         exclude 'meta-inf/notice.txt'     } }  dependencies {     compile filetree(include: ['*.jar'], dir: 'libs')     compile 'com.android.support:appcompat-v7:22.0.+'     compile 'com.android.support:recyclerview-v7:22.0.+'     compile files('libs/fmmr.jar') } 

add on build.gradle on defaultconfig action build

ndk {         modulename "yourlibraryname"        } 

like this

defaultconfig {         applicationid "com.ctech.music.androidstreamer"         minsdkversion 14         targetsdkversion 22         versioncode 1         versionname "1.0"          ndk {         modulename "yourlibraryname"        }      } 

and add @ end of android {} check architectures

android {   ...   splits {     abi {       enable true       reset()       include 'x86', 'armeabi-v7a', 'mips'       universalapk true     }   } } 

Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -