facebook twitter hatena line email

「Android/開発環境/AndroidStudio/インストール」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(ダウンロード)
(ダウンロード)
行1: 行1:
 
==ダウンロード==
 
==ダウンロード==
https://developer.android.com/sdk/installing/studio.html
+
https://developer.android.com/studio/
 +
 
 +
過去バージョンはこちら https://developer.android.com/studio/archive
  
 
過去バージョンはこちら https://developer.android.com/studio/archive
 
過去バージョンはこちら https://developer.android.com/studio/archive

2018年10月10日 (水) 15:22時点における版

ダウンロード

https://developer.android.com/studio/

過去バージョンはこちら https://developer.android.com/studio/archive

過去バージョンはこちら https://developer.android.com/studio/archive

最新SDKインストール

  1. AndroidStudioを開いてtools/sdkをクリック
  2. チェックの入っているNotInstallをそのままinstallする

起動時にJVMがないといわれるエラーの対応

英語だと"android studio Android Studio was unable to find a valid JVM."なエラー

  1. jdkをDLしてインストール
$ java -version
java version "1.8.0_25"
$ launchctl setenv STUDIO_JDK /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk
$ open /Applications/Android\ Studio.app

プロジェクト実行

  • Run/Runで実行できる

Failure [INSTALL_FAILED_OLDER_SDK]エラーとなった場合

app/build.gradle

android {
-   compileSdkVersion 'android-L'
+   compileSdkVersion 20
    buildToolsVersion "20.0.0"
    defaultConfig {
        applicationId "com.example.namae1.myapplication"
        minSdkVersion 19
-       targetSdkVersion 'L'
+       targetSdkVersion 20
    }
}


Session 'app': errorエラーとなった場合

  • 端末のminバージョンが実行端末のバージョン内に入ってない可能性がある

app/build.gradle

android {
   compileSdkVersion 20
    buildToolsVersion "20.0.0"
    defaultConfig {
        applicationId "com.example.namae1.myapplication"
-       minSdkVersion 19
+       minSdkVersion 8
    }
}

Error:Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light'.エラー

ver20以前の端末で実行するとエラーが発生する。

  1. app/src/main/res/values-v21フォルダを削除する

sdkのpath変更

  1. file/Other Setting/DefaultProjectStructure
/Applications/Android Studio.app/sdkを変更する

Error:A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not find any version that matches com.android.support:support-v4:21.+.
  1. Android SDK Managerの
  2. Extras/Android Support Repositoryをインストール

uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library /

build.gradleのminSdkVersionを8から9へ

日本語対応

cd "/Applications/Android Studio.app/Contents/lib"
wget https://github.com/yuuna/IDEA_resources_jp/blob/master/resources_jp.jar

AndroidStudio再起動

参照:http://androidstudio.hatenablog.com/entry/2014/07/20/170308