cordova-plugin-firebase
所以我使用visualstudio2017,我需要创建一个带有推送通知的android项目。所以我安装了这个插件,之后,当我尝试运行设备时,我从VisualStudio2017收到这个错误。
Severity Code Description Project File Line Suppression State
Error at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:606) Mivebo 1
Error Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence. Mivebo 1
Error java.lang.IllegalStateException: buildToolsVersion is not specified. Mivebo 1
Error at com.google.common.base.Preconditions.checkState(Preconditions.java:176) Mivebo 1
Error at com.android.build.gradle.BasePlugin$10$1.call(BasePlugin.java:572) Mivebo 1
Error at com.android.build.gradle.BasePlugin$10$1.call(BasePlugin.java:569) Mivebo 1
Error at com.android.builder.profile.ThreadRecorder$1.record(ThreadRecorder.java:55) Mivebo 1
Error at com.android.builder.profile.ThreadRecorder$1.record(ThreadRecorder.java:47) Mivebo 1
Error at com.android.build.gradle.BasePlugin$10.execute(BasePlugin.java:568) Mivebo 1
Error at com.android.build.gradle.BasePlugin$10.execute(BasePlugin.java:565) Mivebo 1
Error at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:93) Mivebo 1
Error at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:82) Mivebo 1
Error at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44) Mivebo 1
Error at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79) Mivebo 1
Error at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:30) Mivebo 1
Error at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) Mivebo 1
Error at com.sun.proxy.$Proxy10.afterEvaluate(Unknown Source) Mivebo 1
Error at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:67) Mivebo 1
Error at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:61) Mivebo 1
Error at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:529) Mivebo 1
Error at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:90) Mivebo 1
Error at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:42) Mivebo 1
Error at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35) Mivebo 1
Error at org.gradle.initialization.DefaultGradleLauncher$2.run(DefaultGradleLauncher.java:125) Mivebo 1
Error at org.gradle.internal.Factories$1.create(Factories.java:22) Mivebo 1
Error at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) Mivebo 1
Error at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52) Mivebo 1
Error at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:122) Mivebo 1
Error at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32) Mivebo 1
Error at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99) Mivebo 1
Error at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93) Mivebo 1
Error at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) Mivebo 1
Error at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62) Mivebo 1
Error at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93) Mivebo 1
Error at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82) Mivebo 1
Error at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94) Mivebo 1
Error at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28) Mivebo 1
Error at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) Mivebo 1
Error at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43) Mivebo 1
Error at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28) Mivebo 1
Error at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:81) Mivebo 1
Error at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:46) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:52) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) Mivebo 1
Error at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37) Mivebo 1
Error at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26) Mivebo 1
Error at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34) Mivebo 1
Error at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72) Mivebo 1
Error at org.gradle.util.Swapper.swap(Swapper.java:38) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72) Mivebo 1
Error at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) Mivebo 1
Error at org.gradle.launcher.daemon.server.health.DaemonHealthTracker.execute(DaemonHealthTracker.java:47) Mivebo 1
Error at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) Mivebo 1
Error at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) Mivebo 1
Error at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) Mivebo 1
Error at org.gradle.launcher.daemon.server.health.HintGCAfterBuild.execute(HintGCAfterBuild.java:41) Mivebo 1
Error at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50) Mivebo 1
Error at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:246) Mivebo 1
Error at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) Mivebo 1
Error at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40) Mivebo 1
Error at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) Mivebo 1
Error at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) Mivebo 1
Error at java.lang.Thread.run(Thread.java:748) Mivebo 1
Error FAILURE: Build failed with an exception. Mivebo 1
Error * Where: Mivebo 1
Error Build file 'C:\projects\Mivebo\Mivebo\platforms\android\build.gradle' line: 45 Mivebo 1
Error * What went wrong: Mivebo 1
Error A problem occurred evaluating root project 'android'. Mivebo 1
Error > Could not find method google() for arguments [] on repository container. Mivebo 1
Error * Try: Mivebo 1
Error Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Mivebo 1
Error Error: cmd: Command failed with exit code 1 Error output: Mivebo 1
Error Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence. Mivebo 1
Error java.lang.IllegalStateException: buildToolsVersion is not specified. Mivebo 1
Error at com.google.common.base.Preconditions.checkState(Preconditions.java:176) Mivebo 1
Error at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:606) Mivebo 1
Error at com.android.build.gradle.BasePlugin$10$1.call(BasePlugin.java:572) Mivebo 1
Error at com.android.build.gradle.BasePlugin$10$1.call(BasePlugin.java:569) Mivebo 1
Error at com.android.builder.profile.ThreadRecorder$1.record(ThreadRecorder.java:55) Mivebo 1
Error at com.android.builder.profile.ThreadRecorder$1.record(ThreadRecorder.java:47) Mivebo 1
Error at com.android.build.gradle.BasePlugin$10.execute(BasePlugin.java:568) Mivebo 1
Error at com.android.build.gradle.BasePlugin$10.execute(BasePlugin.java:565) Mivebo 1
Error at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:93) Mivebo 1
Error at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:82) Mivebo 1
Error at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44) Mivebo 1
Error at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79) Mivebo 1
Error at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:30) Mivebo 1
Error at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) Mivebo 1
Error at com.sun.proxy.$Proxy10.afterEvaluate(Unknown Source) Mivebo 1
Error at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:67) Mivebo 1
Error at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:61) Mivebo 1
Error at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:529) Mivebo 1
Error at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:90) Mivebo 1
Error at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:42) Mivebo 1
Error at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35) Mivebo 1
Error at org.gradle.initialization.DefaultGradleLauncher$2.run(DefaultGradleLauncher.java:125) Mivebo 1
Error at org.gradle.internal.Factories$1.create(Factories.java:22) Mivebo 1
Error at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) Mivebo 1
Error at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52) Mivebo 1
Error at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:122) Mivebo 1
Error at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32) Mivebo 1
Error at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99) Mivebo 1
Error at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93) Mivebo 1
Error at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) Mivebo 1
Error at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62) Mivebo 1
Error at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93) Mivebo 1
Error at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82) Mivebo 1
Error at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94) Mivebo 1
Error at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28) Mivebo 1
Error at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) Mivebo 1
Error at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43) Mivebo 1
Error at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28) Mivebo 1
Error at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:81) Mivebo 1
Error at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:46) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:52) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) Mivebo 1
Error at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37) Mivebo 1
Error at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26) Mivebo 1
Error at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34) Mivebo 1
Error at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72) Mivebo 1
Error at org.gradle.util.Swapper.swap(Swapper.java:38) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72) Mivebo 1
Error at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) Mivebo 1
Error at org.gradle.launcher.daemon.server.health.DaemonHealthTracker.execute(DaemonHealthTracker.java:47) Mivebo 1
Error at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) Mivebo 1
Error at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) Mivebo 1
Error at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) Mivebo 1
Error at org.gradle.launcher.daemon.server.health.HintGCAfterBuild.execute(HintGCAfterBuild.java:41) Mivebo 1
Error at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) Mivebo 1
Error at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50) Mivebo 1
Error at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:246) Mivebo 1
Error at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) Mivebo 1
Error at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40) Mivebo 1
Error at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) Mivebo 1
Error at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) Mivebo 1
Error at java.lang.Thread.run(Thread.java:748) Mivebo 1
Error FAILURE: Build failed with an exception. Mivebo 1
Error * Where: Mivebo 1
因此,在安装插件之前,应用程序在设备上运行。
我已经设置了firebase页面和id应用程序,但没有在设备上启动。
我还为cordova安装了google play服务插件。但还是不行。
也许我忘了安装什么?
谢谢你的帮助。
我的目标是在Android设备上从firebase发送推送通知。
谢谢你的帮助。