Could not find method implementation() for arguments [com.android.support:appcompat-v7:25.4.0] on object…android

后端 未结 4 1538
栀梦
栀梦 2021-01-14 04:40

I have to compile a project purchased on line. On importing it into android studio..it complained about the gradle version so i updated the distributionUrl to this dis

4条回答
  •  有刺的猬
    2021-01-14 05:29

    In case you are still getting the error try changing android/build.gradle of your package in node_modules from implementation to compile. Worked for me. You can use the following command inside your project folder.

    sed -i -s "s#implementation#compile#" node_modules/your-react-native-package-name/android/build.gradle
    

提交回复
热议问题