I just updated my Android Studio and Android SDK, and now I can not do anything in my XML files. It shows the same as the previous one, but I canβt add anything, and something went bad.
Example:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:id="@+id/bocterAppLogo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:src="@drawable/bocterapp" android:contentDescription=""/> </LinearLayout>
This error says: "ImageView is not allowed here."
Do you have an idea why this happened?
Hurrah!
source share