Bug 30542 - ClassNotFoundException when trying to instantiate a type in a referenced library since ACW changes in 5.1
Summary: ClassNotFoundException when trying to instantiate a type in a referenced libr...
Status: CONFIRMED
Alias: None
Product: Android
Classification: Xamarin
Component: General (show other bugs)
Version: 5.1
Hardware: PC Mac OS
: Highest critical
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2015-05-28 10:09 UTC by John Miller [MSFT]
Modified: 2015-06-04 08:07 UTC (History)
2 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 for Bug 30542 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description John Miller [MSFT] 2015-05-28 10:09:48 UTC
**Overview:**

   When trying to instantiate a type located in a referenced library, an exception is thrown.

**Steps to Reproduce:**

   1. Run the attached sample on an Android device/simulator

**Actual Results:**

   Unable to start activity ComponentInfo{AndroidLinkerIssue.AndroidLinkerIssue/androidlinkerissue.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "md52e49bb046972039ee81f0ce9e44aa518.MapLayout"`

**Expected Results:**

   Should be able to instantiate this type.

**Build Date & Platform:**

   XA 5.1

**Additional Information:**

   Was working before changes in 5.1 to ACW
Comment 2 Ram Chandra 2015-06-04 08:07:09 UTC
I have checked this issue and able to reproduce the reported behaviour. To reproduce this issue I have followed the instructions mentioned in bug description.

Screencast : http://www.screencast.com/t/XZsJzLmUve

Error Log : https://gist.github.com/Udham1/1961ced779a587ad71fa
Adb Logcat : https://gist.github.com/Udham1/d8100d674234b898d9b5
Application Output : https://gist.github.com/Udham1/8c0a152f844dfeda660c
Ide Log : https://gist.github.com/Udham1/c789fdb814bba2f2e8f8

Environment Info : 

=== Xamarin Studio ===

Version 5.9.4 (build 3)
Installation UUID: ce927b2a-2c07-44c5-b186-09cfdafba6dc
Runtime:
	Mono 4.0.1 ((detached/ef16e5a)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400010055

=== Apple Developer Tools ===

Xcode 6.2 (6776)
Build 6C131e

=== Xamarin.Android ===

Version: 5.1.3.2 (Enterprise Edition)
Android SDK: /Users/xamarin76/Desktop/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Build Information ===

Release ID: 509040003
Git revision: 71a8c576686882a0ad224f735d9f04a6c08119c8
Build date: 2015-06-04 02:45:11-04
Xamarin addins: 456e0954631a1a80bc90389e99c6d16cd8f09ad3

=== Operating System ===

Mac OS X 10.9.5
Darwin Xamarin76s-Mac-mini.local 13.4.0 Darwin Kernel Version 13.4.0
    Sun Aug 17 19:50:11 PDT 2014
    root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64