-1

When i create new project in Android. I'm getting errors:

  1. Rendering Problem (activity_main)

  2. Command Aapt2.exe with non-zero exit code value 1

  3. ImageView srcCompat Error.

What should i do?

ρяσѕρєя K
  • 127,886
  • 50
  • 184
  • 206
Emir Soylu
  • 11
  • 4

1 Answers1

0

Use AppComapatImageView instead of ImageView

<android.support.v7.widget.AppCompatImageView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:srcCompat="@drawable/circle_icon" />

add this in gradle.refer this

android {
   defaultConfig {
     vectorDrawables.useSupportLibrary = true
    }
 }
iDroid
  • 928
  • 2
  • 8
  • 20