Android app in Eclipse: Edit text not showing on Graphical layout

后端 未结 6 1259
醉话见心
醉话见心 2020-11-27 13:53

I am trying to add a text field onto my Android app in Eclipse, but then I drag the Plain text option on to the graphical layout, a message at the bottom comes

6条回答
  •  醉梦人生
    2020-11-27 14:40

    If you are facing this on Android Studio, follow along

    1) Uninstall Android 4.4W(API 20) from the SDK Manager

    2) Make sure you have Android SDK Build Tools 19.1 installed from the SDK Manager.

    3) Edit build.gradle within your app folder. Set the following two values as below

    compileSdkVersion 19
    buildToolsVersion "19.1"
    

    4) The IDE will prompt you to sync the Gradle file with your project, click Yes.

    5) Open your activity file and then change the 'Android version to use when rendering layouts in IDE' to 'API 19'. This is the green colored Android Bot towards the right on the preview window

提交回复
热议问题