Fabric成功地完成了我的项目.在某一天突然它开始给我错误“错误:(18,0)插件ID’io.fabric’找不到”.我检查了一切,但它已正确集成.请帮忙解决
外build.gradle
buildscript { repositorIEs { maven { url 'https://maven.fabric.io/public' } } dependencIEs { classpath 'io.fabric.tools:gradle:1.+' }}
内部build.gradle
apply plugin: 'com.androID.application' apply plugin: 'io.fabric' repositorIEs { maven { url 'https://maven.fabric.io/public' } } dependencIEs { compile filetree(include: ['*.jar'], dir: 'libs') compile('com.crashlytics.sdk.androID:crashlytics:2.6.7@aar') { transitive = true; } }apply plugin: 'com.Google.gms.Google-services'
解决方法:
您需要在外部build.gradle文件中添加类路径
dependencIEs { classpath 'io.fabric.tools:gradle:1.+'}
完整的外部build.gradle文件如下所示
buildscript { repositorIEs { maven { url 'https://maven.fabric.io/public' } } dependencIEs { // These docs use an open ended version so that our plugin // can be updated quickly in response to AndroID tooling updates // We recommend changing it to the latest version from our changelog: // https://docs.fabric.io/androID/changelog.HTML#fabric-gradle-plugin // Add more class path here as per your project requirement classpath 'io.fabric.tools:gradle:1.+' }}
总结 以上是内存溢出为你收集整理的android – 错误:(18,0)没有找到id为’io.fabric’的插件全部内容,希望文章能够帮你解决android – 错误:(18,0)没有找到id为’io.fabric’的插件所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)