-
在setting.gradle文件中
pluginManagement { repositories { gradlePluginPortal() google() mavenCentral() } } dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() } }
在你的module的build.gradle文件
implementation 'com.log1992:RichEditor:2.0.2'
<dependency> <groupId>com.log1992</groupId> <artifactId>RichEditor</artifactId> <version>2.0.2</version> <type>aar</type> </dependency>
<dependency org="com.log1992" name="RichEditor" rev="2.0.2" />
-
implementation 'androidx.appcompat:appcompat:1.4.0' testImplementation 'junit:junit:4.13.2' implementation 'cn.jzvd:jiaozivideoplayer:7.4.1' api 'com.github.bumptech.glide:glide:4.12.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
-
直接使用XML文件引入即可
<com.pppcar.richeditorlibary.view.RichEditor android:id="@+id/rich_et" android:layout_above="@id/tool_container" android:layout_width="match_parent" android:layout_centerInParent="true" android:layout_height="match_parent"/>
-
-
权限处理
-
FileProvider以及
android:requestLegacyExternalStorage="true"
-
-