Android detox build fails - Android tasks have already been created. Probably gradle config versions problem
Description
Android detox build failing on mac os x.
Main error:
`Build file '/Users/user/Documents/Repos/nintendo-app/android/build.gradle' line: 27
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. ...
`
Line 27 in my buld gradle is:
compileSdkVersion 25
Steps to Reproduce
Run following command:
cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug --debug && cd ..
Detox, Node, Device, Xcode and macOS Versions
- Detox: ^9.0.4
- React Native: 0.52
- Node: v8.6.0
- Device: Nexus 5X API 23 emulator
- Xcode: 9.0.4
- macOS: 10.13.6
android/build.gradle (few settings):
`android { compileSdkVersion 25 buildToolsVersion '27.0.3' }
buildscript { repositories { jcenter() google() } dependencies { // classpath 'com.android.tools.build:gradle:2.2.3' classpath 'com.android.tools.build:gradle:3.1.4' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } `
android/app/build.gradle (few settings):
`android { compileSdkVersion 27 buildToolsVersion "27.0.3"
defaultConfig {
applicationId "com.ohmygreen.nintendoapp"
minSdkVersion 18
targetSdkVersion 27
...
}
} `
Device and verbose Detox logs
Stacktrace:
nadzic@MAC-NADZIC:~/Documents/Repos/nintendo-app$ cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug --stacktrace && cd ..
Configure project :app WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
FAILURE: Build failed with an exception.
-
Where: Build file '/Users/user/Documents/Repos/nintendo-app/android/build.gradle' line: 27
-
What went wrong: A problem occurred configuring project ':detox'.
Failed to notify project evaluation listener. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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.
-
Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights.
-
Exception is: org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':detox'. at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:94) at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:89) at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:70) at org.gradle.configuration.project.LifecycleProjectEvaluator.access$100(LifecycleProjectEvaluator.java:34) at org.gradle.configuration.project.LifecycleProjectEvaluator$ConfigureProject.run(LifecycleProjectEvaluator.java:110) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110) at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:50) at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:666) at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:135) at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:35) at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:62) at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:38) at org.gradle.initialization.DefaultGradleLauncher$ConfigureBuild.run(DefaultGradleLauncher.java:249) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110) at org.gradle.initialization.DefaultGradleLauncher.configureBuild(DefaultGradleLauncher.java:167) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:126) at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:109) at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:78) at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:75) at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:152) at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:100) at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:75) at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32) at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$1.run(RunAsBuildOperationBuildActionRunner.java:43) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110) at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:40) at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:51) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:47) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30) at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:39) at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:25) at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:80) at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:53) at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:57) at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:32) at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36) at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25) at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43) at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29) at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:69) at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:30) at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:59) at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:44) at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:45) at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:30) at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72) at org.gradle.util.Swapper.swap(Swapper.java:38) at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:82) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50) at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) Caused by: org.gradle.internal.event.ListenerNotificationException: Failed to notify project evaluation listener. at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:86) at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:324) at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:234) at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:140) at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:37) at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) at com.sun.proxy.$Proxy24.afterEvaluate(Unknown Source) at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:76) ... 81 more Caused by: org.gradle.api.GradleException: 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. at com.android.build.gradle.BaseExtension.checkWritability(BaseExtension.java:263) at com.android.build.gradle.BaseExtension.compileSdkVersion(BaseExtension.java:283) at com.android.build.gradle.LibraryExtension_Decorated.compileSdkVersion(Unknown Source) at com.android.build.gradle.BaseExtension.compileSdkVersion(BaseExtension.java:289) at com.android.build.gradle.LibraryExtension_Decorated.compileSdkVersion(Unknown Source) at org.gradle.internal.metaobject.BeanDynamicObject$MetaClassAdapter.invokeMethod(BeanDynamicObject.java:479) at org.gradle.internal.metaobject.BeanDynamicObject.tryInvokeMethod(BeanDynamicObject.java:191) at org.gradle.internal.metaobject.CompositeDynamicObject.tryInvokeMethod(CompositeDynamicObject.java:98) at org.gradle.internal.metaobject.MixInClosurePropertiesAsMethodsDynamicObject.tryInvokeMethod(MixInClosurePropertiesAsMethodsDynamicObject.java:30) at org.gradle.internal.metaobject.ConfigureDelegate.invokeMethod(ConfigureDelegate.java:57) at build_8d4qnpxmt2qrohs43y2wkw0pg$_run_closure1$_closure3$_closure5$_closure7.doCall(/Users/user/Documents/Repos/nintendo-app/android/build.gradle:27) at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:71) at org.gradle.util.ConfigureUtil.configureTarget(ConfigureUtil.java:160) at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:106) at org.gradle.util.ConfigureUtil$1.execute(ConfigureUtil.java:123) at org.gradle.api.internal.plugins.ExtensionsStorage$ExtensionHolder.configure(ExtensionsStorage.java:173) at org.gradle.api.internal.plugins.ExtensionsStorage.configureExtension(ExtensionsStorage.java:70) at org.gradle.api.internal.plugins.DefaultConvention.configureExtension(DefaultConvention.java:367) at org.gradle.api.internal.plugins.DefaultConvention.access$500(DefaultConvention.java:45) at org.gradle.api.internal.plugins.DefaultConvention$ExtensionsDynamicObject.tryInvokeMethod(DefaultConvention.java:310) at org.gradle.internal.metaobject.CompositeDynamicObject.tryInvokeMethod(CompositeDynamicObject.java:98) at org.gradle.internal.metaobject.MixInClosurePropertiesAsMethodsDynamicObject.tryInvokeMethod(MixInClosurePropertiesAsMethodsDynamicObject.java:30) at org.gradle.internal.metaobject.ConfigureDelegate.invokeMethod(ConfigureDelegate.java:57) at org.gradle.internal.metaobject.BeanDynamicObject$GroovyObjectAdapter.invokeOpaqueMethod(BeanDynamicObject.java:579) at org.gradle.internal.metaobject.BeanDynamicObject$MetaClassAdapter.invokeMethod(BeanDynamicObject.java:506) at org.gradle.internal.metaobject.BeanDynamicObject.tryInvokeMethod(BeanDynamicObject.java:191) at org.gradle.internal.metaobject.ConfigureDelegate.invokeMethod(ConfigureDelegate.java:78) at build_8d4qnpxmt2qrohs43y2wkw0pg$_run_closure1$_closure3$_closure5.doCall(/Users/user/Documents/Repos/nintendo-app/android/build.gradle:26) at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:40) at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:25) at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:42) at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:230) at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:149) at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:58) ... 88 more
Debug:
11:10:49.279 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :detox - Registering model element 'tasks.androidDependencies' (hidden = false) 11:10:49.279 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :detox - Registering model element 'tasks.signingReport' (hidden = false) 11:10:49.285 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Completing Build operation 'Configure project :detox' 11:10:49.285 [null] [org.gradle.internal.progress.DefaultBuildOperationExecutor] 11:10:49.285 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Completing Build operation 'Configure build' 11:10:49.287 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 11:10:49.287 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception. 11:10:49.287 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 11:10:49.287 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Where: 11:10:49.287 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Build file '/Users/user/Documents/Repos/nintendo-app/android/build.gradle' line: 27 11:10:49.287 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 11:10:49.287 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong: 11:10:49.288 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] A problem occurred configuring project ':detox'. 11:10:49.288 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Failed to notify project evaluation listener. 11:10:49.288 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.288 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.288 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.288 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.288 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.288 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.288 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.288 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.288 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.288 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.288 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.290 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.290 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.290 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.290 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.290 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.290 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.290 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.290 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.290 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.290 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.290 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.291 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.291 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.291 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.291 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.291 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.291 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.291 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.291 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.291 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.291 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.292 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.292 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.292 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.292 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.292 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.292 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.292 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.292 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.292 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.292 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.292 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.293 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.293 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.293 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.293 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.293 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.293 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.293 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.293 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.293 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.293 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.293 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.293 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.293 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.293 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.293 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.293 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.293 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.294 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.294 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.294 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.294 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.294 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.294 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.294 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.294 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.294 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.294 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.294 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.294 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.294 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.294 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.295 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.295 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.295 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.295 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.295 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.295 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.295 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.295 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.295 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.296 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.296 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.296 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.296 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.296 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.296 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.296 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.296 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.296 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.296 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.297 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.297 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.297 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.297 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.297 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.297 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.297 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.297 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.297 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.298 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.298 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.298 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.298 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.298 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.298 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.298 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.298 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.298 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.298 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.299 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.299 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.299 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.299 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.299 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.299 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.299 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.299 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.299 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.301 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.301 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.301 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.301 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.301 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.301 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.301 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.301 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.301 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.301 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.301 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.301 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.302 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.302 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.302 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.302 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.302 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.303 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.303 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.303 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.303 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.303 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.303 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.303 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.303 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.303 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.303 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.303 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.304 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.304 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.304 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.304 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.304 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.304 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.304 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.304 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.304 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.304 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.305 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.305 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.305 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.305 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.305 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.305 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.305 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.305 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.305 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.305 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.306 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.306 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.306 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.306 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.306 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.306 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.306 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.306 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.306 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.306 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.307 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.307 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.307 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.307 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.307 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.307 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.307 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.307 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.307 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.307 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.308 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.308 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.308 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.308 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.308 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.308 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.308 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.308 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.308 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.308 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.308 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.309 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.309 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.309 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.309 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.309 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.309 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.309 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.309 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.309 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.309 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.310 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.310 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.310 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.310 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.310 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.310 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.310 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.310 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.310 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.310 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.311 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.311 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.311 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.311 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.311 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.311 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.311 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.311 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.312 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.312 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.312 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.312 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.312 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.312 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.312 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.312 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Android tasks have already been created. 11:10:49.312 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] This happens when calling android.applicationVariants, 11:10:49.312 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] android.libraryVariants or android.testVariants. 11:10:49.313 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Once these methods are called, it is not possible to 11:10:49.313 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] continue configuring the model. 11:10:49.313 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 11:10:49.313 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try: 11:10:49.313 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. Run with --scan to get full insights. 11:10:49.313 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 11:10:49.313 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org 11:10:49.313 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] 11:10:49.313 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 1s 11:10:49.314 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1 completed (0 worker(s) in use) 11:10:49.314 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 16: released lock on root.1 11:10:49.314 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Completing Build operation 'Run build' 11:10:49.317 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs) 11:10:49.317 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs) 11:10:49.317 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory] Deleted 2 resolution results binary files in 0.002 secs 11:10:49.319 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopping 0 deployment handles 11:10:49.319 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopped deployment handles 11:10:49.320 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for Artifact transforms cache (/Users/user/.gradle/caches/transforms-1) 11:10:49.321 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on Artifact transforms cache (/Users/user/.gradle/caches/transforms-1). 11:10:49.321 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache Generated Gradle JARs cache (/Users/user/.gradle/caches/4.4/generated-gradle-jars) was closed 0 times. 11:10:49.321 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for file hash cache (/Users/user/Documents/Repos/nintendo-app/android/.gradle/4.4/fileHashes) 11:10:49.321 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on file hash cache (/Users/user/Documents/Repos/nintendo-app/android/.gradle/4.4/fileHashes). 11:10:49.322 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for artifact cache (/Users/user/.gradle/caches/modules-2) 11:10:49.322 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-artifact.bin (/Users/user/.gradle/caches/modules-2/metadata-2.36/module-artifact.bin) 11:10:49.322 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-metadata.bin (/Users/user/.gradle/caches/modules-2/metadata-2.36/module-metadata.bin) 11:10:49.322 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on artifact cache (/Users/user/.gradle/caches/modules-2). 11:10:49.322 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has finished executing the build. 11:10:49.373 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientInputForwarder] Dispatching close input message: org.gradle.launcher.daemon.protocol.CloseInput@4daaa059 11:10:49.373 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 14: dispatching class org.gradle.launcher.daemon.protocol.CloseInput 11:10:49.374 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClient] Received result Failure[value=org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Build file '/Users/user/Documents/Repos/nintendo-app/android/build.gradle' line: 27 A problem occurred configuring project ':detox'.] from daemon DaemonInfo{pid=68315, address=[fafa5f9c-014b-4b81-b273-ad186c9b3bd6 port:56398, addresses:[/0:0:0:0:0:0:0:1, /127.0.0.1]], state=Idle, lastBusy=1539248959921, context=DefaultDaemonContext[uid=cbf2e4c5-1f2a-49ad-840e-c0e93a47326a,javaHome=/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home,daemonRegistryDir=/Users/user/.gradle/daemon,pid=68315,idleTimeout=10800000,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]} (build should be done). 11:10:49.374 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: dispatching class org.gradle.launcher.daemon.protocol.Finished 11:10:49.375 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: connection stop
Additionally I cannot event build react-native android:
nadzic@MAC-NADZIC:~/Documents/Repos/nintendo-app$ react-native run-android Scanning folders for symlinks in /Users/user/Documents/Repos/nintendo-app/node_modules (20ms) JS server already running. Building and installing the app on the device (cd android && ./gradlew installDebug)...
Configure project :app WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore. Use 'android.enableAapt2=true' to remove this warning. It will be removed at the end of 2018.. WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
Configure project :detox WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore. Use 'android.enableAapt2=true' to remove this warning. It will be removed at the end of 2018..
FAILURE: Build failed with an exception.
-
Where: Build file '/Users/user/Documents/Repos/nintendo-app/android/build.gradle' line: 27
-
What went wrong: A problem occurred configuring project ':detox'.
Failed to notify project evaluation listener. 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. Android tasks have already been created. This happens when calling android.applicationVariants, android.libraryVariants or android.testVariants.
I think it is problem with gradle, with versions.
Root build.gradle (android/build.gradle):
`subprojects { project.configurations.all { afterEvaluate {project -> if (project.hasProperty("android")) { android { compileSdkVersion 27 buildToolsVersion '27.0.0' } } } resolutionStrategy.eachDependency { details -> if (details.requested.group == 'com.android.support' && !details.requested.name.contains('multidex') ) { details.useVersion "27.0.0" } } } }
buildscript { repositories { jcenter() google() } dependencies { // classpath 'com.android.tools.build:gradle:2.2.3' classpath 'com.android.tools.build:gradle:3.1.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }
allprojects { repositories { mavenLocal() jcenter() google() maven { url "https://jitpack.io" } maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url "$rootDir/../node_modules/react-native/android" } } } `
App build.gralde (android/app/build.gradle):
`apply plugin: "com.android.application"
import com.android.build.OutputFile
/**
- The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
- and bundleReleaseJsAndAssets).
- These basically call
react-native bundlewith the correct arguments during the Android build - cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
- bundle directly from the development server. Below you can see all the possible configurations
- and their defaults. If you decide to add a configuration block, make sure to add it before the
apply from: "../../node_modules/react-native/react.gradle"line. *- project.ext.react = [
- // the name of the generated asset file containing your JS bundle
- bundleAssetName: "index.android.bundle", *
- // the entry file for bundle generation
- entryFile: "index.android.js", *
- // whether to bundle JS and assets in debug mode
- bundleInDebug: false, *
- // whether to bundle JS and assets in release mode
- bundleInRelease: true, *
- // whether to bundle JS and assets in another build variant (if configured).
- // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
- // The configuration property can be in the following formats
- // 'bundleIn${productFlavor}${buildType}'
- // 'bundleIn${buildType}'
- // bundleInFreeDebug: true,
- // bundleInPaidRelease: true,
- // bundleInBeta: true, *
- // whether to disable dev mode in custom build variants (by default only disabled in release)
- // for example: to disable dev mode in the staging build type (if configured)
- devDisabledInStaging: true,
- // The configuration property can be in the following formats
- // 'devDisabledIn${productFlavor}${buildType}'
- // 'devDisabledIn${buildType}' *
- // the root of your project, i.e. where "package.json" lives
- root: "../../", *
- // where to put the JS bundle asset in debug mode
- jsBundleDirDebug: "$buildDir/intermediates/assets/debug", *
- // where to put the JS bundle asset in release mode
- jsBundleDirRelease: "$buildDir/intermediates/assets/release", *
- // where to put drawable resources / React Native assets, e.g. the ones you use via
- // require('./image.png')), in debug mode
- resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", *
- // where to put drawable resources / React Native assets, e.g. the ones you use via
- // require('./image.png')), in release mode
- resourcesDirRelease: "$buildDir/intermediates/res/merged/release", *
- // by default the gradle tasks are skipped if none of the JS files or assets change; this means
- // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
- // date; if you have any other folders that you want to ignore for performance reasons (gradle
- // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
- // for example, you might want to remove it from here.
- inputExcludes: ["android/", "ios/"], *
- // override which node gets called and with what additional arguments
- nodeExecutableAndArgs: ["node"], *
- // supply additional arguments to the packager
- extraPackagerArgs: []
- ] */
project.ext.react = [ entryFile: "index.js" ]
apply from: "../../node_modules/react-native/react.gradle" apply from: "../../node_modules/react-native-code-push/android/codepush.gradle"
/**
- Set this to true to create two separate APKs instead of one:
-
- An APK that only works on ARM devices
-
- An APK that only works on x86 devices
- The advantage is the size of the APK is reduced by about 4MB.
- Upload all the APKs to the Play Store and people will download
- the correct one based on the CPU architecture of their device. */ def enableSeparateBuildPerCPUArchitecture = false
/**
- Run Proguard to shrink the Java bytecode in release builds. */ def enableProguardInReleaseBuilds = false
android { compileSdkVersion 27 buildToolsVersion "27.0.1"
defaultConfig {
applicationId "com.detoxtesting"
testBuildType System.getProperty('testBuildType', 'debug') //this will later be used to control the test apk build type
missingDimensionStrategy "minReactNative", "minReactNative46" //read note
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
minSdkVersion 17
targetSdkVersion 22
versionCode 1
versionName "1.0"
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
signingConfigs {
release {
if (System.getenv("BITRISEIO_ANDROID_KEYSTORE_URL")) {
storeFile file(System.getenv("BITRISE_SOURCE_DIR") + "/android.keystore")
storePassword System.getenv("BITRISEIO_ANDROID_KEYSTORE_PASSWORD")
keyAlias System.getenv("BITRISEIO_ANDROID_KEYSTORE_ALIAS")
keyPassword System.getenv("BITRISEIO_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD")
} else {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86"
}
}
buildTypes {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
}
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
def versionCodes = ["armeabi-v7a":1, "x86":2]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
}
}
}
}
dependencies { androidTestImplementation(project(path: ":detox")) androidTestImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test:rules:1.0.1' compile project(':react-native-code-push') compile project(':react-native-device-info') compile project(':react-native-camera') compile project(':react-native-view-overflow') compile fileTree(dir: "libs", include: ["*.jar"]) compile "com.facebook.react:react-native:+" // From node_modules compile (project(':react-native-camera')) { exclude group: "com.google.android.gms" compile 'com.android.support:exifinterface:27.+' compile ('com.google.android.gms:play-services-vision:12.0.1') { force = true } } }
// Run this once to be able to run the application with BUCK // puts all compile dependencies into folder libs for BUCK to use task copyDownloadableDepsToLibs(type: Copy) { from configurations.compile into 'libs' } `
Issue solved, problem was in root build.gradle, I had to use for subprojects:
subprojects {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
}
}
}
}
I hope it helps!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
Closing this issue