0

How to change API level. when selecting this API level it shows no CPU/ABi available and also I am not able to add text fields it throws an exception.

Image 1
Image 2

Sushin Pv
  • 1,826
  • 3
  • 22
  • 36
R.Manjula
  • 11
  • 5

2 Answers2

0

In Eclipse go to manifest.xml

<uses-sdk android:minSdkVersion="int" />

In android studio: go to your app Gradle there you can find the minSdkVersion. Lower it to the version you needed.

android {
    ....
    defaultConfig {
        ....
        minSdkVersion 17
        ....
    }

}
Sushin Pv
  • 1,826
  • 3
  • 22
  • 36
0
  • Quick Fix: Uncheck installed checkbox to see other downloads and try to refresh android sdk manager, restart it or restart the computer. API 19 worked fine for me before I moved to android studio.
  • I'm not sure if API 20 is supported in eclipse, I recommend Android Studio for android development. Anyway, if you have an old PC that does not meet android studio minimum requirement, download IntelliJ IDEA https://www.jetbrains.com/idea/, it's a bit lighter and free and require 1 GB of RAM (But 1 GB is very bad, you need at least 2 GB without running android emulator). However, if you still want to work with eclipse I think you need API 19 you have to download it manually from the web and move it to android SDK location. Or you can install android studio to download SDK without using it.
  • Newer APIs are way better, they have more libraries that supports both old and new android versions. It's really worth upgrading to Android Studio.
  • For the CPU/ABi error check this post Android 4.3 Virtual Device CPU/ABI - No system images installed (eclipse)
Omar Mneimneh
  • 456
  • 5
  • 14
  • The college systems doesn't support android studio we want to use eclipse only.So how to download the API 19 from which website and how to install it. – R.Manjula Oct 25 '17 at 06:28
  • If the SDK manager still not showing other than API 20 try installing android studio and download the api from it to use it in eclipse. Can you show what type of error you get with textfield. I'm not sure if API 20 is supported or not, I know android marshmallow doesn't work in eclipse ADT. – Omar Mneimneh Oct 25 '17 at 07:30
  • OKkk got it uncheck installed checkbox in android sdk manager to see other APIs – Omar Mneimneh Oct 25 '17 at 07:36
  • I downloaded the API zip file but i am confused , where and how to add it so that I can create AVD . – R.Manjula Oct 25 '17 at 07:39
  • look in android studio sdk path in top (your pic), put it inside that folder inside platform folder – Omar Mneimneh Oct 25 '17 at 07:41
  • extract the zip there it should be named android-19 – Omar Mneimneh Oct 25 '17 at 07:42
  • To use android emulator you need to download android system-image (uncheck installed first to see all downloads) – Omar Mneimneh Oct 25 '17 at 07:45
  • Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V This is the error I am getting. – R.Manjula Oct 25 '17 at 07:48
  • When I uncheck the installed checkbok I didn't find anything it is blank – R.Manjula Oct 25 '17 at 07:49
  • Tried to restart? could be something wrong with the connection maybe.. you said you downloaded a zip file did you put it where i told you? – Omar Mneimneh Oct 25 '17 at 07:50
  • I don't know maybe this can help https://stackoverflow.com/questions/37341683/android-sdk-manager-is-not-showing-all-packages – Omar Mneimneh Oct 25 '17 at 07:54
  • Yes I pasted inside platform folder but i am getting only API 20 – R.Manjula Oct 25 '17 at 07:59
  • do you have inside the extracted folder folders like (data, templates, skins) or android.jar file ? – Omar Mneimneh Oct 25 '17 at 08:02
  • Yes..but again same error i am getting only API level 20 – R.Manjula Oct 25 '17 at 08:16
  • idk, you can ask your instructor at college, if he uses eclipse he should have a fix for you, but seriously eclipse ADT is outdated it is common to find those bugs even with java I use JetBrains IntelliJ IDEA. Maybe you can convince your instructor to let you use android studio, anyway I hope you find a solution. – Omar Mneimneh Oct 25 '17 at 09:30