zoukankan      html  css  js  c++  java
  • Android Studio添加应用作为依赖时报错Error:Dependency MonthText:xlistview:unspecified on project app resolves to an APK archive which is not supported as a compilation dependency. File: 及其解决方案

    Error:Dependency MonthText:xlistview:unspecified on project app resolves to an APK archive which is not supported as a compilation dependency. File: E:AndroidcodeandroidstudioprojectMonthTextxlistviewuildoutputsapkxlistview-release-unsigned.apk

    解决方案:把依赖库的build.gradle文件中最上边的

     错误: apply plugin: 'com.android.application'
    改为: apply plugin: 'com.android.library'
    还有:要删除defaultConfig中的applicationId "com.limxing.xlistview"
    这个报错主要原因是因为依赖库之前是一个独立的应用,需要把它的设置为库,而不是应用

    删除applicationId "com.limxing.xlistview"的原因是:applicationId 这是应用才有的id,库则没有,所以要删除
    解决方案引用自(原文地址):http://www.07net01.com/2015/08/917039.html
  • 相关阅读:
    数据结构笔记(一)
    Distance dependent Chinese Restaurant Processes
    距离依赖中餐馆过程
    AOP技术-02
    AOP技术-01
    Oracle-06
    web-02-css01
    web-02-css
    web-01
    jQuery对ajax的支持
  • 原文地址:https://www.cnblogs.com/lizhanqi/p/5716110.html
Copyright © 2011-2022 走看看