When i create new project in Android. I'm getting errors:
Rendering Problem (
activity_main
)Command Aapt2.exe with non-zero exit code value 1
ImageView srcCompat
Error.
What should i do?
When i create new project in Android. I'm getting errors:
Rendering Problem (activity_main
)
Command Aapt2.exe with non-zero exit code value 1
ImageView srcCompat
Error.
What should i do?
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
}
}