st0ffern / react-native-image-cropper

Crop your images with zoom and pan
https://www.npmjs.com/package/react-native-image-cropper
MIT License
158 stars 67 forks source link

Configuration with name 'default' not found #66

Closed cnakh closed 6 years ago

cnakh commented 6 years ago

Your module is very nice.

I try to install by follow your instruction as follow:

  1. npm i -S gl-react
  2. npm i -S gl-react-native
  3. rnpm link gl-react-native
  4. npm i -S react-native-image-cropper

In android\settings.gradle

include ':gl-react-native'
project(':gl-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/gl-react-native/android')

In android\app\build.gradle

compile project(':gl-react-native')

In MainApplication.java

import com.projectseptember.RNGL.RNGLPackage;

And

new RNGLPackage()

But I got the error message as follow:

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
   > Configuration with name 'default' not found.

Please help. Thanks.

st0ffern commented 6 years ago

installed react-native-maps ?

cnakh commented 6 years ago

@stoffern I not installed it yet. Do I need to install it?

st0ffern commented 6 years ago

No, but this error is related to a setup of external plugins

cnakh commented 6 years ago

@stoffern what I installed are listed above. I don't know why it got error.

I only follow your instruction as state in "Requirements".

st0ffern commented 6 years ago

check if you have gl-react-native v2 and not v3. If so read stack overflow.. this is not error with the package