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

Badger

I have the .so files and the jar, but when I run it I get the error: Unable to identify the apk for variant arm-debug and device. I'm a noob here so I must be doing something wrong, but I cant seem to figure it out. Any ideas? I am using Android Studio 1.1.0 and genymotion for my emulation.

This is what my 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')
}
anquegi

Add on your build.gradle on defaultConfig the action to 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 this at the end of android {} check for your architectures

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

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Android - How to identify if device is ARM 64

From Dev

How to debug the issue Unable to install the app from APK in Android

From Dev

Unable to create ARM virtual device on "Qt creator for Android".

From Dev

Unable to install apk using adb on device upgraded to Android Lollipop

From Dev

Unable to debug Android c++ app on device (Visual Studio 2015)

From Dev

Android APK not installed in the device

From Dev

Unable to upgrade apk on my device

From Dev

Unable to upgrade apk on my device

From Dev

Android Studio 2.3: Autogenerated Debug-APK no longer runs on physical device

From Dev

Unable to upload new APK file to Android Play store even though debug is off

From Dev

Error: The apk for your currently selected variant (Unknown output) is not signed. Please specify a signing configuration for this variant (debug)

From Dev

Android studio: debug application on device

From Dev

Failed to debug via android device

From Dev

Unable to debug using iOS 8.1 device

From Dev

How to uniquely identify android device to track devices

From Dev

How to uniquely identify android device to track devices

From Dev

Android studio unable to install apk

From Java

Android studio - deploy the release apk instead of debug

From Dev

Teamcity Android Ant CI debug and release apk

From Dev

Android Studio APK Analyzer for debug builds

From Dev

React Native Android release apk is debug, not release

From Dev

Android: Compile APK without debug symbols

From Dev

Android studio - keeps generating Debug signed APK

From Dev

Android Studio stale APK for build variant after xml changes

From Java

Android error: Failed to install *.apk on device *: timeout

From Dev

Android studio: deploy last built apk to device

From Dev

Android Studio is installing old apk on device

From Dev

Android installing apk to device gives [SEGMENTATION FAULT]

From Dev

which apk runs on the Android device ionic

Related Related

  1. 1

    Android - How to identify if device is ARM 64

  2. 2

    How to debug the issue Unable to install the app from APK in Android

  3. 3

    Unable to create ARM virtual device on "Qt creator for Android".

  4. 4

    Unable to install apk using adb on device upgraded to Android Lollipop

  5. 5

    Unable to debug Android c++ app on device (Visual Studio 2015)

  6. 6

    Android APK not installed in the device

  7. 7

    Unable to upgrade apk on my device

  8. 8

    Unable to upgrade apk on my device

  9. 9

    Android Studio 2.3: Autogenerated Debug-APK no longer runs on physical device

  10. 10

    Unable to upload new APK file to Android Play store even though debug is off

  11. 11

    Error: The apk for your currently selected variant (Unknown output) is not signed. Please specify a signing configuration for this variant (debug)

  12. 12

    Android studio: debug application on device

  13. 13

    Failed to debug via android device

  14. 14

    Unable to debug using iOS 8.1 device

  15. 15

    How to uniquely identify android device to track devices

  16. 16

    How to uniquely identify android device to track devices

  17. 17

    Android studio unable to install apk

  18. 18

    Android studio - deploy the release apk instead of debug

  19. 19

    Teamcity Android Ant CI debug and release apk

  20. 20

    Android Studio APK Analyzer for debug builds

  21. 21

    React Native Android release apk is debug, not release

  22. 22

    Android: Compile APK without debug symbols

  23. 23

    Android studio - keeps generating Debug signed APK

  24. 24

    Android Studio stale APK for build variant after xml changes

  25. 25

    Android error: Failed to install *.apk on device *: timeout

  26. 26

    Android studio: deploy last built apk to device

  27. 27

    Android Studio is installing old apk on device

  28. 28

    Android installing apk to device gives [SEGMENTATION FAULT]

  29. 29

    which apk runs on the Android device ionic

HotTag

Archive