You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Could not find method implementation() for arguments [com.facebook.react:react-native:+] #7
What went wrong:
A problem occurred evaluating project ':react-native-android-open-settings'.
Could not find method implementation() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
in node_modules/react-native-android-open-settings/android/build.gradle
I've had a bit different error message, but it helped, thanks!
MainApplication.java:6: error: package com.levelasquez.androidopensettings does not exist
import com.levelasquez.androidopensettings.AndroidOpenSettingsPackage;
^
MainApplication.java:59: error: cannot find symbol
new AndroidOpenSettingsPackage(),
^
symbol: class AndroidOpenSettingsPackage
@donni106 That's why I made a fork, but now that I think about it a patch would be probably a better idea. AFAIK this is problem in gradle, not Android API level. compile is deprecated since gradle version 3, and I'm currently using 2.3.3 (classpath 'com.android.tools.build:gradle:2.3.3' in android/build.gradle)
Activity
effektsvk commentedon Jan 28, 2019
I've had a bit different error message, but it helped, thanks!
donni106 commentedon Mar 5, 2019
@leeleoo but when you install your packages again or update them, your local change will be gone. You are using an older Android API level, right?
effektsvk commentedon Mar 5, 2019
@donni106 That's why I made a fork, but now that I think about it a patch would be probably a better idea. AFAIK this is problem in gradle, not Android API level.
compileis deprecated since gradle version 3, and I'm currently using 2.3.3 (classpath 'com.android.tools.build:gradle:2.3.3'inandroid/build.gradle)donni106 commentedon Mar 5, 2019
Yes sure, gradle version, not Android API level, my fault.
leeleoo commentedon Mar 8, 2019
@donni106 yes and I update gradle version to 3.x