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
Hello, I am implementing this lib and for my project, I also have to use it in android/build.gradle. I have tried the solution from issue #674 but first I got this error:
Could not find method android() for arguments [dotenv_5v1ei16f50d47056n9s7kjkve$_run_closure1@6a407e85] on root project 'AvarTtoGO' of type org.gradle.api.Project
Then I added:
apply plugin: "com.android.application"
and got:
com.android.builder.errors.EvalIssueException: compileSdkVersion is not specified. Please add it to build.gradle
And after I add
android {
compileSdkVersion = 33
}
I get
Android tasks have already been created. This happens when calling android.applicationVariants, android.libraryVariants or android.testVariants. Once these methods are called, it is not possible to continue configuring the model.
You need to add apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle" in android/app/build.gradle not the root android/build.gradle.
Hello, I am implementing this lib and for my project, I also have to use it in android/build.gradle. I have tried the solution from issue #674 but first I got this error:
Then I added:
apply plugin: "com.android.application"
and got:
And after I add
I get
I would appreciate help.
android/build.gradle
The text was updated successfully, but these errors were encountered: