Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Maven library error when building apk #113

Open
tranduc1710 opened this issue Mar 5, 2020 · 0 comments
Open

Maven library error when building apk #113

tranduc1710 opened this issue Mar 5, 2020 · 0 comments

Comments

@tranduc1710
Copy link

tranduc1710 commented Mar 5, 2020

I encountered an error when building the library maven APK

INFO: Call stack for the definition of repository 'maven' which is a coursier_fetch (rule definition at C:/users/trand/_bazel_trand/lkcawj2i/external/rules_jvm_external/coursier.bzl:383:18):
 - C:/users/trand/_bazel_trand/lkcawj2i/external/rules_jvm_external/defs.bzl:59:5
 - A:/android/google-authenticator-android-master/WORKSPACE:45:1
ERROR: An error occurred during the fetch of repository 'maven':
   Error while fetching artifact sources with coursier: Error getting scaladex infos:
  download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7 (Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7) while downloading https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7
ERROR: A:/android/google-authenticator-android-master/java/com/google/android/apps/authenticator/BUILD:28:1: //java/com/google/android/apps/authenticator:authenticator_lib depends on @maven//:com_android_support_appcompat_v7 in repository @maven which failed to fetch. no such package '@maven//': Error while fetching artifact sources with coursier: Error getting scaladex infos:
  download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7 (Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7) while downloading https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7
ERROR: A:/android/google-authenticator-android-master/java/com/google/android/apps/authenticator/BUILD:28:1: //java/com/google/android/apps/authenticator:authenticator_lib depends on @maven//:com_android_support_design in repository @maven which failed to fetch. no such package '@maven//': Error while fetching artifact sources with coursier: Error getting scaladex infos:
  download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7 (Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7) while downloading https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7
ERROR: A:/android/google-authenticator-android-master/java/com/google/android/apps/authenticator/BUILD:28:1: //java/com/google/android/apps/authenticator:authenticator_lib depends on @maven//:com_android_support_loader in repository @maven which failed to fetch. no such package '@maven//': Error while fetching artifact sources with coursier: Error getting scaladex infos:
  download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7 (Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7) while downloading https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7
ERROR: A:/android/google-authenticator-android-master/java/com/google/android/apps/authenticator/BUILD:28:1: //java/com/google/android/apps/authenticator:authenticator_lib depends on @maven//:com_android_support_multidex in repository @maven which failed to fetch. no such package '@maven//': Error while fetching artifact sources with coursier: Error getting scaladex infos:
  download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7 (Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7) while downloading https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7
ERROR: A:/android/google-authenticator-android-master/java/com/google/android/apps/authenticator/BUILD:28:1: //java/com/google/android/apps/authenticator:authenticator_lib depends on @maven//:com_android_support_support_annotations in repository @maven which failed to fetch. no such package '@maven//': Error while fetching artifact sources with coursier: Error getting scaladex infos:
  download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7 (Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7) while downloading https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7
ERROR: A:/android/google-authenticator-android-master/java/com/google/android/apps/authenticator/BUILD:28:1: //java/com/google/android/apps/authenticator:authenticator_lib depends on @maven//:com_android_support_support_compat in repository @maven which failed to fetch. no such package '@maven//': Error while fetching artifact sources with coursier: Error getting scaladex infos:
  download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7 (Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7) while downloading https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7
ERROR: A:/android/google-authenticator-android-master/java/com/google/android/apps/authenticator/BUILD:28:1: //java/com/google/android/apps/authenticator:authenticator_lib depends on @maven//:com_android_support_support_fragment in repository @maven which failed to fetch. no such package '@maven//': Error while fetching artifact sources with coursier: Error getting scaladex infos:
  download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7 (Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7) while downloading https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7
ERROR: A:/android/google-authenticator-android-master/java/com/google/android/apps/authenticator/BUILD:28:1: //java/com/google/android/apps/authenticator:authenticator_lib depends on @maven//:com_android_support_support_v4 in repository @maven which failed to fetch. no such package '@maven//': Error while fetching artifact sources with coursier: Error getting scaladex infos:
  download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7 (Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7) while downloading https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7
