I am trying to play this video ID I1iEFV1ZWHg on YouTubePlayerView using Youtube sample application
I noticed that this video starts with promoted ad that requires custom toast,
this the crash message:
Fatal Exception: android.view.InflateException Binary XML file line
3: Error inflating class com.google.android.libraries.youtube.common.ui.YouTubeTextView
android.view.LayoutInflater.createViewFromTag
Caused by java.lang.ClassNotFoundException Didn't find class
"com.google.android.libraries.youtube.common.ui.YouTubeTextView" on
path:
Related
I have an app that's been running for years, and suddenly it has started crashing (With new builds).
My findings is that after you have visited a page with a webview the app will crash. Not on the page with the webview but after you left that page.
I get this exception
Android.Views.InflateException: Binary XML file line #1 in se.xx.yy:layout/shellcontent: Binary XML file line #1 in se.xx.yy
Can also see this in the stack trace:
at Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 37: TypedValue{t=0x2/d=0x7f030007 a=13}, theme={InheritanceMap=[id=0x7f10020bse.xx.yy:style/ThemeOverlay.AppCompat.Dark.ActionBar, id=0x7f10006cse.xx.yy:style/Base.ThemeOverlay.AppCompat.Dark.ActionBar, id=0x7f10006bse.xx.yy:style/Base.ThemeOverlay.AppCompat.Dark, id=0x7f10010ase.xx.yy:style/Platform.ThemeOverlay.AppCompat.Dark
Any advice?
/Lars
I'm getting an error while displaying maps in a fragment, I've been searching for the solution and Tried several codes but nothing seems to work.
MainActivity.xml
StackTrace: {Android.Views.InflateException: Binary XML file line #1: Binary XML file line #2: Error inflating class fragment --->
Android.Views.InflateException: Binary XML file line #2: Error inflating class fragment --->
Java.Lang.RuntimeException: API key not found.
Check that
is in the element of AndroidManifest.xml
it says API Key not found, but i did declared it in manifest and validated it using http://yougapi.com/tools/google-api-key-checker.php
AndroidManifest.xml
activity_main.xml
PS: Im using android 9.0 physical device for debugging
Please make sure if you have install Xamarin.GooglePlayServices.Maps package from NuGet.
And you used Android 9.0 physical device, please make sure your device if have Google Play services
I test my demo in the Android 10.0 emulator, it worked as normal.
Here is my demo. You can test it.
https://github.com/851265601/XAndroidMap
I'm getting an unhandled exception when I try to access the hamburger menu on my Android simulator. The exception is:
Unhandled Exception: Android.Views.InflateException: Binary XML file line #14: android.support.v7.widget.AppCompatTextView cannot be cast to android.widget.ImageView occurred
It was working until very recently, but reverting all my code changes today doesn't fix the problem. I don't think the problem is with my code.
I don't know what I did to cause this, but I was playing around with different Navigation types when the problem came up. Couldn't find relevant information about the error online.
I´m implementing a android login button, when I start the app I get the following message error.
E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.droidsmile.opinions, PID: 31695
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.droidsmile.opinions/com.droidsmile.opinions.MainActivity}: android.view.InflateException: Binary XML file line #13: Error inflating class com.facebook.login.widget.LoginButton
And other line:
Caused by: The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first.
Where can I call the method?
Thanks.
You have to use FacebookSdk.sdkInitialize(getApplicationContext()); before setContentView(R.layout.your_activity_layout); as documentation states out. In case you need a complete facebook login example, check this one here.
check this answer.
I am trying to replace old adMob implementation with the new Google Play Services AdMob version.
Unfortunately on some devices (with Android 4.0, 4.1) get following error:
*FATAL EXCEPTION: main
E/AndroidRuntime(5280): java.lang.RuntimeException: Unable to start activity ComponentInfo: android.view.InflateException: Binary XML file line #14: **Error inflating class com.google.ads.AdView***
As you see, the problem is with com.google.ads.AdView but I am replaced this with com.google.android.gms.ads then no more using this old ads library mentioned in this error. I am sure that all code is replaced with the new gms library properties (in Manifest, XML, imports and invoking method).
Due my tests even removed all ads and libraries calls from my app but the problem still exist.
This app (and new ads) working properly on some devices (with Android 2.3.5 and 4.4.3) and in emulators but not working on devices with Android 4.0 or 4.1.
I am using Eclipse.
Thank you for any help.
With Google Play Services, the package name of the Ad classes have changed. Instead of com.google.ads, it's now com.google.android.gms.ads.
So if you change this in your layout, it should work.