• 0 Posts
  • 5 Comments
Joined 2Y ago
cake
Cake day: Jul 09, 2023

help-circle
rss

I would try app:src or adding

 android {  
   defaultConfig {  
     vectorDrawables.useSupportLibrary = true  
    }  

To your build.gradle



Type package:mine level:error in the text bar and see if any errors are returned.

And what is the path of your image, and how are you placing the image in your xml file? Here is an example of one that works for me with an image that is located in the res/drawable/baseline_arrow_back_24.xml package

  <ImageView
        android:id="@+id/backButton"
        android:layout_width="42dp"
        android:layout_height="42dp"
        android:layout_gravity="start"
        android:layout_centerVertical="true"
        android:src="@drawable/baseline_arrow_back_24"
        android:contentDescription="@string/back_arrow" />

Do any errors show in logcat? You should be able to filter to show errors only.


Is it not showing up in the emulator, or the phone on which the app is downloaded, or both?