0

I have recently migrated to Android studio from Eclipse,The problem which i am facing is that i cannot run my application on my device which is Asus Zenfone 5 with Intel x86 Atom processor,When i try to run the code i get the following error like:

Failure [INSTALL_FAILED_CPU_ABI_INCOMPATIBLE]

The code does not contain any Platform specific libraries AFAIK i've refered this answer but i cannot find the options in the new android studio project structures,

How can i resolve this issue?

Community
  • 1
  • 1
insomniac
  • 11,146
  • 6
  • 44
  • 55
  • I've asked the question because the existing answers are outdated,love to know the reason for down voting or at least tell me how can i improve the question – insomniac Apr 08 '15 at 06:43
  • 2
    Seems like a worthy question... In my opinion, the hardest part of learning Android is just getting the tools to work (and devices to be recognized). Have you tried building a simple "hello world" app to validate if it runs on your device? – selbie Apr 08 '15 at 06:47
  • yes,actually this is a hello world application – insomniac Apr 08 '15 at 06:47
  • Does "adb shell" from the command prompt work? Also, have you tried just plan "adb install yourapp.apk" as well? – selbie Apr 08 '15 at 06:50
  • Open your apk with zip file tools and see if it has anything erroneously claiming to be a libraries folder. – Chris Stratton Apr 08 '15 at 06:53
  • @ChrisStratton no there's no other libraries other than apache commons io that i've added – insomniac Apr 08 '15 at 06:59
  • @selbie the same error is produced while installing manually over adb – insomniac Apr 08 '15 at 07:03
  • That's not what I asked. Check the zip file structure of tbe apk. Java libraries should not survive as distinct entities in the apk. – Chris Stratton Apr 08 '15 at 07:07
  • I opened the apk file from the build folder in winrar and went to the libs folder and I could only find the apache-commons-io jar file which i've added earlier,is there something wrong with that? – insomniac Apr 08 '15 at 07:13
  • There should be no jars in a libs folder, rather they get merged with your code into the dex. You have misapplied the jar to the project. – Chris Stratton Apr 08 '15 at 07:16
  • then how do i resolve this?,removing the dependency won't fix the problem i think? – insomniac Apr 08 '15 at 07:34
  • Actually,it did after removing the dependency and a rebuild ,Thank you Chris for pointing it out. – insomniac Apr 08 '15 at 07:38

0 Answers0