google play services - Use Android DataBinding plugin parallel to GoogleServices plugin -
was able use android databinding plugin parallel googleservices pluginplugin?
dependencies { classpath 'com.android.tools.build:gradle:1.3.1' classpath 'com.google.gms:google-services:1.4.0-beta3' classpath 'com.android.databinding:databinder:1.0-rc1' } apply plugin: 'com.google.gms.google-services' apply plugin: 'com.android.databinding'
and whole project exploded. when remove services plugin databinding works.
this gradle's stacktrace.
[data binding plugin]: failed setup data binding java.lang.nosuchmethoderror: com.android.build.gradle.appextension.getapplicationvariants()lorg/gradle/api/internal/defaultdomainobjectset; @ android.databinding.tool.databinderplugin.createxmlprocessorforapp(databinderplugin.java:233) @ android.databinding.tool.databinderplugin.createxmlprocessor(databinderplugin.java:200) @ android.databinding.tool.databinderplugin.access$200(databinderplugin.java:65) @ android.databinding.tool.databinderplugin$1.execute(databinderplugin.java:156) @ android.databinding.tool.databinderplugin$1.execute(databinderplugin.java:152) @ org.gradle.internal.event.broadcastdispatch$actioninvocationhandler.dispatch(broadcastdispatch.java:113) @ org.gradle.internal.event.broadcastdispatch$actioninvocationhandler.dispatch(broadcastdispatch.java:102) @ org.gradle.internal.event.broadcastdispatch.dispatch(broadcastdispatch.java:87) @ org.gradle.internal.event.broadcastdispatch.dispatch(broadcastdispatch.java:31) @ org.gradle.messaging.dispatch.proxydispatchadapter$dispatchinginvocationhandler.invoke(proxydispatchadapter.java:93) @ com.sun.proxy.$proxy10.afterevaluate(unknown source) @ org.gradle.configuration.project.lifecycleprojectevaluator.notifyafterevaluate(lifecycleprojectevaluator.java:67) @ org.gradle.configuration.project.lifecycleprojectevaluator.evaluate(lifecycleprojectevaluator.java:61) @ org.gradle.api.internal.project.abstractproject.evaluate(abstractproject.java:488) @ org.gradle.api.internal.project.abstractproject.evaluate(abstractproject.java:86) @ org.gradle.execution.taskpathprojectevaluator.configure(taskpathprojectevaluator.java:35) @ org.gradle.execution.taskselector.getselection(taskselector.java:82) @ org.gradle.execution.taskselector.getselection(taskselector.java:75) @ org.gradle.execution.commandline.commandlinetaskparser.parsetasks(commandlinetaskparser.java:42) @ org.gradle.execution.tasknameresolvingbuildconfigurationaction.configure(tasknameresolvingbuildconfigurationaction.java:44) @ org.gradle.execution.defaultbuildexecuter.configure(defaultbuildexecuter.java:42) @ org.gradle.execution.defaultbuildexecuter.access$100(defaultbuildexecuter.java:23) @ org.gradle.execution.defaultbuildexecuter$1.proceed(defaultbuildexecuter.java:48) @ org.gradle.execution.excludedtaskfilteringbuildconfigurationaction.configure(excludedtaskfilteringbuildconfigurationaction.java:47) @ org.gradle.execution.defaultbuildexecuter.configure(defaultbuildexecuter.java:42) @ org.gradle.execution.defaultbuildexecuter.access$100(defaultbuildexecuter.java:23) @ org.gradle.execution.defaultbuildexecuter$1.proceed(defaultbuildexecuter.java:48) @ org.gradle.execution.defaulttasksbuildexecutionaction.configure(defaulttasksbuildexecutionaction.java:44) @ org.gradle.execution.defaultbuildexecuter.configure(defaultbuildexecuter.java:42) @ org.gradle.execution.defaultbuildexecuter.select(defaultbuildexecuter.java:35) @ org.gradle.initialization.defaultgradlelauncher$5.run(defaultgradlelauncher.java:162) @ org.gradle.internal.factories$1.create(factories.java:22) @ org.gradle.internal.progress.defaultbuildoperationexecutor.run(defaultbuildoperationexecutor.java:62) @ org.gradle.internal.progress.defaultbuildoperationexecutor.run(defaultbuildoperationexecutor.java:47) @ org.gradle.initialization.defaultgradlelauncher.runbuildoperation(defaultgradlelauncher.java:189) @ org.gradle.initialization.defaultgradlelauncher.dobuildstages(defaultgradlelauncher.java:159) @ org.gradle.initialization.defaultgradlelauncher.access$200(defaultgradlelauncher.java:35) @ org.gradle.initialization.defaultgradlelauncher$1.create(defaultgradlelauncher.java:104) @ org.gradle.initialization.defaultgradlelauncher$1.create(defaultgradlelauncher.java:97) @ org.gradle.internal.progress.defaultbuildoperationexecutor.run(defaultbuildoperationexecutor.java:62) @ org.gradle.initialization.defaultgradlelauncher.runrootbuildoperation(defaultgradlelauncher.java:184) @ org.gradle.initialization.defaultgradlelauncher.dobuild(defaultgradlelauncher.java:97) @ org.gradle.initialization.defaultgradlelauncher.run(defaultgradlelauncher.java:86) @ org.gradle.launcher.exec.inprocessbuildactionexecuter$defaultbuildcontroller.run(inprocessbuildactionexecuter.java:93) @ org.gradle.tooling.internal.provider.runner.buildmodelactionrunner.run(buildmodelactionrunner.java:50) @ org.gradle.launcher.exec.chainingbuildactionrunner.run(chainingbuildactionrunner.java:35) @ org.gradle.launcher.exec.inprocessbuildactionexecuter.execute(inprocessbuildactionexecuter.java:43) @ org.gradle.launcher.exec.inprocessbuildactionexecuter.execute(inprocessbuildactionexecuter.java:27) @ org.gradle.launcher.exec.continuousbuildactionexecuter.execute(continuousbuildactionexecuter.java:72) @ org.gradle.launcher.exec.continuousbuildactionexecuter.execute(continuousbuildactionexecuter.java:44) @ org.gradle.launcher.daemon.server.exec.executebuild.dobuild(executebuild.java:49) @ org.gradle.launcher.daemon.server.exec.buildcommandonly.execute(buildcommandonly.java:36) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.watchfordisconnection.execute(watchfordisconnection.java:37) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.resetdeprecationlogger.execute(resetdeprecationlogger.java:26) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.requeststopifsingleuseddaemon.execute(requeststopifsingleuseddaemon.java:34) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.forwardclientinput$2.call(forwardclientinput.java:74) @ org.gradle.launcher.daemon.server.exec.forwardclientinput$2.call(forwardclientinput.java:72) @ org.gradle.util.swapper.swap(swapper.java:38) @ org.gradle.launcher.daemon.server.exec.forwardclientinput.execute(forwardclientinput.java:72) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.health.daemonhealthtracker.execute(daemonhealthtracker.java:47) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.logtoclient.dobuild(logtoclient.java:66) @ org.gradle.launcher.daemon.server.exec.buildcommandonly.execute(buildcommandonly.java:36) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.establishbuildenvironment.dobuild(establishbuildenvironment.java:71) @ org.gradle.launcher.daemon.server.exec.buildcommandonly.execute(buildcommandonly.java:36) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.health.hintgcafterbuild.execute(hintgcafterbuild.java:41) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.startbuildorrespondwithbusy$1.run(startbuildorrespondwithbusy.java:50) @ org.gradle.launcher.daemon.server.daemonstatecoordinator$1.run(daemonstatecoordinator.java:246) @ org.gradle.internal.concurrent.executorpolicy$catchandrecordfailures.onexecute(executorpolicy.java:54) @ org.gradle.internal.concurrent.stoppableexecutorimpl$1.run(stoppableexecutorimpl.java:40) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745)
no need downgrade. there is/was bug in versions of gradle plugin. make things better, data binding docs little out of date. ignore parts how set up. try instead:
buildscript { dependencies { classpath 'com.android.tools.build:gradle:1.5.0-beta1' } } apply plugin: 'com.android.application' android { databinding { enabled = true } dependencies { compile 'com.android.support:recyclerview-v7:23.1.1' compile 'com.android.support:support-v4:23.1.1' compile 'com.google.android.gms:play-services:8.3.0' } }
Comments
Post a Comment