Bug 17457 - An error appears when we open android designer file(Main.axml) for any Android template.
Summary: An error appears when we open android designer file(Main.axml) for any Androi...
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android Designer ()
Version: 1.12.x
Hardware: PC Windows
: High blocker
Target Milestone: 1.12 (Merge)
Assignee: dean.ellis
URL:
Depends on:
Blocks:
 
Reported: 2014-01-28 06:23 UTC by Nischal
Modified: 2014-01-30 02:29 UTC (History)
8 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Nischal 2014-01-28 06:23:07 UTC
Step to reproduce:
1. Open VS 2010/2012/2013
2. Create any Android application
3. Open Main.axml file

Actual Result:
An error appears when we open android designer file(Main.axml) for any Android template.

Expected Result:
Android designer should be loaded successfully without any error.

Supplement details:
Trace log:https://gist.github.com/saurabh360/6a384591984fb1a29543
Screencast:http://screencast.com/t/HAp6yPkBku2

Environment details:
All windows
VS 2010/2012/2013
X.Android 4.13.0-40

Regression Status:Regression,This issue is working fine with Xam.Android 4.10.1.73
Comment 1 dean.ellis 2014-01-28 06:31:52 UTC
Looks like the PngEncoder issue again, I had this a while back will try to remember what caused it.
Comment 2 Lluis Sanchez 2014-01-28 07:12:08 UTC
This happens when com.objectplanet.image.PngEncoder.jar is not properly copied to the java directory of the VS extension.
Comment 3 dean.ellis 2014-01-28 07:24:08 UTC
Can you see if you have  com.objectplanet.image.PngEncoder.jar  in 

C:\Program Files (x86)\Microsoft Visual Studio <version>\Common7\IDE\Extensions\Xamarin\Xamarin for Visual Studio\<version>\java

I suspect its not there which is why this error is occurring.
Comment 4 Prashant manu 2014-01-28 08:42:26 UTC
We are not seeing "com.objectplanet.image.PngEncoder.jar" file at location specified in comment 3. Screencast: http://screencast.com/t/fZ8oflrC

Checked on All windows
VS2010/VS2012/VS2013
Comment 5 PJ 2014-01-28 13:42:46 UTC
Information was added -> Confirmed. Set to 1.12 Milestone.
Comment 6 dean.ellis 2014-01-29 04:37:49 UTC
Fixed in XamarinVS/master/d99e270017 and merged with the 1.12 branch
Comment 7 Nischal 2014-01-30 02:29:55 UTC
We have checked and now android designer opens up correctly.
Screencast: http://screencast.com/t/pGZ0Pwukk
Screencast: http://screencast.com/t/6XtNmicT9

Environment Info:
VS2010/VS2012/VS2013
XS for VS 1.12.177.0 (3f8cecdd5d00f0366e31218f111ce20c1c216cd0)