android-youtube-player icon indicating copy to clipboard operation
android-youtube-player copied to clipboard

android.view.InflateException: Binary XML file line #27: Error inflating class com.pierfrancescosoffritti.androidyoutubeplayer.player.YouTubePlayerView

Open StevenNick88 opened this issue 5 years ago • 18 comments

12-27 03:52:31.506 7003-7003/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.afmobi.boomplayer, PID: 7003 android.view.InflateException: Binary XML file line #27: Error inflating class com.pierfrancescosoffritti.androidyoutubeplayer.player.YouTubePlayerView at android.view.LayoutInflater.createView(LayoutInflater.java:633) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743) at android.view.LayoutInflater.rInflate(LayoutInflater.java:806) at android.view.LayoutInflater.inflate(LayoutInflater.java:504) at android.view.LayoutInflater.inflate(LayoutInflater.java:414) at com.chad.library.adapter.base.BaseQuickAdapter.getItemView(BaseQuickAdapter.java:1630) at com.chad.library.adapter.base.BaseQuickAdapter.createBaseViewHolder(BaseQuickAdapter.java:1131) at com.chad.library.adapter.base.BaseMultiItemQuickAdapter.onCreateDefViewHolder(BaseMultiItemQuickAdapter.java:51) at com.chad.library.adapter.base.BaseQuickAdapter.onCreateViewHolder(BaseQuickAdapter.java:832) at com.tecno.boomplayer.newUI.adpter.DisCoverMusicAdapter.onCreateViewHolder(DisCoverMusicAdapter.java:316) at com.tecno.boomplayer.newUI.adpter.DisCoverMusicAdapter.onCreateViewHolder(DisCoverMusicAdapter.java:94) at androidx.recyclerview.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:7078) at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6235) at androidx.recyclerview.widget.GapWorker.prefetchPositionWithDeadline(GapWorker.java:288) at androidx.recyclerview.widget.GapWorker.flushTaskWithDeadline(GapWorker.java:345) at androidx.recyclerview.widget.GapWorker.flushTasksWithDeadline(GapWorker.java:361) at androidx.recyclerview.widget.GapWorker.prefetch(GapWorker.java:368) at androidx.recyclerview.widget.GapWorker.run(GapWorker.java:399) at android.os.Handler.handleCallback(Handler.java:815) at android.os.Handler.dispatchMessage(Handler.java:104) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5631) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.newInstance(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:288) at android.view.LayoutInflater.createView(LayoutInflater.java:607) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743) at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)

Using implementation 'com. Pierfrancescosoffritti. Android YouTube player: Core: 8.0.1', the above problems appear on Android 5.1 mobile phones,Please help.

StevenNick88 avatar Dec 27 '19 03:12 StevenNick88

implementation 'com.pierfrancescosoffritti.androidyoutubeplayer:core:8.0.1'

StevenNick88 avatar Dec 27 '19 03:12 StevenNick88

Why are you using such an old version? Could this issue be a duplicate of #430?

PierfrancescoSoffritti avatar Dec 28 '19 09:12 PierfrancescoSoffritti

Same problem on API level 22 any solution?

