-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
  • 132,198
  • 53
  • 198
  • 213
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
    }
 }
Prayag Gediya
  • 1,078
  • 2
  • 11
  • 20