質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Cordova

Cordovaは様々なデバイスで使うことができるオープンソースなモバイル用開発プラットフォームです。開発者に各デバイスの元のプラットフォームで開発する必要をなくし、HTML・JavaScript・CSSなどの一般的なウェブのテクノロジーを使ってすべてのデバイスで展開することができるモバイルのアプリケーションを生成することを可能にします。

Q&A

0回答

301閲覧

corodova buildでBUILD FAILEDが発生する

TS3161

総合スコア4

Cordova

Cordovaは様々なデバイスで使うことができるオープンソースなモバイル用開発プラットフォームです。開発者に各デバイスの元のプラットフォームで開発する必要をなくし、HTML・JavaScript・CSSなどの一般的なウェブのテクノロジーを使ってすべてのデバイスで展開することができるモバイルのアプリケーションを生成することを可能にします。

0グッド

0クリップ

投稿2020/01/04 14:43

編集2020/01/04 14:45

前提・実現したいこと

ここに質問の内容を詳しく書いてください。
(例)PHP(CakePHP)で●●なシステムを作っています。
■■な機能を実装中に以下のエラーメッセージが発生しました。

発生している問題・エラーメッセージ

cordovaで必要なJDKやプラグイン等をダウンロードし、生成したフォルダ内でandroidプラットフォームを追加した 状態でbuildするとエラーが発生します。

該当のソースコード

PS C:\Users\hp\rapp> cordova build Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=C:\Users\hp\AppData\Local\Android\Sdk (recommended setting) ANDROID_HOME=C:\Users\hp\AppData\Local\Android\Sdk (DEPRECATED) Starting a Gradle Daemon (subsequent builds will be faster) BUILD SUCCESSFUL in 40s 1 actionable task: 1 executed Subproject Path: CordovaLib Subproject Path: app Downloading https://services.gradle.org/distributions/gradle-4.10.3-all.zip ...........10%...........20%...........30%...........40%............50%...........60%...........70%...........80%...........90%............100% Welcome to Gradle 4.10.3! Here are the highlights of this release: - Incremental Java compilation by default - Periodic Gradle caches cleanup - Gradle Kotlin DSL 1.0-RC6 - Nested included builds - SNAPSHOT plugin versions in the `plugins {}` block For more details see https://docs.gradle.org/4.10.3/release-notes.html Starting a Gradle Daemon (subsequent builds will be faster) FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'android'. > Could not resolve all artifacts for configuration ':classpath'. > Could not download builder.jar (com.android.tools.build:builder:3.3.0) > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.3.0/builder-3.3.0.jar'. > Read timed out > Could not download manifest-merger.jar (com.android.tools.build:manifest-merger:26.3.0) > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/manifest-merger/26.3.0/manifest-merger-26.3.0.jar'. > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/manifest-merger/26.3.0/manifest-merger-26.3.0.jar'. > Connect to dl.google.com:443 [dl.google.com/216.58.199.238] failed: Connection timed out: connect > Could not download bundletool.jar (com.android.tools.build:bundletool:0.6.0) > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/0.6.0/bundletool-0.6.0.jar'. > Read timed out > Could not download bcprov-jdk15on.jar (org.bouncycastle:bcprov-jdk15on:1.56) > Could not get resource 'https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.jar'. > Read timed out > Could not download fastutil.jar (it.unimi.dsi:fastutil:7.2.0) > Could not get resource 'https://jcenter.bintray.com/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.jar'. > Read timed out > Could not download guava.jar (com.google.guava:guava:26.0-jre) > Could not get resource 'https://jcenter.bintray.com/com/google/guava/guava/26.0-jre/guava-26.0-jre.jar'. > Read timed out > Could not download gson.jar (com.google.code.gson:gson:2.8.0) > Could not get resource 'https://jcenter.bintray.com/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar'. > Read timed out 上記のようなCloud not downloadやRead timed out が延々と続き最終的に下記のような文で終わります * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 6m 7s

試したこと

何か欠けているツールなどがあるのかと思い、cordova requirementsコマンドを実行しましたが全項目正常でした。
power shellのエラーメッセージのコマンドラインにあるURL(https://jcenter.bintray.com/com/sun/istack/istack-commons-runtime/2.21/istack-commons-runtime-2.21.jar等)にアクセスするとダウンロードしますかのメッセージだけが表示されます。

補足情報(FW/ツールのバージョンなど)

OS:Windows10
Java JDK:1.8.0
Gradle: 6.0.1
当方無線LAN環境ですが、これもエラーの原因だったりするのでしょうか?

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問