android.view.InflateException: Binary XML file line #93: Error inflating class com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerView at android.view.LayoutInflater.createView(LayoutInflater.java:633) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743) at android.view.LayoutInflater.rInflate(LayoutInflater.java:806) at android.view.LayoutInflater.rInflate(LayoutInflater.java:809) at android.view.LayoutInflater.inflate(LayoutInflater.java:504) at android.view.LayoutInflater.inflate(LayoutInflater.java:414) at com.nanotricks.engaarea.adapter.FeedsAdapter.onCreateViewHolder(FeedsAdapter.java:95) at androidx.recyclerview.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:6794) at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5975) at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5858) at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5854) at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2230) at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1557) at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1517) at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:612) at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3924) at androidx.recyclerview.widget.RecyclerView.dispatchLayout(RecyclerView.java:3641) at androidx.recyclerview.widget.RecyclerView.onLayout(RecyclerView.java:4194) at android.view.View.layout(View.java:15671) at android.view.ViewGroup.layout(ViewGroup.java:5038) at androidx.constraintlayout.widget.ConstraintLayout.onLayout(ConstraintLayout.java:1915) at android.view.View.layout(View.java:15671) at android.view.ViewGroup.layout(ViewGroup.java:5038) at androidx.coordinatorlayout.widget.CoordinatorLayout.layoutChild(CoordinatorLayout.java:1183) at androidx.coordinatorlayout.widget.CoordinatorLayout.onLayoutChild(CoordinatorLayout.java:870) at androidx.coordinatorlayout.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:889) at android.view.View.layout(View.java:15671) at android.view.ViewGroup.layout(ViewGroup.java:5038) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579) at android.widget.FrameLayout.onLayout(FrameLayout.java:514) at android.view.View.layout(View.java:15671) at android.view.ViewGroup.layout(ViewGroup.java:5038) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557) at android.widget.LinearLayout.onLayout(LinearLayout.java:1466) at android.view.View.layout(View.java:15671) at android.view.ViewGroup.layout(ViewGroup.java:5038) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579) at android.widget.FrameLayout.onLayout(FrameLayout.java:514) at android.view.View.layout(View.java:15671) at android.view.ViewGroup.layout(ViewGroup.java:5038) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557) at android.widget.LinearLayout.onLayout(LinearLayout.java:1466) at android.view.View.layout(View.java:15671) at android.view.ViewGroup.layout(ViewGroup.java:5038) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579) at android.widget.FrameLayout.onLayout(FrameLayout.java:514) at android.view.View.layout(View.java:15671) at android.view.ViewGroup.layout(ViewGroup.java:5038) at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2086) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1843) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5885) at android.view V/FA: Recording user engagement, ms: 606

arulwastaken avatar Dec 29 '19 19:12 arulwastaken

I have updated to 10.0.5 version still the issue exists on android 5

pluzmedia avatar Feb 24 '20 05:02 pluzmedia

Maybe related to #543

PierfrancescoSoffritti avatar Apr 10 '20 09:04 PierfrancescoSoffritti

Can't reproduce the errors with

  • Android API 22
  • library version 10.0.5
  • androidx..appcompat:appcompat version 1.2.0, 1.1.0 and , 1.0.0
  • simple setup with videoId provided in layout and autoplay=true

@StevenNick88 , @jerrymani33 and @pluzmedia can you provide a setup for reproducing this error to track it back?

malliaridis avatar Oct 03 '20 16:10 malliaridis

Same issue on lib version 10.0.5 androidx..appcompat:appcompat 1.3.0-alpha02 simple setup with videoId provided in layout and autoplay=true

@malliaridis It occurs very first time while opening activity/fragment

Meenu1401 avatar Jan 03 '21 17:01 Meenu1401

@Meenu1401 do you have any setup to reproduce the error? It really sounds like there is a wrong configuration (no video id available at the moment of instantiation).

malliaridis avatar Jan 03 '21 18:01 malliaridis

This is the setup xml

<com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerView android:id="@+id/youtubeVideoFragment" android:layout_width="match_parent" android:layout_height="wrap_content" app:autoPlay="true" app:enableAutomaticInitialization="true" app:showFullScreenButton="false" app:videoId="ep5ZWmpcxHA" />

and initializing this way in fragment

class WelcomeFragment : BaseFragment(), View.OnClickListener {

private val binding: FragmentWelcomeBinding by lazy {
    FragmentWelcomeBinding.inflate(LayoutInflater.from(context))
}

}

On Sun, Jan 3, 2021 at 11:57 PM Christos Malliaridis < [email protected]> wrote:

@Meenu1401 https://github.com/Meenu1401 do you have any setup to reproduce the error? It really sounds like there is a wrong configuration (no video id available at the moment of instantiation).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PierfrancescoSoffritti/android-youtube-player/issues/504#issuecomment-753657637, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSIEZRNI5JTUM5PVVR2F7TSYCZIRANCNFSM4J7UTRVA .

