It happens that when I add an image using Imageview then the app crashes.
as you can see that cross is the imageview, and when compiling it gives this error.
04-06 23:16:12.117 408-453/system_process E/InputDispatcher: channel '53750588 com.example.fruttyappnew/com.example.fruttyappnew.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
There is also a line that is underlined in blue. I click on it and it points to this line.
setContentView(R.layout.activity_main2__nivel1);
note (I have tried with the images that come in android by default those gray ones, and it works perfectly.)
Here I add the image in xml mode.
<?xml version="1.0" encoding="utf-8"?>
<ImageView
android:id="@+id/imageView"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginTop="116dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.27"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/adicion" />
This line is the one I always find in the LogCat when I have this error with the images.
04-07 15:39:08.489 1183-1183/com.example.fruttyappnew A/libc: Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 1183 (le.fruttyappnew)
You have to go to the AndroidManifest part and add these two lines of code right after the opening application tag.
and that's it