关于AndroidStudio运行项目时出现 Could not create plugin of type 'AppPlugin'.

来源:互联网 发布:詹姆斯个人数据统计 编辑:程序博客网 时间:2024/05/19 14:16
开发工具是 Android Studio 2.0 Preview4 
当打开开发工具的时候提示需要更新Android SDK、 Android Studio 版本。这个不用在意,不更新也能用

但是有Gradle需要更新,不更新的话用不了。

如何更新参考http://blog.csdn.net/mr_tony/article/details/50583552 这个链接

更新完成之后运行项目发现出现错误(话说上一次还没出现呢.....):

Error:Execution failed for task ':app:buildInfoDebugLoader'.
> Exception while loading build-info.xml : null

这个问题出现之后需要clean一下项目并重新Rebuild Project就好了。



话说更新过程中出了一个问题,运行项目的时候报了一个错误:

Error:(1, 1) A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
   > Could not create plugin of type 'AppPlugin'.

后来发现是下载了Gradle,但是没有修改

dependencies {    classpath 'com.android.tools.build:gradle:2.1.0-alpha3'    // NOTE: Do not place your application dependencies here; they belong    // in the individual module build.gradle files}
这个配置到最新的.....


此问题仅做笔记使用,如果能够帮到你,我将十分高兴。

0 0