首先,我尝试搜索与我面临的问题有关的问题,但是唉,根本没有运气!如果这个问题之前已经得到解答,请告诉我,并为此造成的不便表示歉意。React Native - SQLite配置错误
作为一个科尔多瓦开发人员反应本土听起来像一个梦想成真,但我仍然是一个小白,它仍然在学习它。我安装了这个SQLite plugin,并遵循Android开发的每一步。但是,当我尝试运行模拟器应用程序,我总是得到以下错误:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> A problem occurred configuring project ':react-native-sqlite-storage'.
> failed to find Build Tools revision 23.0.1
,我做的配置:
settings.gradle:
rootProject.name = 'todo'
include ':app'
include ':react-native-sqlite-storage'
project(':react-native-sqlite-storage').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sqlite-storage/src/android')
构建。格尔德:
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
[...]
MainApplication.java:
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new SQLitePluginPackage(this),
new MainReactPackage();
);
预先感谢您。