Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'. #93

Open
kashifaliquazi opened this issue Jan 7, 2019 · 0 comments

Comments

@kashifaliquazi
Copy link

Integrating react-native-create-library giving this error logs:

What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not resolve project :react-native-exlr-ar.
Required by:
project :app
> Unable to find a matching configuration of project :react-native-exlr-ar: None of the consumable configurations have attributes.

react-native-exlr-ar is the Ntive module I have created and manually copied it in node_modules folder of another react-native app.

followed the manual linking process mentioned in read me

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNExlrArPackage; to the imports at the top of the file
  • Add new RNExlrArPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-exlr-ar'
    project(':react-native-exlr-ar').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-exlr-ar/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-exlr-ar') // here I have  used implementation project(':react-native-exlr-ar') instead because compile is obsolete now. 
    

Current versions:

"react": "16.6.3",
"react-native": "0.57.8",

I have no Idea what I am missing. Need help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant