Cannot find embedded response package in external libraries

We have two modules named app and lib. Since we need to add rn to lib, we added lib build.gradle with:

dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile "com.facebook.react:react-native:+" // From node_modules} 

and in the build.gradle project

 allprojects { repositories { mavenLocal() jcenter() maven { // All of React Native (JS, Android binaries) is installed from npm url "$rootDir/../node_modules/react-native/android" } }} 

and node_modules was loaded and placed in the usual folder with package.json

 "dependencies": { "react": "15.1.0", "react-native": "0.28.0" } 

and G:\dev>react-native -v react-native-cli: 1.0.0 react-native: 0.28.0

Event has

 <orderEntry type="library" exported="" name="react-native-0.28.0" level="project" /> 

in lib.iml and can find zero-dependent 0.28 dependencies, such as okhttp-3.2.0 and okio-1.8.0 (never used or added before) in studio external libraries,

But react-native-0.28.0 never appears in workshops of external libraries and is not valid for code.

Any ideas why this is happening? Thanks in advance.

Update

After I put compile 'com.android.support:appcompat-v7:23.1.1' depending on the react-native-0.28.0 application module ... is it very strange, is it a bug or something else?

+5
source share

All Articles