ERROR: A:/android/google-authenticator-android-master/java/com/google/android/apps/authenticator/BUILD:28:1: //java/com/google/android/apps/authenticator:authenticator_lib depends on @maven//:com_android_support_viewpager in repository @maven which failed to fetch. no such package '@maven//': Error while fetching artifact sources with coursier: Error getting scaladex infos:
  download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7 (Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7) while downloading https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7
ERROR: A:/android/google-authenticator-android-master/java/com/google/android/apps/authenticator/BUILD:28:1: //java/com/google/android/apps/authenticator:authenticator_lib depends on @maven//:com_google_android_gms_play_services_base in repository @maven which failed to fetch. no such package '@maven//': Error while fetching artifact sources with coursier: Error getting scaladex infos:
  download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7 (Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7) while downloading https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7
ERROR: A:/android/google-authenticator-android-master/java/com/google/android/apps/authenticator/BUILD:28:1: //java/com/google/android/apps/authenticator:authenticator_lib depends on @maven//:com_google_android_gms_play_services_vision in repository @maven which failed to fetch. no such package '@maven//': Error while fetching artifact sources with coursier: Error getting scaladex infos:
  download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7 (Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7) while downloading https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7
ERROR: A:/android/google-authenticator-android-master/java/com/google/android/apps/authenticator/BUILD:28:1: //java/com/google/android/apps/authenticator:authenticator_lib depends on @maven//:com_google_android_gms_play_services_vision_common in repository @maven which failed to fetch. no such package '@maven//': Error while fetching artifact sources with coursier: Error getting scaladex infos:
  download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7 (Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7) while downloading https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7
ERROR: A:/android/google-authenticator-android-master/java/com/google/android/apps/authenticator/BUILD:28:1: //java/com/google/android/apps/authenticator:authenticator_lib depends on @maven//:com_google_code_findbugs_jsr305 in repository @maven which failed to fetch. no such package '@maven//': Error while fetching artifact sources with coursier: Error getting scaladex infos:
  download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7 (Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7) while downloading https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7
ERROR: A:/android/google-authenticator-android-master/java/com/google/android/apps/authenticator/BUILD:28:1: //java/com/google/android/apps/authenticator:authenticator_lib depends on @maven//:com_google_guava_guava in repository @maven which failed to fetch. no such package '@maven//': Error while fetching artifact sources with coursier: Error getting scaladex infos:
  download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7 (Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7) while downloading https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7
ERROR: A:/android/google-authenticator-android-master/java/com/google/android/apps/authenticator/BUILD:28:1: //java/com/google/android/apps/authenticator:authenticator_lib depends on @maven//:com_squareup_dagger_dagger in repository @maven which failed to fetch. no such package '@maven//': Error while fetching artifact sources with coursier: Error getting scaladex infos:
  download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7 (Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7) while downloading https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7
ERROR: A:/android/google-authenticator-android-master/java/com/google/android/apps/authenticator/BUILD:28:1: //java/com/google/android/apps/authenticator:authenticator_lib depends on @maven//:javax_inject_javax_inject in repository @maven which failed to fetch. no such package '@maven//': Error while fetching artifact sources with coursier: Error getting scaladex infos:
  download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7 (Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7) while downloading https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7
ERROR: Analysis of target '//java/com/google/android/apps/authenticator:authenticator' failed; build aborted: no such package '@maven//': Error while fetching artifact sources with coursier: Error getting scaladex infos:
  download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7 (Server returned HTTP response code: 403 for URL: https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7) while downloading https://index.scala-lang.org/api/search?q=true&target=JVM&scalaVersion=2.12.7
INFO: Elapsed time: 267.987s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (5 packages loaded, 258 targets configured)

version bazel: 2.0.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant