1.3.1 • Published 6 years ago
@aar/rn-test-exception-handler v1.3.1
请务必先安装并配置好 react-native-splash-screen(版本需要一致)
安装
$ yarn add @aar/rn-test-exception-handler
配置
引用aar
1、编辑 android/settings.gradle
,找到下面两行代码删掉:
include ':rn-test-exception-handler'
project(':rn-test-exception-handler').projectDir = new File(rootProject.projectDir, '../node_modules/rn-test-exception-handler/android')
2、编辑 android/build.gradle
,在 allprojects.repositories
中添加如下配置:
flatDir{
dirs "$rootDir/../node_modules/@aar/rn-test-exception-handler"
}
如果是多个 flatDir,用
","
隔开即可
3、编辑 android/app/build.gradle
,将 implementation project(':rn-test-exception-handler')
改为 implementation(name:'rn-test-exception-handler', ext:'aar')
1.3.1
6 years ago