Android Compile with API 20 only: Android 4.4 (KitKat Wear)

When I was building the application, I tried to put the editText file, but I got this error:

Exception thrown during rendering: java.lang.System.arraycopy ([CI [CII) V Exception details are logged in Window> Show View> Error Log

After looking at this, I came across that I had this problem ( Android app in Eclipse: edit the text not showing in the graphical layout ). The problem was that the app was compiled with KitKat Wear and the KitKat clothes do not support editText.

It should have been simple enough, I only had to click on the green droid on top of the XML graphic layout and select a different API. But for me it only showed "Automatically Pick Best" and "API 20: Android 4.4W". And Automatically Pick Best just chose 4.4W. So I tried to make the app again, but when I went to the new Android app, everything that was open in Compile With was 4.4W. I tried to select different target SDKs and minimum required SDKs, but nothing worked. Help?

+3


source to share


1 answer


You need to download API 19 or whatever you want. Go to the Android SDK Manager and download the API, after which you will be shown in the green Graphical Layout XML droid your new downloaded API, select it and everything will be fine.



+5


source







All Articles