2016-09-27 84 views
0

首先,我嘗試搜索與我面臨的問題有關的問題,但是唉,根本沒有運氣!如果這個問題之前已經得到解答,請告訴我,併爲此造成的不便表示歉意。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(); 
); 

預先感謝您。

回答

-1

在您的Android工作室中,轉到您的SDK管理器並找到SDK工具選項卡。在那裏,如果你選中「顯示包詳細信息」,你會發現「的Android SDK內建工具23.0.1」

安裝這一點,你是好去:)

0

還有另外一個「的build.gradle」文件,你應該配置!在您的「.../node_modules/react-native-sqlite-storage/src/android/src/build.gradle」中更改了 也更改了該文件的構建版本!

用你已經改變的build.gradle設置它!

相關問題