我只是克隆了这个项目mao-rn-android-kit并在android设备上进行了调试,该设备有 marshmallow 6.0
版本,但调试失败后,我切换了具有 nougat 7.1
版本的设备,并且调试成功 .
我想在我的设备中运行该克隆的项目,即 marshmallow 6.0
. 我在build.gradle和其他文件中做了很多更改,但它根本没有运行并显示以下错误 .
我应该做些什么改变?在克隆项目的以下文件中
**********app/build.gradle**********
android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
defaultConfig {
applicationId "com.example"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
dependencies {
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:25.3.1"
compile "com.facebook.react:react-native:+" // From node_modules
compile project(':mao-rn-android-kit')
}
**********android/build.gradle**********
classpath 'com.android.tools.build:gradle:2.3.1'
然而,这个项目的apk没有安装在我的设备中 . 此外,我已检查我所有已安装的应用程序和设置,关闭和我的设备,但也无法正常工作 . 我坚持下去请帮忙 .