androidx和v4包资源冲突解决方法

一、资源包会报如下错误:

错误类似 (androidx.core:core:1.10.0) 和 (com.android.support:support-compat:24.2.0)

表示资源重复,不知调用androidx包下面的,还是v4包下面的

Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.10.0-runtime (androidx.core:core:1.10.0) and support-compat-24.2.0-runtime (com.android.support:support-compat:24.2.0)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules core-1.10.0-runtime (androidx.core:core:1.10.0) and support-compat-24.2.0-runtime (com.android.support:support-compat:24.2.0)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules core-1.10.0-runtime (androidx.core:core:1.10.0) and support-compat-24.2.0-runtime (com.android.support:support-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$CallbackHandler found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$ConnectionCallback found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$ConnectionCallback$ConnectionCallbackInternal found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$ItemCallback found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$ItemReceiver found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImpl found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi21 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi21$1 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi21$2 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi21$3 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi23 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$1 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$2 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$3 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$MediaServiceConnection found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$MediaServiceConnection$1 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$MediaServiceConnection$2 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserServiceCallbackImpl found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$MediaItem found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$MediaItem$1 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$ServiceBinderWrapper found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$Subscription found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaBrowserCompat$SubscriptionCallback found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaDescriptionCompat found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaDescriptionCompat$1 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaDescriptionCompat$Builder found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaMetadataCompat found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaMetadataCompat$1 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.MediaMetadataCompat$Builder found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.RatingCompat found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.RatingCompat$1 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.RatingCompat$StarStyle found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.RatingCompat$Style found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.IMediaControllerCallback found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.IMediaControllerCallback$Stub found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.IMediaControllerCallback$Stub$Proxy found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.IMediaSession found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.IMediaSession$Stub found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.IMediaSession$Stub$Proxy found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaControllerCompat found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaControllerCompat$Callback found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaControllerCompat$Callback$MessageHandler found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaControllerCompat$Callback$StubCompat found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaControllerCompat$MediaControllerImpl found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaControllerCompat$MediaControllerImplApi21 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaControllerCompat$MediaControllerImplBase found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaControllerCompat$PlaybackInfo found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaControllerCompat$TransportControls found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaControllerCompat$TransportControlsApi21 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaControllerCompat$TransportControlsBase found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaSessionCompat found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaSessionCompat$1 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaSessionCompat$Callback found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaSessionCompat$MediaSessionImpl found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaSessionCompat$MediaSessionImplApi21 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaSessionCompat$MediaSessionImplBase found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaSessionCompat$MediaSessionImplBase$1 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaSessionCompat$MediaSessionImplBase$Command found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaSessionCompat$MediaSessionImplBase$MediaSessionStub found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaSessionCompat$MediaSessionImplBase$MessageHandler found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaSessionCompat$OnActiveChangeListener found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaSessionCompat$QueueItem found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaSessionCompat$QueueItem$1 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaSessionCompat$ResultReceiverWrapper found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaSessionCompat$ResultReceiverWrapper$1 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaSessionCompat$Token found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.MediaSessionCompat$Token$1 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.ParcelableVolumeInfo found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.ParcelableVolumeInfo$1 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.PlaybackStateCompat found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.PlaybackStateCompat$1 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.PlaybackStateCompat$Actions found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.PlaybackStateCompat$Builder found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.PlaybackStateCompat$CustomAction found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.PlaybackStateCompat$CustomAction$1 found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.PlaybackStateCompat$CustomAction$Builder found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.PlaybackStateCompat$MediaKeyAction found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.media.session.PlaybackStateCompat$State found in modules media-1.2.1-runtime (androidx.media:media:1.2.1) and support-media-compat-24.2.0-runtime (com.android.support:support-media-compat:24.2.0)
Duplicate class android.support.v4.os.IResultReceiver found in modules core-1.10.0-runtime (androidx.core:core:1.10.0) and support-compat-24.2.0-runtime (com.android.support:support-compat:24.2.0)
Duplicate class android.support.v4.os.IResultReceiver$Stub found in modules core-1.10.0-runtime (androidx.core:core:1.10.0) and support-compat-24.2.0-runtime (com.android.support:support-compat:24.2.0)
Duplicate class android.support.v4.os.IResultReceiver$Stub$Proxy found in modules core-1.10.0-runtime (androidx.core:core:1.10.0) and support-compat-24.2.0-runtime (com.android.support:support-compat:24.2.0)
Duplicate class android.support.v4.os.ResultReceiver found in modules core-1.10.0-runtime (androidx.core:core:1.10.0) and support-compat-24.2.0-runtime (com.android.support:support-compat:24.2.0)
Duplicate class android.support.v4.os.ResultReceiver$1 found in modules core-1.10.0-runtime (androidx.core:core:1.10.0) and support-compat-24.2.0-runtime (com.android.support:support-compat:24.2.0)
Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules core-1.10.0-runtime (androidx.core:core:1.10.0) and support-compat-24.2.0-runtime (com.android.support:support-compat:24.2.0)
Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules core-1.10.0-runtime (androidx.core:core:1.10.0) and support-compat-24.2.0-runtime (com.android.support:support-compat:24.2.0)

二、 解决方法

2.1 在gradle.properties中只添加了android.useAndroidX=true(表示当前项目启用 AndroidX)

2.2 添加android.enableJetifier=true(表示将依赖包也迁移到AndroidX,将项目中用到的第三方库中的support引用转为androidx引用) 即可

android.useAndroidX=true
android.enableJetifier=true

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/103383.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

一图看懂CodeArts Inspector 三大特性,带你玩转漏洞管理服务

华为云漏洞管理服务CodeArts Inspector是面向软件研发和服务运维提供的一站式漏洞管理能力,通过持续评估系统和应用等资产,内置风险量化管理和在线风险分析处置能力,帮助组织快速感应和响应漏洞,并及时有效地完成漏洞修复工作&…

探索UI设计|栅格系统的深入分析和应用

界面排版太乱了。你知道网格系统的用途吗?网格系统困扰着许多初级网页设计师,就像一个谜。如果您对网格在设计中的应用有任何疑问,本文是为您量身定制的,并深入分析UI设计中网格系统的基本要素和优点。 什么是网格系统 网格系统…

甘特图组件DHTMLX Gantt示例 - 如何有效管理团队工作时间?(一)

如果没有有效的时间管理工具,如工作时间日历,很难想象一个项目如何成功运转。这就是为什么我们的开发团队非常重视项目管理,并提供了多种选择来安排DHTMLX Gantt的工作时间。使用DHTMLX Gantt这个JavaScript库,您可以创建一个强大…

【SoC FPGA】HPS启动过程

SoC HPS启动流程 Boot ROMPreloaderBoot Loader HPS的启动是一个多阶段的过程,每一个阶段都会完成对应的工作并且将下一个阶段的执行代码引导起来。每个阶段均负责加载下一个阶段。第一个软件阶段是引导 ROM,引导 ROM 代码查找并且执行称为预加载器的第 …

消息队列 Kafka

Kafka Kafka 是一个分布式的基于发布/订阅模式的消息队列(MQ,Message Queue),主要应用于大数据实时处理领域 为什么使用消息队列MQ 在高并发环境下,同步请求来不及处理会发生堵塞,从而触发too many conne…

【算法|滑动窗口No.1】leetcode209. 长度最小的子数组

个人主页:兜里有颗棉花糖 欢迎 点赞👍 收藏✨ 留言✉ 加关注💓本文由 兜里有颗棉花糖 原创 收录于专栏【手撕算法系列专栏】【LeetCode】 🍔本专栏旨在提高自己算法能力的同时,记录一下自己的学习过程,希望…

cocos2d-x C++与Lua交互

Cocos版本: 3.10 Lua版本: 5.1.4 环境: window Visual Studio 2013 Lua Lua作为一种脚本语言, 它的运行需要有宿主的存在,通过Lua虚拟栈进行数据交互。 它的底层实现是C语言,C语言封装了很多的API接口&a…

【Qt上位机】打开本地表格文件并获取其中全部数据

前言 其实本文所实现的功能并非博主要实现的全部功能,只是全部功能中的一小部分,这里只是为了记录一下实现方法,防止后续忘记,仅供参考。 文章目录 一、实现效果二、UI设计三、程序设计3.1 选择本地表格文件3.2 获取表格总行列数3…

排序算法-冒泡排序法(BubbleSort)

排序算法-冒泡排序法(BubbleSort) 1、说明 冒泡排序法又称为交换排序法,是从观察水中的气泡变化构思而成的,原理是从第一个元素开始,比较相邻元素的大小,若大小顺序有误,则对调后再进行下一个…

安装Zookeeper

ZooKeeper是一个开源的分布式协调服务,它主要用于解决分布式系统中的一致性、可靠性和协调性等问题。 选择版本 去archive.apache.org/dist/zookeeper/,选择Zookeeper版本,我选择3.4.6 上传服务器 复制地址,通过wget下载 wget…

400电话申请办理:为企业提供高效沟通的必备工具

在当今竞争激烈的商业环境中,企业需要与客户保持紧密联系,提供高效沟通渠道。而400电话作为一种便捷的客服热线,成为越来越多企业的首选。本文将介绍400电话的申请办理过程,帮助企业了解如何获得这一重要的沟通工具。 首先&#…

MySQL常用脚本

🎉🎉欢迎来到我的CSDN主页!🎉🎉 🏅我是Java方文山,一个在CSDN分享笔记的博主。📚📚 🌟推荐给大家我的专栏《ELement》。🎯🎯 &#x1…

史上最强,Jmeter性能测试-性能场景设计实例(详全)

目录:导读 前言一、Python编程入门到精通二、接口自动化项目实战三、Web自动化项目实战四、App自动化项目实战五、一线大厂简历六、测试开发DevOps体系七、常用自动化测试工具八、JMeter性能测试九、总结(尾部小惊喜) 前言 1、性能测试需求 …

微信小程序支持h5实现webrtc h264 h265低延迟传输渲染

微信小程序自成体系,自身也带了很强的rtc音视频能力,但是他捆绑了他自己的服务,开发也相对受限于他的api。基于以前的了解可以采webview的方式内嵌h5网址来实现自定义的webrtc.但实践起来并不轻松,主要是小程序的严格限制&#xf…

微信页面公众号页面 安全键盘收起后键盘下方页面留白

微信浏览器打开H5页面和公众号页面,输入密码时调起安全键盘,键盘收起后 键盘下方页面留白 解决办法: 1、(简单)只有在调起安全键盘(输入密码)的时候会出现这种情况,将input属性改为n…

Hadoop分布式集群搭建教程

目录 前言环境准备一、创建虚拟机二、虚拟机网络配置三、克隆虚拟机四、Linux系统配置五、Hadoop的部署配置六、Hadoop集群的启动Bug解决参考文章 前言 大数据课程需要搭建Hadoop分布式集群,在这里记录一下搭建过程 环境准备 搭建Haoop分布式集群所需环境&#x…

kafka属性说明

kafka中关于一些字段说明 groupId :标识消费者分组id,如果多个消费者id相同,就表示这几个消费者是一组,当一组多个消费者消费同一个topic时,一组中只会有一个成功消费 代码如下 这时只会有一条消息被消费

轻松搭建个人web站点:OpenWRT教程结合内网穿透技术实现公网远程访问

🔥博客主页: 小羊失眠啦 🔖系列专栏: C语言、Linux 🌥️每日语录:山不让尘,川不辞盈。 ❤️感谢大家点赞👍收藏⭐评论✍️ 前言 uhttpd 是 OpenWrt/LuCI 开发者从零开始编写的 Web …

视频美颜SDK,提升企业视频通话质量与形象

在今天的数字时代,视频通话已经成为企业与客户、员工之间不可或缺的沟通方式。然而,由于网络环境、设备性能等因素的影响,视频通话中的画面质量往往难以达到预期效果。为了提升视频通话的质量与形象,美摄美颜SDK应运而生&#xff…

【C语言】预处理详解

前言 在上一篇博客中,我们了解了代码是如何执行的,简单介绍了编译中预处理步骤,在这篇博客中我们将详细了解预处理。 文章目录 一、预定义符号二、#define定义2.1 定义常量2.2 定义宏2.3 创建代码片段 三、#和##运算符3.1 字符串化操作符#3.2…