Android Question Error on compiling in Release Mode. Object should first be initialized (ImageView)

Juzer Hussain

Active Member
Licensed User
Longtime User
Hi,
My app is compiling fine in debug mode but when i try to compile in release mode it says
main_activity_create (java line: 369). "Object should first be initialized (ImageView)".I have checked all activities there is not a single imageview which is directly declared and used without initializing.
No clue whats happening. Pls help.
Thanks
Juzer
 

Juzer Hussain

Active Member
Licensed User
Longtime User
Sure, Here it is.
 

Attachments

  • ImageView.JPG
    ImageView.JPG
    75.2 KB · Views: 215
Upvote 0

Juzer Hussain

Active Member
Licensed User
Longtime User
Erel,
I removed imageviews from the main form and it compiled.
After successful compilation again in many activities it is showing same issue and the app is not working properly.
Is there something to be done for image view. I just copied imageview in files and refrenced file in designer.
Juzer
 
Upvote 0

Juzer Hussain

Active Member
Licensed User
Longtime User
Erel,
I was not in the office. I faced the same issue again in Gallery form where images were there.I tried every way finally i had to remove all images and added them afresh it solved the problem.Thanks for your replies.
Juzer
 
Upvote 0
Top