Meenu1401 avatar Jan 03 '21 18:01 Meenu1401

@malliaridis Getting these logs

 at android.webkit.WebView.<init>(WebView.java:429)
    at android.webkit.WebView.<init>(WebView.java:353)
    at android.webkit.WebView.<init>(WebView.java:336)
    at com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.WebViewYouTubePlayer.<init>(WebViewYouTubePlayer.kt:25)
    at com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.WebViewYouTubePlayer.<init>(WebViewYouTubePlayer.kt:24)
    at com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.LegacyYouTubePlayerView.<init>(LegacyYouTubePlayerView.kt:34)
    at com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.LegacyYouTubePlayerView.<init>(LegacyYouTubePlayerView.kt:31)
    at com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerView.<init>(YouTubePlayerView.kt:30)
    at com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerView.<init>(YouTubePlayerView.kt:28)

Meenu1401 avatar Jan 03 '21 19:01 Meenu1401

Can you provide the whole stacktrace @Meenu1401? It seems like the important part is missing (The lines starting with "Caused by.. "

malliaridis avatar Jan 03 '21 21:01 malliaridis

Caused by: java.lang.RuntimeException: Using WebView from more than one process at once with the same data directory is not supported. https://crbug.com/558377 at org.chromium.android_webview.AwBrowserProcess.a(PG:40) at kv.c(PG:90) at kv.b(PG:160) at kv.a(PG:141) at com.android.webview.chromium.WebViewChromiumFactoryProvider.a(PG:234) at com.android.webview.chromium.WebViewChromium.init(PG:44) at android.webkit.WebView.(WebView.java:429) at android.webkit.WebView.(WebView.java:353) at android.webkit.WebView.(WebView.java:336) 2021-01-04 12:14:18.556 21192-21192/com.intspvt.app.dehaat2.debug E/AndroidRuntime: at com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.WebViewYouTubePlayer.(WebViewYouTubePlayer.kt:25) at com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.WebViewYouTubePlayer.(WebViewYouTubePlayer.kt:24) at com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.LegacyYouTubePlayerView.(LegacyYouTubePlayerView.kt:34) at com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.LegacyYouTubePlayerView.(LegacyYouTubePlayerView.kt:31) at com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerView.(YouTubePlayerView.kt:30) at com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerView.(YouTubePlayerView.kt:28)

Meenu1401 avatar Jan 04 '21 06:01 Meenu1401

@malliaridis Please check above logs

Meenu1401 avatar Jan 04 '21 07:01 Meenu1401

@Meenu1401 It seems like you are trying to make a data / view binding (correct me if I'm wrong). Data binding is not working as reported in #523. With my following setup I was able to start it. Can you see if this works for you too?

MainActivity:

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val binding = ActivityMainBinding.inflate(LayoutInflater.from(this))
        setContentView(binding.root)

        supportFragmentManager.beginTransaction()
            .replace(binding.flContainer.id, WelcomeFragment())
            .commit()
    }
}

WelcomeFragment:

class WelcomeFragment : Fragment() {

    private val binding: FragmentWelcomeBinding by lazy {
        FragmentWelcomeBinding.inflate(LayoutInflater.from(context))
    }

    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View {
        return binding.root
    }
}

activity_main.xml:

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <FrameLayout
        android:id="@+id/fl_container"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

</androidx.constraintlayout.widget.ConstraintLayout>

fragment_welcome.xml:

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerView
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        android:id="@+id/youtube_player_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:videoId="S0Q4gqBUs7c"
        app:autoPlay="true"
        app:showFullScreenButton="false" />

</androidx.constraintlayout.widget.ConstraintLayout>

build.gradle:

android {
    ...
    buildFeatures {
        viewBinding true
    }
    ...
}

Notice that there is no data binding used, only view binding. It also works with build feature dataBinding, but without binding the video URL (not tested however). Once you try to bind the video URL it fails on compilation or on execution.

