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 find method compile() for arguments [project ':react-native-webview-bridge'] #308

Open
LameesMahmoud97 opened this issue Oct 19, 2020 · 3 comments

Comments

@LameesMahmoud97
Copy link

I am using react-native v0.6 and I have followed the installation steps but I am still facing this error
any help?

@jeet-parshwa
Copy link

Can you share your "./android/app/build.gradle" code here

@HoaNguyenLeXuan
Copy link

HoaNguyenLeXuan commented Mar 9, 2022

Yeah, I meet the same issue and this is my build.grandle

`

              buildscript {
                  ext {
                      buildToolsVersion = "30.0.2"
                      minSdkVersion = 21
                      compileSdkVersion = 30
                      targetSdkVersion = 30
                      ndkVersion = "21.4.7075529"
                  }
                  repositories {
                      google()
                      mavenCentral()
                  }
                  dependencies {
                      compile project(':react-native-webview-bridge')
                      classpath("com.android.tools.build:gradle:4.2.2")
                      classpath 'com.google.gms:google-services:4.3.10'
                      // NOTE: Do not place your application dependencies here; they belong
                      // in the individual module build.gradle files
                  }
              }
              
              allprojects {
                  repositories {
                      mavenCentral()
                      mavenLocal()
                      maven {
                          // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
                          url("$rootDir/../node_modules/react-native/android")
                      }
                      maven {
                          // Android JSC is installed from npm
                          url("$rootDir/../node_modules/jsc-android/dist")
                      }
              
                      maven { url 'https://maven.google.com' }
                      
                      maven { url 'https://www.jitpack.io' }
              
                      jcenter() {
                          content {
                              includeModule("com.yqritc", "android-scalablevideoview")
                          }
                      }
              
                      google()
                  }
              }

`

@MostafaHamdy3
Copy link

Is anyone find a solution? 😢

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

4 participants