Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Runtime error when creating Crashlytics instance in Android #602

Open
technohead opened this issue Jun 25, 2019 · 3 comments
Open

Runtime error when creating Crashlytics instance in Android #602

technohead opened this issue Jun 25, 2019 · 3 comments
Assignees
Labels
investigating Currently investigating this issue

Comments

@technohead
Copy link

Hi,
I'm getting the following crash when creating the initial Crashlytics object:

Java.Lang.ClassNotFoundException

Didn't find class "com.crashlytics.android.beta.Beta" on path: DexPathList[[zip file "/data/app/com.adrides.adrides-ZclmSlBn9yAOZ4IlmHUhrw==/base.apk"],nativeLibraryDirectories=[/data/app/com.adrides.adrides-ZclmSlBn9yAOZ4IlmHUhrw==/lib/x86, /data/app/com.adrides.adrides-ZclmSlBn9yAOZ4IlmHUhrw==/base.apk!/lib/x86, /system/lib, /vendor/lib]]

Here is my code:

Firebase.FirebaseApp.InitializeApp(this);
var crashlytics = new Crashlytics.Crashlytics(); // crash occurs here

The version of the Xamarin.Android.Crashlytics is 2.9.4.1.
I've tried building with and without multi-dex and still see the same issue.

My VS environment is as follows:

=== Visual Studio Community 2019 for Mac ===

Version 8.1.1 (build 27)
Installation UUID: e83c4285-c0f4-40b6-8a52-ba4afb27614d
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 5.6.0.25 (d16-0 / 50f75273)

Package version: 518010028

=== Mono Framework MDK ===

Runtime:
Mono 5.18.1.28 (2018-08/223ea7ef92e) (64-bit)
Package version: 518010028

=== NuGet ===

Version: 5.0.2.5988

=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
2.1.11
2.1.9
2.1.8
2.1.7
2.1.2
2.1.1
2.0.5
2.0.0
SDK: /usr/local/share/dotnet/sdk/2.1.700/Sdks
SDK Versions:
2.1.700
2.1.505
2.1.504
2.1.503
2.1.302
2.1.301
2.1.4
2.0.0
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/Current/bin/Sdks

=== Xamarin.Profiler ===

Version: 1.6.10
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Updater ===

Version: 11

=== Apple Developer Tools ===

Xcode 10.2.1 (14490.122)
Build 10E1001

=== Xamarin.Mac ===

Version: 5.10.0.157 (Visual Studio Community)
Hash: 6bd94753
Branch: d16-1
Build date: 2019-06-12 17:28:48-0400

=== Xamarin.iOS ===

Version: 12.10.0.157 (Visual Studio Community)
Hash: 6bd94753
Branch: d16-1
Build date: 2019-06-12 17:28:47-0400

=== Xamarin Designer ===

Version: 16.1.0.467
Hash: f1657e133
Branch: remotes/origin/d16-1-new-document-model
Build date: 2019-06-18 21:57:42 UTC

=== Xamarin.Android ===

Version: 9.3.0.23 (Visual Studio Community)
Commit: HEAD/d0b48056f
Android SDK: /Users/technohead/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
4.4 (API level 19)
5.0 (API level 21)
6.0 (API level 23)
7.0 (API level 24)
7.1 (API level 25)
8.0 (API level 26)
8.1 (API level 27)

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 29.0.1
SDK Build Tools Version: 28.0.3

Build Information:
Mono: mono/mono@3a07bd426d3
Java.Interop: xamarin/java.interop/d16-1@5ddc3e3
LibZipSharp: grendello/LibZipSharp/d16-1@44de300
LibZip: nih-at/libzip@b95cf3f
ProGuard: xamarin/proguard@905836d
SQLite: xamarin/sqlite@8212a2d
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-1@acabd26

=== Microsoft Mobile OpenJDK ===

Java SDK: /Users/technohead/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Android Device Manager ===

Version: 1.2.0.44
Hash: aac645b
Branch: remotes/origin/d16-1
Build date: 2019-05-29 19:55:24 UTC

=== Xamarin Inspector ===

Version: 1.4.3
Hash: db27525
Branch: 1.4-release
Build date: Mon, 09 Jul 2018 21:20:18 GMT
Client compatibility: 1

=== Build Information ===

Release ID: 801010027
Git revision: ce34f6838e6457d0e7d5991a1a693415e6fcae07
Build date: 2019-06-19 19:52:58+00
Build branch: release-8.1
Xamarin extensions: 5104b76623e0df8e5f763f87d170279c0b788e89

=== Operating System ===

Mac OS X 10.14.3
Darwin 18.2.0 Darwin Kernel Version 18.2.0
Thu Dec 20 20:46:53 PST 2018
root:xnu-4903.241.1~1/RELEASE_X86_64 x86_64

thanks,
Dennis

@newky2k newky2k added the investigating Currently investigating this issue label Jul 1, 2019
@akankshajain00
Copy link

We are getting same error in our App for Android and almost similar configurations. Does any one have solution for this.?
Thanks

@Nyconing
Copy link

Nyconing commented Jan 9, 2020

Ah... same here. Trying over few days already... Tried anything I can found on google...

And today I found new update on NUGET package

Xamarin.Android.Crashlytics 2.9.4.4

Finally it works QAQ

@PTEC3D50
Copy link

Hi there, I got the same type of error, even with the 2.9.4.4 version of Xamarin.Android.Crashlytics.

Java.Lang.ClassNotFoundException: 'Didn't find class "com.crashlytics.android.Crashlytics" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/ei.TeamUp--vCfa4WLP7cC1pBZEsPojg==/base.apk"],nativeLibraryDirectories=[/data/app/ei.TeamUp--vCfa4WLP7cC1pBZEsPojg==/lib/arm64, /data/app/ei.TeamUp--vCfa4WLP7cC1pBZEsPojg==/base.apk!/lib/arm64-v8a, /system/lib64]]'

I tried severals things, try to install dependencies manually, change the version, add Xamarin.Android.Crashlytics.Core, nothing change.

The Multi-Dex is already activated, but the Proguard is not.

Any advices or help?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
investigating Currently investigating this issue
Projects
None yet
Development

No branches or pull requests

6 participants