【问题标题】:Could not find .jar file Searched in the following locations: https://jcenter.bintray.com/找不到 .jar 文件 在以下位置搜索:https://jcenter.bintray.com/
【发布时间】:2016-05-09 14:36:33
【问题描述】:

我正在尝试将我的库上传到 Jcenter 当我测试我的库时,我得到了这个错误 找不到 .jar 文件 在以下位置搜索:https://jcenter.bintray.com/ 而且我在我的仓库中没有找到 .arr 文件.. 请帮忙:)enter image description here

【问题讨论】:

标签: android libraries jcenter


【解决方案1】:

您的脚本同时发布了 debugrelease 工件。但是您添加依赖项而不指定其中任何一个。另外,您需要指定aar 类型:

compile 'com.abanoub.androidlib:walkthrough:1.0.0:release@aar'

【讨论】:

  • Gradle BUILD SUCCESSFUL .. 但是当我尝试使用我的 lib 类时它不存在 ..
  • 我下载了你的工件,里面没有类,除了BuildConfig。组装有问题。附上你的build.gradle plz
  • 应用插件:'com.android.library' android { compileSdkVersion 23 buildToolsVersion "23.0.2" publishNonDefault true defaultConfig { minSdkVersion 14 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } 依赖项 { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support: appcompat-v7:23.1.1'
  • @AbanoubSamaan,越来越难了。请创建新问题why your artifact has no classes。附上组装和发布工件的build.gradle
  • 嗨@AbanoubSamaan,你是如何解决的。我的库也面临同样的问题。需要你的帮助。
【解决方案2】:

就我而言,这是由缓存问题引起的。发现在另一台计算机上,它按预期工作。 重新创建项目解决了这个问题。

【讨论】:

    猜你喜欢
    • 2019-04-17
    • 2019-03-30
    • 2022-11-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-02
    • 2020-06-29
    相关资源
    最近更新 更多