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)

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


Attachments

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

Note You need to log in before you can comment on or make changes to this bug.