malliaridis avatar Jan 05 '21 12:01 malliaridis

@malliaridis Thank you for the help. It is working fine for me as well. Issue was related to cache of webview not with the player.

Meenu1401 avatar Jan 10 '21 13:01 Meenu1401

Hello @Meenu1401 facing the exact same issue in my app also. could you just elaborate what was the issue with webview cache? sharing my logs and details for everyone reference

Android API 22 & Android API 21 library version 9.0.1 androidx..appcompat:appcompat version1.0.0
using databinding : Yes simple setup with videoId provided in view model and autoplay=default not setting in xml

07-21 08:39:06.905 E/art (28194): dlopen("/data/app/com.google.android.webview-1/lib/arm/libwebviewchromium.so", RTLD_LAZY) failed: dlopen failed: "/data/app/com.google.android.webview-1/lib/arm/libwebviewchromium.so" is 32-bit instead of 64-bit 07-21 08:39:06.925 E/WebViewFactory(28194): error instantiating provider 07-21 08:39:06.925 E/WebViewFactory(28194): t50: errorCode=2 07-21 08:39:06.925 E/WebViewFactory(28194): at SL.i(chromium-SystemWebViewGoogle.aab-stable-447212000:21) 07-21 08:39:06.925 E/WebViewFactory(28194): at SL.k(chromium-SystemWebViewGoogle.aab-stable-447212000:5) 07-21 08:39:06.925 E/WebViewFactory(28194): at org.chromium.android_webview.AwBrowserProcess.h(chromium-SystemWebViewGoogle.aab-stable-447212000:9) 07-21 08:39:06.925 E/WebViewFactory(28194): at com.android.webview.chromium.WebViewChromiumFactoryProvider.f(chromium-SystemWebViewGoogle.aab-stable-447212000:85) 07-21 08:39:06.925 E/WebViewFactory(28194): at com.android.webview.chromium.WebViewChromiumFactoryProvider.(chromium-SystemWebViewGoogle.aab-stable-447212000:6) 07-21 08:39:06.925 E/WebViewFactory(28194): at java.lang.reflect.Constructor.newInstance(Native Method) 07-21 08:39:06.925 E/WebViewFactory(28194): at java.lang.Class.newInstance(Class.java:1650) 07-21 08:39:06.925 E/WebViewFactory(28194): at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:112) 07-21 08:39:06.925 E/WebViewFactory(28194): at android.webkit.WebView.getFactory(WebView.java:2193) 07-21 08:39:06.925 E/WebViewFactory(28194): at android.webkit.WebView.ensureProviderCreated(WebView.java:2188) 07-21 08:39:06.925 E/WebViewFactory(28194): at android.webkit.WebView.setOverScrollMode(WebView.java:2247) 07-21 08:39:06.925 E/WebViewFactory(28194): at android.view.View.(View.java:3824) 07-21 08:39:06.925 E/WebViewFactory(28194): at android.view.View.(View.java:3935) 07-21 08:39:06.925 E/WebViewFactory(28194): at android.view.ViewGroup.(ViewGroup.java:507) 07-21 08:39:06.925 E/WebViewFactory(28194): at android.widget.AbsoluteLayout.(AbsoluteLayout.java:55) 07-21 08:39:06.925 E/WebViewFactory(28194): at android.webkit.WebView.(WebView.java:547) 07-21 08:39:06.925 E/WebViewFactory(28194): at android.webkit.WebView.(WebView.java:492) 07-21 08:39:06.925 E/WebViewFactory(28194): at android.webkit.WebView.(WebView.java:475) 07-21 08:39:06.925 E/WebViewFactory(28194): at com.pierfrancescosoffritti.androidyoutubeplayer.player.a.(Unknown Source) 07-21 08:39:06.925 E/WebViewFactory(28194): at com.pierfrancescosoffritti.androidyoutubeplayer.player.a.(Unknown Source) 07-21 08:39:06.925 E/WebViewFactory(28194): at com.pierfrancescosoffritti.androidyoutubeplayer.player.a.(Unknown Source) 07-21 08:39:06.925 E/WebViewFactory(28194): at com.pierfrancescosoffritti.androidyoutubeplayer.player.YouTubePlayerView.(Unknown Source) 07-21 08:39:06.925 E/WebViewFactory(28194): at com.pierfrancescosoffritti.androidyoutubeplayer.player.YouTubePlayerView.(Unknown Source) 07-21 08:39:06.925 E/WebViewFactory(28194): at java.lang.reflect.Constructor.newInstance(Native Method) 07-21 08:39:06.925 E/WebViewFactory(28194): at java.lang.reflect.Constructor.newInstance(Constructor.java:288) 07-21 08:39:06.925 E/WebViewFactory(28194): at android.view.LayoutInflater.createView(LayoutInflater.java:614) 07-21 08:39:06.925 E/WebViewFactory(28194): at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.createCustomViewInternal(-ViewPumpLayoutInflater.kt:220) 07-21 08:39:06.925 E/WebViewFactory(28194): at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.access$createCustomViewInternal(-ViewPumpLayoutInflater.kt:19) 07-21 08:39:06.925 E/WebViewFactory(28194): at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater$PrivateWrapperFactory2ViewCreator.onCreateView(-ViewPumpLayoutInflater.kt:421) 07-21 08:39:06.925 E/WebViewFactory(28194): at io.github.inflationx.viewpump.internal.-FallbackViewCreationInterceptor.intercept(-FallbackViewCreationInterceptor.kt:14) 07-21 08:39:06.925 E/WebViewFactory(28194): at io.github.inflationx.viewpump.internal.-InterceptorChain.proceed(-InterceptorChain.kt:30) 07-21 08:39:06.925 E/WebViewFactory(28194): at io.github.inflationx.calligraphy3.CalligraphyInterceptor.intercept(CalligraphyInterceptor.java:18) 07-21 08:39:06.925 E/WebViewFactory(28194): at io.github.inflationx.viewpump.internal.-InterceptorChain.proceed(-InterceptorChain.kt:30) 07-21 08:39:06.925 E/WebViewFactory(28194): at io.github.inflationx.viewpump.ViewPump.inflate(ViewPump.kt:36) 07-21 08:39:06.925 E/WebViewFactory(28194): at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater$PrivateWrapperFactory2.onCreateView(-ViewPumpLayoutInflater.kt:399) 07-21 08:39:06.925 E/WebViewFactory(28194): at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:178) 07-21 08:39:06.925 E/WebViewFactory(28194): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:740) 07-21 08:39:06.925 E/WebViewFactory(28194): at android.view.LayoutInflater.rInflate(LayoutInflater.java:813) 07-21 08:39:06.925 E/WebViewFactory(28194): at android.view.LayoutInflater.inflate(LayoutInflater.java:511) 07-21 08:39:06.925 E/WebViewFactory(28194): at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.inflate(-ViewPumpLayoutInflater.kt:57) 07-21 08:39:06.925 E/WebViewFactory(28194): at android.view.LayoutInflater.inflate(LayoutInflater.java:415) 07-21 08:39:06.925 E/WebViewFactory(28194): at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.inflate(-ViewPumpLayoutInflater.kt:48) 07-21 08:39:06.925 E/WebViewFactory(28194): at 07-21 08:39:06.925 E/WebViewFactory(28194): at androidx.recyclerview.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:6794) 07-21 08:39:06.925 E/WebViewFactory(28194): at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5975) 07-21 08:39:06.925 E/WebViewFactory(28194): at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5858) 07-21 08:39:06.925 E/WebViewFactory(28194): at androidx.

