LoginSignup
0
0

More than 5 years have passed since last update.

Android の Library を Travis CI でビルドしたときだけエラーになったときの対処方法

Last updated at Posted at 2017-03-24

はじめに

結果だけ簡潔に書きます

モジュール名とディレクトリ名が違っていました

やったこと

ディレクトリ名: SDK
モジュール名: sdk

* What went wrong:
A problem occurred configuring project ':example'.
> Could not resolve all dependencies for configuration ':example:_debugApk'.
   > Project :example declares a dependency from configuration 'compile' to configuration 'default' which is not declared in the descriptor for project :sdk.

Android Studio の Refactor 機能を利用して、

ディレクトリ名: sdk
モジュール名: sdk

に変更すると正常にビルドできました

環境・設定

PC

  • MacBook Pro
    • macOS Sierra バージョン 10.12.3

.travis.yml

.travis.yml
language: android
sudo: required
android:
  components:
  - tools
  - platform-tools
  - build-tools-25.0.1
  - android-25
  - extra
script:
- "./gradlew clean build"
branches:
  only:
  - master
  - develop
  - "/^release.*$/"

備考

ローカルだと何の問題もなくビルドが成功しました

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0