[zhsq] $ cmd.exe /C "C:\Users\zzq\.gradle\wrapper\dists\gradle-3.3-all\55gk2rcmfc6p2dg9u9ohc3hw9\gradle-3.3\bin\gradle.bat clean -PAPP_VERSION=1.0.1 -PIS_JENKINS=true -PPRODUCT_FLAVOR=App -PSERVICE_BASE_URL=http://127.0.0.1 assembleAppDebug && exit %%ERRORLEVEL%%"
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\zzq\.jenkins\workspace\zhsq\build.gradle' line: 1
* What went wrong:
A problem occurred evaluating root project 'zhsq'.
> Plugin with id 'com.android.application' not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 4.537 secs
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
Set build name.
New build name is '#2-1.0.1-App-Debug'
Archiving artifacts
Finished: FAILURE
<p>一般都是gradle版本和针对android项目进行编译的gradle插件版本不兼容导致的。</p>
查看下工程目录的build.gradle中如下声明语句中的版本号,确定该版本号是否同gradle版本兼容
classpath 'com.android.tools.build:gradle:3.1.0'
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。