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

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

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

Android Studioは、 Google社によって開発された、 Androidのネイティブアプリケーション開発に特化した統合開発ツールです。

Q&A

1回答

5136閲覧

Android Studio 起動時のエラーについて

kumakumatan

総合スコア213

Android Studio

Android Studioは、 Google社によって開発された、 Androidのネイティブアプリケーション開発に特化した統合開発ツールです。

0グッド

0クリップ

投稿2017/02/07 04:48

AndroidStudioで新規プロジェクトを立上げたところ下記のメッセージが表示され対処に困っています。

■エラーメッセージ

・Gradle 'Calculator' project refresh failed

エラー :Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html
Please read the following process output to find out more:

Error occurred during initialization of VM
Could not reserve enough space for 1572864KB object heap

■バージョン情報
・AndroidStudio2.2
■対処方法
・Android Support Repository
をインストールしてAndroidStudioを立上げ直した。
しかし、エラーメッセージが表示される。

ご教授宜しくお願いします。

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

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

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

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

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

guest

回答1

0

プロジェクトルート直下にある
gradle.propertiesファイルに、
org.gradle.jvmargs=-Xmx10248m -XX:MaxPermSize=256m
の一行を追加して再起動してみてください。

※org.gradle.jvmargs=~の行がすでにある場合は削除してください。
行の先頭に#がついている場合は大丈夫です。

投稿2017/02/07 05:12

abs123

総合スコア1280

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

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

kumakumatan

2017/02/07 05:55

ありがとうございます。 gradle.propertiesファイルの、 org.gradle.jvmargs を削除したところ、下記のメッセージが表示されました。 情報 :Gradle tasks [clean, :app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources] エラー :A problem occurred configuring project ':app'. > Could not resolve all dependencies for configuration ':app:_debugAndroidTestApkCopy'. > Could not resolve com.squareup:javawriter:2.1.1. Required by: Calculator:app:unspecified > com.android.support.test.espresso:espresso-core:2.2.2 > Could not resolve com.squareup:javawriter:2.1.1. > Could not get resource 'https://jcenter.bintray.com/com/squareup/javawriter/2.1.1/javawriter-2.1.1.pom'. > Could not GET 'https://jcenter.bintray.com/com/squareup/javawriter/2.1.1/javawriter-2.1.1.pom'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/108.168.243.150] failed: Connection timed out: connect > Could not resolve javax.inject:javax.inject:1. Required by: Calculator:app:unspecified > com.android.support.test.espresso:espresso-core:2.2.2 > Could not resolve javax.inject:javax.inject:1. > Could not get resource 'https://jcenter.bintray.com/javax/inject/javax.inject/1/javax.inject-1.pom'. > Could not GET 'https://jcenter.bintray.com/javax/inject/javax.inject/1/javax.inject-1.pom'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/108.168.243.150] failed: Connection timed out: connect > Could not resolve org.hamcrest:hamcrest-library:1.3. Required by: Calculator:app:unspecified > com.android.support.test.espresso:espresso-core:2.2.2 > Could not resolve org.hamcrest:hamcrest-library:1.3. > Could not get resource 'https://jcenter.bintray.com/org/hamcrest/hamcrest-library/1.3/hamcrest-library-1.3.pom'. > Could not GET 'https://jcenter.bintray.com/org/hamcrest/hamcrest-library/1.3/hamcrest-library-1.3.pom'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/108.168.243.150] failed: Connection timed out: connect > Could not resolve org.hamcrest:hamcrest-integration:1.3. Required by: Calculator:app:unspecified > com.android.support.test.espresso:espresso-core:2.2.2 > Could not resolve org.hamcrest:hamcrest-integration:1.3. > Could not get resource 'https://jcenter.bintray.com/org/hamcrest/hamcrest-integration/1.3/hamcrest-integration-1.3.pom'. > Could not GET 'https://jcenter.bintray.com/org/hamcrest/hamcrest-integration/1.3/hamcrest-integration-1.3.pom'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/108.168.243.150] failed: Connection timed out: connect > Could not resolve com.google.code.findbugs:jsr305:2.0.1. Required by: Calculator:app:unspecified > com.android.support.test.espresso:espresso-core:2.2.2 > Could not resolve com.google.code.findbugs:jsr305:2.0.1. > Could not get resource 'https://jcenter.bintray.com/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1.pom'. > Could not GET 'https://jcenter.bintray.com/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1.pom'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/52.25.137.124, jcenter.bintray.com/35.167.247.63] failed: Connection timed out: connect > Could not resolve javax.annotation:javax.annotation-api:1.2. Required by: Calculator:app:unspecified > com.android.support.test.espresso:espresso-core:2.2.2 > Could not resolve javax.annotation:javax.annotation-api:1.2. > Could not get resource 'https://jcenter.bintray.com/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.pom'. > Could not GET 'https://jcenter.bintray.com/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.pom'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/52.25.137.124, jcenter.bintray.com/35.167.247.63] failed: Connection timed out: connect しかも、「MainActivity」を開くと、「@Override」の箇所でエラーが表示されてしまいます。 「method does not Override method from its superclass」 とエラーが表示されてしまいます。 宜しくお願いします。
abs123

2017/02/07 06:08

あー、通信が出来てないっぽいですね。 プロキシとかは使用されてます?
kumakumatan

2017/02/07 06:34

社内プロキシを利用しています。
abs123

2017/02/07 06:38

gradle.propertiesに systemProp.http.proxyHost=[アドレス] systemProp.http.proxyPort=[ポート番号] の記述はありますか?
abs123

2017/02/07 06:52

おっと、会社によって設定が違う場合を失念しておりました。 とりあえず、次の設定をgradle.propertiesに追加してください。 アドレス、ポート番号などの値は、 会社の指定に従って入力してください。 systemProp.http.proxyHost=[アドレス] systemProp.http.proxyPort=[ポート番号] systemProp.http.proxyUser=[ユーザ名]※必要なければこの行はいらない systemProp.http.proxyPassword=[パスワード]※必要なければこの行はいらない systemProp.http.nonProxyHosts=[よくわかんない]※必要なければこの行はいらない systemProp.https.proxyHost=[アドレス] systemProp.https.proxyPort=[ポート番号] systemProp.https.proxyUser=[ユーザ名]※必要なければこの行はいらない systemProp.https.proxyPassword=[パスワード]※必要なければこの行はいらない systemProp.https.nonProxyHosts=[よくわかんない]※必要なければこの行はいらない
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

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

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

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問