#39 Difficulties building with Debian's Android SDK

오픈
UltrasonicMadness6 년 전을 오픈 · 1개의 코멘트

I'm having issues building Internet Radio with Debian's Android SDK. When building on Debian 9 with the latest software, I get this error when running 'gradle build', whether or not I have previously followed the instructions on https://wiki.debian.org/AndroidTools

$ gradle build

FAILURE: Build failed with an exception.

* Where:
Build file '/home/usm/Software/git/InternetRadio/build.gradle' line: 8

* What went wrong:
A problem occurred evaluating root project 'InternetRadio'.
> Could not find method google() for arguments [] on repository container.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.713 secs

Replacing google() with maven { url 'https://maven.google.com/' } (from F-Droid's build.gradle) changes the error message to this:

$ gradle build

FAILURE: Build failed with an exception.

* Where:
Build file '/home/usm/Software/git/InternetRadio/app/build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
   > Minimum supported Gradle version is 4.4. Current version is 3.2.1. If using the gradle wrapper, try editing the distributionUrl in /home/usm/Software/git/InternetRadio/gradle/wrapper/gradle-wrapper.properties to gradle-4.4-all.zip

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.241 secs

Checking the gradle-wrapper.properties file, the distributionUrl already appears to be set to the value recommended by the error. Removing the remainder of the URL so it is only 'gradle-4.4-all.zip' has no effect.

I'm having issues building Internet Radio with Debian's Android SDK. When building on Debian 9 with the latest software, I get this error when running 'gradle build', whether or not I have previously followed the instructions on https://wiki.debian.org/AndroidTools $ gradle build FAILURE: Build failed with an exception. * Where: Build file '/home/usm/Software/git/InternetRadio/build.gradle' line: 8 * What went wrong: A problem occurred evaluating root project 'InternetRadio'. > Could not find method google() for arguments [] on repository container. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 1.713 secs Replacing google() with maven { url 'https://maven.google.com/' } (from F-Droid's build.gradle) changes the error message to this: $ gradle build FAILURE: Build failed with an exception. * Where: Build file '/home/usm/Software/git/InternetRadio/app/build.gradle' line: 1 * What went wrong: A problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.android.application'] > Minimum supported Gradle version is 4.4. Current version is 3.2.1. If using the gradle wrapper, try editing the distributionUrl in /home/usm/Software/git/InternetRadio/gradle/wrapper/gradle-wrapper.properties to gradle-4.4-all.zip * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 2.241 secs Checking the gradle-wrapper.properties file, the distributionUrl already appears to be set to the value recommended by the error. Removing the remainder of the URL so it is only 'gradle-4.4-all.zip' has no effect.
vaeringjar 코멘트됨, 6 년 전

Got your message. Thanks for writing this up to remind me. I will take a look.

Got your message. Thanks for writing this up to remind me. I will take a look.
로그인하여 이 대화에 참여
레이블 없음
마일스톤 없음
담당자 없음
참여자 2명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.