Open diegoarielbarriosmichalik opened 7 years ago
.XML <com.loopj.android.image.SmartImageView android:id="@+id/my_image" android:layout_height="match_parent" android:layout_width="match_parent" />
.JAVA SmartImageView myImage = (SmartImageView) findViewById(R.id.my_image); myImage.setImageUrl("http://www.awesomeimages.com/myawesomeimage.jpg");
Manifiest
error FATAL EXCEPTION: main Process:, PID: 14393 java.lang.NullPointerException: Attempt to invoke virtual method 'void com.loopj.android.image.SmartImageView.setImageUrl(java.lang.String)' on a null object reference
Estou com o mesmo problema.
This library is too old, you guys should consider using modern libs like glide.
.XML <com.loopj.android.image.SmartImageView android:id="@+id/my_image" android:layout_height="match_parent" android:layout_width="match_parent" />
.JAVA SmartImageView myImage = (SmartImageView) findViewById(R.id.my_image); myImage.setImageUrl("http://www.awesomeimages.com/myawesomeimage.jpg");
Manifiest
error FATAL EXCEPTION: main Process:, PID: 14393 java.lang.NullPointerException: Attempt to invoke virtual method 'void com.loopj.android.image.SmartImageView.setImageUrl(java.lang.String)' on a null object reference