2017-05-08 5 views
5

私はローカルデータベースとのネイティブプロジェクトに取り組んでいました。ローカルのデータベースアクセスにはhttps://github.com/andpor/react-native-sqlite-storageを使用しました。それはRN 0.41でうまくいきました。ポッドのインストールに失敗しました。ネイティブの反応がありません0.44

しかし、今ではRNバージョンを0.44にアップグレードすると、podをインストールするとエラーが発生します。

Unable to satisfy the following requirements: 
- `Yoga (= 0.44.0.React)` required by `React/Core (0.44.0)` 

None of your spec sources contain a spec satisfying the dependency: `Yoga (= 0.44.0.React)`. 

You have either: 
* out-of-date source repos which you can update with `pod repo update`. 
* mistyped the name or version. 
* not added the source repo that hosts the Podspec to your Podfile. 

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default. 

これは私のpodfileです:私は物事の多くを試みたが、このエラーを解決することができなかった

target 'ProjectName' do 
    pod 'React', :path => '../node_modules/react-native' <br> 
    pod 'react-native-sqlite-storage', :path => '../node_modules/react-native-sqlite-storage' 
end 

。私は、新しいプロジェクトを作成したが、反応すると、それは、あまりにも

+0

。解決策はありますか? – MPG

+0

はい。それは私のために働いていた –

答えて

10

ポッド「ヨガ」で働いていませんでした:パス=>同じ問題に直面して「../node_modules/react-native/ReactCommon/yoga」

+1

答えにもう少し詳細を提供し、欠けていることを紹介し、修正された完全なポッドファイルを投稿すると、OP(および他の誰か)が、エラー –

+0

ありがとう!その理由は、ヨガが必要なためです。この行を追加すると必要な依存関係が満たされます。 – xenetics

関連する問題