android.view.InflateException: Binary XML file line #23: Error inflating class com.pierfrancescosoffritti.androidyoutubeplayer.player.YouTubePlayerView 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.view.LayoutInflater.createView(LayoutInflater.java:640) 07-21 08:39:07.625 E/AndroidRuntime(28194): at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.createCustomViewInternal(-ViewPumpLayoutInflater.kt:220) 07-21 08:39:07.625 E/AndroidRuntime(28194): at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.access$createCustomViewInternal(-ViewPumpLayoutInflater.kt:19) 07-21 08:39:07.625 E/AndroidRuntime(28194): at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater$PrivateWrapperFactory2ViewCreator.onCreateView(-ViewPumpLayoutInflater.kt:421) 07-21 08:39:07.625 E/AndroidRuntime(28194): at io.github.inflationx.viewpump.internal.-FallbackViewCreationInterceptor.intercept(-FallbackViewCreationInterceptor.kt:14) 07-21 08:39:07.625 E/AndroidRuntime(28194): at io.github.inflationx.viewpump.internal.-InterceptorChain.proceed(-InterceptorChain.kt:30) 07-21 08:39:07.625 E/AndroidRuntime(28194): at io.github.inflationx.calligraphy3.CalligraphyInterceptor.intercept(CalligraphyInterceptor.java:18) 07-21 08:39:07.625 E/AndroidRuntime(28194): at io.github.inflationx.viewpump.internal.-InterceptorChain.proceed(-InterceptorChain.kt:30) 07-21 08:39:07.625 E/AndroidRuntime(28194): at io.github.inflationx.viewpump.ViewPump.inflate(ViewPump.kt:36) 07-21 08:39:07.625 E/AndroidRuntime(28194): at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater$PrivateWrapperFactory2.onCreateView(-ViewPumpLayoutInflater.kt:399) 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:178) 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:740) 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.view.LayoutInflater.rInflate(LayoutInflater.java:813) 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.view.LayoutInflater.inflate(LayoutInflater.java:511) 07-21 08:39:07.625 E/AndroidRuntime(28194): at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.inflate(-ViewPumpLayoutInflater.kt:57) 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.view.LayoutInflater.inflate(LayoutInflater.java:415) 07-21 08:39:07.625 E/AndroidRuntime(28194): at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.inflate(-ViewPumpLayoutInflater.kt:48) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:6794) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5975) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5858) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5854) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.LayoutState.next(LayoutState.java:100) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.StaggeredGridLayoutManager.fill(StaggeredGridLayoutManager.java:1609) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.StaggeredGridLayoutManager.onLayoutChildren(StaggeredGridLayoutManager.java:683) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.StaggeredGridLayoutManager.onLayoutChildren(StaggeredGridLayoutManager.java:605) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3924) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.RecyclerView.onMeasure(RecyclerView.java:3336) 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.view.View.measure(View.java:18653) 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:728) 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:464) 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.view.View.measure(View.java:18653) 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:728) 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:464) 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.view.View.measure(View.java:18653) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.RecyclerView$LayoutManager.measureChildWithMargins(RecyclerView.java:9119) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1583) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1517) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1331) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:1075) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyc 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.StaggeredGridLayoutManager.onLayoutChildren(StaggeredGridLayoutManager.java:683) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.StaggeredGridLayoutManager.onLayoutChildren(StaggeredGridLayoutManager.java:605) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3924) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.RecyclerView.onMeasure(RecyclerView.java:3336) 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.view.View.measure(View.java:18653) 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:728) 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:464) 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.view.View.measure(View.java:18653) 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:728) 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:464) 07-21 08:39:07.625 E/AndroidRuntime(28194): at android.view.View.measure(View.java:18653) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.RecyclerView$LayoutManager.measureChildWithMargins(RecyclerView.java:9119) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1583) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1517) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1331) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyclerview.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:1075) 07-21 08:39:07.625 E/AndroidRuntime(28194): at androidx.recyc

Priyanshi-Z avatar Jul 21 '21 08:07 Priyanshi-Z

    您好,您的邮件已收到,感谢您的来信。祝您生活愉快!

StevenNick88 avatar Mar 03 '23 11:03 StevenNick88