What is the reason for the error “Device supports x86, but APK only supports armeabi-v7a”

前端 未结 23 2195
悲哀的现实
悲哀的现实 2020-12-13 01:36

I am playing around with Android Studio by testing some projects out from GitHub and when I try to emulate the apk, it does not let me choose an emulator.

It tells m

相关标签:
23条回答
  • 2020-12-13 02:05

    In Android Studio, select the Build menu,

    then click Select Build Variant... and in 'Build Variants' window select x86Debug(or release)

    PS: Im using Android Studio 2.3 on Mac

    0 讨论(0)
  • 2020-12-13 02:07

    Test your code on real phone. If you have still same issue,then import your code again and before this you should update your SDK and create a new emulator with ARM system image.

    0 讨论(0)
  • 2020-12-13 02:08

    You need to reconnect your device and try to turn off/on the developer options.

    See Enable developer options and debugging

    0 讨论(0)
  • 2020-12-13 02:11

    In my case of Linux machine adb devices showed

    List of devices attached 
    44b194f5    no permissions
    

    Then restarted the adb server

    sudo adb kill-server
    

    and then

    sudo adb start-server
    

    then connect your device turn Debugging on and type

    adb devices
    List of devices attached 
    44b194f5    device
    

    Finally was able to run on the device

    0 讨论(0)
  • 2020-12-13 02:11

    Many times this means that you have not granted your laptop/computer access to your device. Take a look at your device and click the "Allow Access" button as well as the debugging permissions.

    0 讨论(0)
提交回复
热议问题