I'm not using any provider in my application, however i'm getting the error:
05-20 13:48:08.695 5003-5136/com.example.myapp E/ActivityThread﹕ Failed to find provider info for com.example.myapp
This error doesn't break the app but its strange because it show only my application package without a class, and the problem occurs only in samsung galaxy y duos...
Could it be any other app? A library in project?
This is bothering me
Found the problem, was the MobileAppTracking API in the method trackAction. At least this doesn't break the app, but is a weird message in the log...
Related
Is anyone who is using Raygun in their Android apps seeing this error exception:
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/conn/util/InetAddressUtils;
at main.java.com.mindscapehq.android.raygun4android.messages.NetworkInfo.readIPAddress(SourceFile:117)
at main.java.com.mindscapehq.android.raygun4android.messages.NetworkInfo.<init>(SourceFile:20)
at main.java.com.mindscapehq.android.raygun4android.messages.RaygunMessageDetails.setNetworkInfo(SourceFile:61)
at main.java.com.mindscapehq.android.raygun4android.RaygunMessageBuilder.setNetworkInfo(SourceFile:81)
at main.java.com.mindscapehq.android.raygun4android.RaygunClient.buildMessage(SourceFile:508)
at main.java.com.mindscapehq.android.raygun4android.RaygunClient.send(SourceFile:221)
This exception is very intermittent, but when it does happen, it always occurs when the app calls RaygunClient.send(...). I'm using Raygun in my app to report error conditions such as a failed webservice call, however, when I report this to Raygun it crashes my app!
The release of v3.0.6 includes fixes that address the problems seen with InetAddressUtils NoClassDefFoundError exceptions. Please update to release v3.0.6 and let us know if the problems persist.
Please see our documentation on how to update. https://raygun.com/documentation/language-guides/android/crash-reporting/installation/
Regards,
Mitchell.
Crashlytics is giving me this new exception, so far the only on Xiaomi Pocophone F1 (POCO F1).
I think it has something to do with MIUI
I'm just getting a cookie for a Url, this is the problem line:
String rawCookies = CookieManager.getInstance().getCookie(url.toString());
Stacktrace:
Fatal Exception: android.util.AndroidRuntimeException: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to find donor package: com.android.chrome
at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:423)
at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:194)
at android.webkit.CookieManager.getInstance(CookieManager.java:39)
I think its trying to find chrome?
Then how do we handle the cookies?
This is a known issue which happens when the Android System WebView is being updated at the same time your app is trying to use it. It is being tracked here
So I'm trying out xamarin in VS2017, but found this undhandled error:
Unhandled Exception:
Java.Lang.SecurityException: <Timeout exceeded getting exception details>
This is very clueless. How can I get the full information of the runtime error like in Android Studio?
I had the same problem while calling some native API,
solved it by
Put a try catch around the block of got which is throwing the error.
Put a breakpoint in the catch block, you can get actual details of the exception.
After getting assistance from Microsoft, I finally found the solution.
TL;DR
Use VS Android device log and filter with "mono-rt" or "Error"
Complete Answer:
There are 2 solution:
1. Using Android Studio logcat:
Open the Android Studio logcat (View > Tool Windows > Logcat). From the logcat window, choose the device, choose the Xamarin.Android deployed application, and choose logcat for Error
Android logcat will display the runtime error:
2. Using Visual Studio Android Device Log:
Open the Visual Studio Android Device Log(Tools > Android > Device Log).
Here is the tricky bit: Unlike Android Studio, VS list all of the device log, not limited to the Xamarin.Android app deployed. So somehow we have to use the filter to get the relevant information. The problem is, what filter should we use? I used my application name and the error didn't show up. It turns out that when the error happen, the log doesn't contain any of the application name. Instead it has "mono-rt" tag with "Error" type.
So there you have it. Filter it with "mono-rt" tag or "Error" type and you will find the error information
I am stuck for days now. I am using the PhotoShareDialogBuilder in facebook. I used the content provider something like this :
<provider android:authorities="com.facebook.app.NativeAppCallContentProvider*****************"
android:name="com.facebook.NativeAppCallContentProvider"
android:exported="true"/>
But, it gives me the error whenever the code gets executed. Someone please help me out. I don't want to use any other api like simple facebook etc.
The error i receive in the logcat is :
09-06 13:56:14.575: E/ActivityThread(4202): Failed to find provider info for com.facebook.wakizashi.provider.PlatformProvider.
My code :
boolean canPresentShareDialogWithPhotos = FacebookDialog.canPresentShareDialog(this,
FacebookDialog.ShareDialogFeature.PHOTOS);
if (canPresentShareDialogWithPhotos) {
FacebookDialog shareDialog = createShareDialogBuilderForPhoto(image).build();
uiHelper.trackPendingDialogCall(shareDialog.present());
}
private FacebookDialog.PhotoShareDialogBuilder createShareDialogBuilderForPhoto(Bitmap... photos) {
return new FacebookDialog.PhotoShareDialogBuilder(this)
.addPhotos(image);
}
This can be caused by:
No internet connection
Make sure you've added the internet permission to the manifest
The hashkey is wrong for the app
Your app id is wrong
My guess would be point 2
you probably need to add this to you AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
I noticed that these logcat errors:
...
E/ActivityThread﹕ Failed to find provider info for com.facebook.katana.provider.PlatformProvider
E/ActivityThread﹕ Failed to find provider info for com.facebook.wakizashi.provider.PlatformProvider
...
appear only if you do not have the Facebook APK installed on your emulator. After you install the FB APP app like this:
Macintosh:platform-tools admin$ ./adb install ~/Downloads/Facebook-[Version Number].apk
758 KB/s (40857788 bytes in 52.574s)
pkg: /data/local/tmp/Facebook-32.0.0.23.15.apk
Success
These type of errors should disappear.
Good luck !
I have the same problem, I noted that the problem is linked to the Facebook app, isn't installed on emulator or device.
This is related to my own question here:
LocationManager exception
Now that I have no permission issue - same line of code gives me exception:
Caused by: java.lang.IllegalArgumentException: Provider "gps" unknown
at android.os.Parcel.readException(Parcel.java:1251)
at android.os.Parcel.readException(Parcel.java:1235)
at android.location.ILocationManager$Stub$Proxy.setTestProviderEnabled(ILocationManager.java:942)
EDIT:
From what I read - I need to use Eclipse or DDMS. But I use IntelliJ
How do I mock locations using my setup?
It seems that setTestProviderStatus deprecated. Googling and searching didn't help. Some information from book gave me clue that those absolete. Instead, need to mock locations using DDMS when using emulator or device. So, I tried go that route and it seems to be working.