Android Studio imageview error with photo
I am developing a mobile application Android in Android Studio version 3.0.1 and I am being it in Sansung Galaxy grand duos version 4.2.2, the program runs normal but when I put the imageview
the application does not even open on the mobile and already da error and closes.....
I did the following I started a new app containing only the imageview
is continues the error, the strange I put the imageview
just as color and it opens normal (the app so "crasha" only with photo) I have tried format like bitmap 16 bit, jpeg, png, icon and the error continues...
What can this be?
Code below:
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.delta.myapplication.MainActivity">
<RelativeLayout
android:id="@+id/relativeLayout"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginEnd="139dp"
android:layout_marginRight="139dp"
app:srcCompat="@drawable/vaidecerto1" />
</RelativeLayout>
</android.support.constraint.ConstraintLayout>
ps : I have tried image with 38kb 640x640 up to 1.7 m high resolution and did not work tbm, minimum required of this application Android 4.1
0