Could not find method google() for arguments [] on repository container #1530
Comments
What version of react, react-native and react-native-camera do you use ? |
Hi, @Adwich react-native-cli: 2.0.1 |
same issue
|
set gradle-wrapper.properties
set build.gradle
|
I got the problem using react-native 0.55.0 . Try downgrading react-native. I'm using react-native 0.53.3 and react-native-camera 1.0.3 without problem. |
@24 after editing as you told, im getting this error, |
@PasinduDineth it can be solved by excluding "com.android.support" from react-native-camera implementation in
|
@ma3dau Beware that if you exclude the support lib and not add it for compilation correctly on the build.gradle, your app will crash when taking a picture. |
@PasinduDineth
|
@PasinduDineth
and changing
finally, it works modules version
|
who tell me how to solve it? |
I solve it, but maybe I have some specific case of use. I use
my modules version is same as @x3388638.
If excluding |
@x3388638Thanks a lot, you have solved my problem successful |
@x3388638 thank you so much, you are life saver |
I've managed to get it working by making numerous changes some listed here, others found all over the web. I also use react-native-maps which has conflicting requirements. This is a major problem and requires immediate attention. |
I'm using react-native-camera@0.10 version for com.android.tools.build:gradle:2.2.+ which is quite stable for that version. Once update the gradle, build version, react-native-camera, build.gradle, the whole system just crash. and don't know how to fix it. Really need some technical support / advice on how to upgrade properly. By following android official migrate steps, only fix the latest react-native version, but for other plugin, all just crash. Anyone who can create a blog about how to upgrade version would be helpful. |
@ma3dau your changes make the app compile but when I try to open the scanner it crashes without errors... I still don't get why the first error showed up. |
Combine @24 and @x3388638 codes, than I get a final solution. android/build.gradle
android/gradle/wrapper/gradle-wrapper.properties
android/app/build.gradle
ADDITION
MORE modify
|
@kk412027247 tks for your final solution with combination @24 and @x3388638 codes, it really works well. |
This solves the issue: https://github.com/react-native-community/react-native-camera/blob/master/docs/GradleUpgradeGuide.md However it gives an warning but build is successful.
|
@kk412027247 comment should be on the official docs! Many thanks! Saved my day <3 |
I am getting the same error: |
Anyone have the same issue as mine after @kk412027247 's compiled edition changes. I have a build succesful but when i run my terminal i have an error: Bundling |
Hi all,
I am having this error after i install react native camera. Can anyone help me. I have changed build.gradle dependency classpath to 3 also. But nothing is working. Any ideas?
error -
A problem occurred evaluating project ':react-native-camera'.
The text was updated successfully, but these errors were encountered: