Android Studio 2.3 ã
ãã¦ã³ãã¼ã ã§ããããã«ãªã£ã¦ãã¾ã。ä»åã®ãªãªã¼ã¹ã¯ IDE å
¨ä½ã®è³ªã®åä¸ãä¸å¿ã§ã。çæ§ããã®ãã£ã¼ãããã¯ã«æè¬ãããã¾ã。ç§ãã¡ã¯、ä¸çä¸ã®ä½ç¾ä¸ã¨ãã Android ã¢ããªã®ãããããã¼ã®ããã« Android Studio ãé«éãã¤ã·ã¼ã ã¬ã¹ã«ãããã¨ã«æ³¨åãã¦ãã¾ã。
Android Studio 2.3 ã§è³ªã®åä¸ãå³ãããã¨ã¯å¤§å¤ããããæã£ã¦ãã¾ãã、ä»åã®ãªãªã¼ã¹ã«ã¯éçºããã¼ã®åãã§ã¼ãºã«çµã¿è¾¼ããããã¤ãã®æ°æ©è½ã追å ããã¦ãã¾ã。ã¢ããªããã¶ã¤ã³ããéã«ã¯、ä»åã¢ãããã¼ãããã
WebP ãµãã¼ã ãã¢ããªç¨ã®ã¤ã¡ã¼ã¸ã«æ´»ç¨ã§ãã¾ã。ã¾ã、
ConstraintLayout
ã©ã¤ãã©ãª ãµãã¼ãã
Layout Editor ã®ã¦ã£ã¸ã§ãã ãã¬ãããã¢ãããã¼ãããã¦ãã¾ã。éçºãè¡ãéã«ã¯、Android Studio ã®æ°ãã
ã¢ããªãªã³ã¯ ã¢ã·ã¹ã¿ã³ã ãå©ç¨ãã¦ã¢ããªã® URI ãã¾ã¨ãã¦ç¢ºèªãããã¨ãã§ãã¾ã。ã¢ããªã®ãã«ãããããã¤ãè¡ãéã«ã¯、ã¢ãããã¼ããããå®è¡ãã¿ã³ã使ç¨ãã¦、ä¿¡é ¼æ§ãåä¸ãã¦ããã«ç´æçã«ãªã£ã
Instant Run ãå©ç¨ã§ãã¾ã。ããã«、Android Emulator ã§ã¢ããªããã¹ãããéã«、ããã¹ãã®ã³ãã¼ã¨è²¼ãä»ããè¡ããããã«ãªãã¾ãã。
VIDEO
Android Studio 2.3 ã®æ°æ©è½
質ã®åä¸ã«å ãã¦、Android Studio 2.3 ã«è¿½å ããã¦ããæ©è½ã®è©³ç´°ã¯、以ä¸ã®æ°æ©è½ãªã¹ããã確èªãã ãã。
ãã«ã
Instant Run ã®æ¹å㨠UI ã®å¤æ´: 質ã®åä¸ã®ä¸ç°ã¨ãã¦、Android Studio 2.3 ã® Instant Run ã®ä¿¡é ¼æ§ãæ¹åããããã«、ããã¤ãã®å¤§ããªå¤æ´ãè¡ã£ã¦ãã¾ã。Run ã¢ã¯ã·ã§ã³ãå®è¡ããã¨、åèµ·åãå¿
è¦ã¨ãªããããªã³ã¼ãã®å¤æ´ãåæ ããããã«、常ã«ã¢ããªã±ã¼ã·ã§ã³ãåèµ·åããã¾ã。ä¸æ¹、ã¢ããªãå®è¡ããã¾ã¾ã³ã¼ããã¹ã¯ããããæ°ãã Apply Changes ã¢ã¯ã·ã§ã³ã追å ããã¦ãã¾ã。ã¾ã、ä¿¡é ¼æ§åä¸ã®ãã、ãã¼ã¹ã¨ãªãå®è£
ã大ããå¤æ´ããã¦ãã、Instant Run ãæå¹ã«ãªã£ã¦ããã¢ããªã®èµ·åãé
ãã£ãåé¡ã解æ¶ããã¦ãã¾ã。詳細ã¯ãã¡ããã覧ãã ãã 。
æ°ãã Instant Run ãã¿ã³ã®ã¢ã¯ã·ã§ã³
ãã«ã ãã£ãã·ã¥: ãã®æ©è½ã¯ Android Studio 2.2 ã§å°å
¥ããã¾ããã、ããã©ã«ãã§ã¯ç¡å¹ã«ãªã£ã¦ãã¾ãã。ãã«ã ãã£ãã·ã¥ã¯、Android Studio ã§é«éãã«ããè¡ãããã®ãã¼ã¹ã¨ãªããã«ãæé©åæ©è½ã® 1 ã¤ã§ã。ãã®æ°ãããã«ã ãã£ãã·ã¥ã¯、Exploded AAR 㨠DEX å¤æåã®å¤é¨ã©ã¤ãã©ãªããã£ãã·ã¥ãããã¨ã«ãã£ã¦、é«éãªã¯ãªã¼ã³ãã«ããå¯è½ã«ãã¾ã。ãã«ã ãã£ãã·ã¥ã¯ã¦ã¼ã¶ã¼å
¨ä½ã対象ã¨ãªã、Android Studio 2.3 ã§ã¯ããã©ã«ãã§æå¹ã«ãªã£ã¦ãã¾ã。詳細ã¯ãã¡ããã覧ãã ãã 。
ãã¶ã¤ã³
Constraint Layout ã®ãã§ã¼ã³ã¨æ¯çã®ãµãã¼ã: Android Studio 2.3 ã«ã¯、ConstraintLayout
ã®å®å®çãªãªã¼ã¹ãå«ã¾ãã¦ãã¾ã。ä»åã®ãªãªã¼ã¹ã«å«ã¾ãã ConstraintLayout
ã§ã¯、2 ã¤ä»¥ä¸ã® Android ãã¥ã¼ãåæ¹åã«ãã§ã¼ã³ãã㦠1 次å
ã®ã°ã«ã¼ããä½æã§ããããã«ãªã£ã¦ãã¾ã。ããã¯、2 ã¤ã®ãã¥ã¼ãé£ãåããã«é
ç½®ãã¤ã¤、ä½ç½ãããå ´åã«ãã¥ã¼ãåçã«æ¡å¼µãããå ´åã«ä¾¿å©ã§ã。詳細ã¯ãã¡ããã覧ãã ãã 。
Constraint Layout ã®ãã§ã¼ã³
Constraint Layout ã®æ¯ç
Layout Editor ãã¬ãã: Layout Editor ã®ã¦ã£ã¸ã§ãã ãã¬ãããã¢ãããã¼ããã、ã¬ã¤ã¢ã¦ãã®ã¦ã£ã¸ã§ãããæ¢ãéã«æ¤ç´¢、並ã¹æ¿ã、ãã£ã«ã¿ãªã³ã°ãè¡ããããã«ãªã£ã¦ãã¾ã。ã¾ã、ãã¶ã¤ã³ ãµã¼ãã§ã¹ã«ãã©ãã°ããåã«ã¦ã£ã¸ã§ããããã¬ãã¥ã¼ã§ããããã«ããªã£ã¦ãã¾ã。詳細ã¯ãã¡ããã覧ãã ãã 。
Layout Editor ã®ã¦ã£ã¸ã§ãã ãã¬ãã
ãæ°ã«å
¥ãã®ã¬ã¤ã¢ã¦ã: ã¢ãããã¼ãããã Layout Editor ã®ãããã㣠ããã«ã§ã¯、ã¦ã£ã¸ã§ãããã¨ã«ãæ°ã«å
¥ãã®å±æ§ãä¿åã§ããããã«ãªã£ã¦ãã¾ã。詳細ããã«ã§å±æ§ã«ã¹ã¿ã¼ãä»ããã¨、ãæ°ã«å
¥ãã»ã¯ã·ã§ã³ã«è¡¨ç¤ºããã¾ã。詳細ã¯ãã¡ããã覧ãã ãã 。
Layout Editor ã®ãããã㣠ããã«ã«è¡¨ç¤ºããããæ°ã«å
¥ãã®å±æ§
WebP ãµãã¼ã: APK ã®ãµã¤ãºåæ¸ã«è²¢ç®ããããã«、Android Studio ã§ããã¸ã§ã¯ãã® PNG ã¢ã»ãããã WebP ã¤ã¡ã¼ã¸ãçæã§ããããã«ãªã£ã¦ãã¾ã。WebP ã¯ãã¹ã¬ã¹ ãã©ã¼ãããã®å ´åã§ã PNG ããæ大㧠25% å°ãããªã ã®ãç¹å¾´ã§ã。Android Studio 2.3 ã«ã¯、PNG ããã¹ã¬ã¹ WebP ã«å¤æã§ããã ãã§ãªã、éå¯é WebP ã¨ã³ã³ã¼ãã使ç¨ããå ´åã®çµæã確èªã§ããæ°ããã¦ã£ã¶ã¼ããæè¼ããã¦ãã¾ã。ã©ã³ãã£ã¼ä»¥å¤ã®ä»»æã® PNG ãã¡ã¤ã«ãå³ã¯ãªãã¯ããã¨、WebP ã«å¤æãããã¨ãã§ãã¾ã。ã¤ã¡ã¼ã¸ãç·¨éããå ´åã¯、ããã¸ã§ã¯ãå
ã®ä»»æã® WebP ãã¡ã¤ã«ãå³ã¯ãªãã¯ã㦠PNG ã«æ»ããã¨ãã§ãã¾ã。詳細ã¯ãã¡ããã覧ãã ãã 。
WebP ã¤ã¡ã¼ã¸å¤æã¦ã£ã¶ã¼ã
ãããªã¢ã« ã¢ã¤ã³ã³ ã¦ã£ã¶ã¼ãã®ã¢ãããã¼ã: ãã¯ã¿ã¼ ã¢ã»ãã ã¦ã£ã¶ã¼ããã¢ãããã¼ããã、æ¤ç´¢ããã£ã«ã¿ãªã³ã°ãå¯è½ã«ãªã、åã¢ã¤ã³ã³ ã¢ã»ããã®ã©ãã«ã表示ãããããã«ãªãã¾ãã。詳細ã¯ãã¡ããã覧ãã ãã 。
ãã¯ã¿ã¼ ã¢ã»ãã ã¦ã£ã¶ã¼ã
éçº
Lint ãã¼ã¹ã©ã¤ã³: Android Studio 2.3 ã§ã¯、æªè§£æ±ºã® Lint è¦åãããã¸ã§ã¯ãã®ãã¼ã¹ã©ã¤ã³ã«è¨å®ã§ãã¾ã。ãã以é、Lint ã¯æ°ããåé¡ã®ã¿ãå ±åãã¾ã。ãã®æ©è½ã¯、以åãã Lint ã®åé¡ãå¤ãåå¨ããã¢ããªã§、æ°ããåé¡ã ããä¿®æ£ãããå ´åã«ä¾¿å©ã§ã。ä»åã®ãªãªã¼ã¹ã§è¿½å ããã Lint ãã¼ã¹ã©ã¤ã³ããã³æ°ãã Lint ãã§ãã¯ã¨ã¢ããã¼ã·ã§ã³ ã«ã¤ãã¦ã¯、ãã¡ããã覧ãã ãã 。
Lint ãã¼ã¹ã©ã¤ã³ã®ãµãã¼ã
ã¢ããªãªã³ã¯ ã¢ã·ã¹ã¿ã³ã: Android Studio ã使ã£ã¦ã¢ããªã§ç°¡åã« Android ã¢ããªãªã³ã¯ããµãã¼ãã§ããããã«ãªãã¾ãã。æ°ããã¢ããªãªã³ã¯ ã¢ã·ã¹ã¿ã³ãã§ã¯、URL ã«å¯¾ãã¦æ°ããã¤ã³ãã³ã ãã£ã«ã¿ãç°¡åã«ä½æã、ãã¸ã¿ã« ã¢ã»ãã ãªã³ã¯ãã¡ã¤ã«ã§ã¢ããªã®ã¦ã§ããµã¤ãã¨ã®é¢é£ã宣è¨ã、Android ã¢ããªãªã³ã¯ã®ãµãã¼ãããã¹ããããã¨ãã§ãã¾ã。ã¢ããªãªã³ã¯ ã¢ã·ã¹ã¿ã³ãã«ã¢ã¯ã»ã¹ããã«ã¯、ã¡ãã¥ã¼ãã [Tools ] → [App Link Assistant ] ãéãã¾ã。詳細ã¯ãã¡ããã覧ãã ãã 。
ã¢ããªãªã³ã¯ ã¢ã·ã¹ã¿ã³ã
ãã³ãã¬ã¼ãã®ã¢ãããã¼ã: Android Studio 2.3 ã§ã¯、ããã¾ã§ RelativeLayout
ã使ã£ã¦ãããã¹ã¦ã®ãã³ãã¬ã¼ããããã©ã«ã㧠ConstraintLayout
ã使ãããã«ã¢ãããã¼ãããã¦ãã¾ã。ãã³ãã¬ã¼ã ããã³ Constraint Layout ã®è©³ç´°ãã覧ãã ãã。ã¾ã、æ°ãã Bottom Navigation Activity ãã³ãã¬ã¼ãã追å ãã¾ãã。ããã¯、Bottom Navigation ãããªã¢ã« ãã¶ã¤ã³ ã¬ã¤ãã©ã¤ã³ ãå®è£
ãããã®ã§ã。
æ°ããããã¸ã§ã¯ã ã¦ã£ã¶ã¼ã ãã³ãã¬ã¼ã
IntelliJ ãã©ãããã©ã¼ã ã®ã¢ãããã¼ã: Android Studio 2.3 ã«ã¯、ã¤ã³ã¹ãã¯ã·ã§ã³ ã¦ã£ã³ãã¦ãéç¥ã·ã¹ãã ã®ã¢ãããã¼ããªã©ã®æ¡å¼µãè¡ããã¦ãã IntelliJ 2016.2 ãªãªã¼ã¹ãå«ã¾ãã¦ãã¾ã。詳細ã¯ãã¡ããã覧ãã ãã 。
ãã¹ã
Android Emulator ã§ã®ã³ãã¼ã¨è²¼ãä»ã: å¼·ãè¦æã«å¿ãã¦、ææ°ã® Emulator(v25.3.1)ã«ã³ãã¼ã¨è²¼ãä»ãã®æ©è½ãçµã¿è¾¼ã¾ãã¾ãã。Android Emulator ã¨ãã¹ã ãªãã¬ã¼ãã£ã³ã° ã·ã¹ãã ã§ã¯ãªãããã¼ããå
±æãããã¨ã«ãã£ã¦、ã©ã¡ãã®ç°å¢ãããããã¹ããã³ãã¼ã§ããããã«ãªã£ã¦ãã¾ã。ã³ãã¼ã¨è²¼ãä»ãã¯、x86 Google API Emulator ã·ã¹ãã ã¤ã¡ã¼ã¸ API ã¬ãã« 19(Android 4.4 - Kitkat)以ä¸ã§åä½ãã¾ã。
Android Emulator ã§ã®ã³ãã¼ã¨è²¼ãä»ãã®ãµãã¼ã
Android Emulator ã³ãã³ãã©ã¤ã³ ãã¼ã«: Android SDK ãã¼ã« 25.3 以éã§ã¯、emulator
ã SDK ãã¼ã«ã®ãã©ã«ãããå¥ã®ã¨ãã¥ã¬ã¼ã¿ç¨ã®ãã£ã¬ã¯ããªã«ç§»åãã¦ãã¾ã。ã¾ã、"android
avd
" ã³ãã³ãã¯ãµãã¼ãçµäºã¨ãªã、ã¹ã¿ã³ãã¢ãã³ã® avdmanager
ã³ãã³ãã«ç½®ãæãã£ã¦ãã¾ã。emulator
ããã³ "android avd
" ã§å©ç¨ã§ããã³ãã³ãã©ã¤ã³ ãã©ã¡ã¼ã¿ã¯、ã¢ãããã¼ãçã®ãã¼ã«ã§ãåä½ãã¾ã。ã¾ã、emulator
ã³ãã³ãã«ãã±ã¼ã·ã§ã³ã®ãªãã¤ã¬ã¯ãã追å ããã¦ãã¾ã。ãã ã、ã³ãã³ãã©ã¤ã³ããç´æ¥ Android Virtual Device(AVD)ãä½æããå ´åã¯、対å¿ããã¹ã¯ãªãããã¢ãããã¼ãããå¿
è¦ãããã¾ã。Android Studio 2.3 ãã Android Emulator ã使ãå ´åã¯、ãã®å¤æ´ã«ããã¯ã¼ã¯ããã¼ã¸ã®å½±é¿ã¯ããã¾ãã。詳細ã¯ãã¡ããã覧ãã ãã 。
Android Studio 2.3 ã«å«ã¾ããæ°æ©è½ãã¾ã¨ãã¾ã。
éçº
ãã«ã
ãã¶ã¤ã³
ãã¹ã
Android Studio 2.3 ã®è©³ç´°ã«ã¤ãã¦ã¯、
ãªãªã¼ã¹ãã¼ã ãã覧ãã ãã。
ã¹ã¿ã¼ã ã¬ã¤ã
ãã¦ã³ãã¼ã
æ§ãã¼ã¸ã§ã³ã® Android Studio ãã使ç¨ä¸ã®æ¹ã¯、ããã²ã¼ã·ã§ã³ ã¡ãã¥ã¼ãã Stable ãã£ã³ãã«ã®ã¢ãããã¼ãã確èªã§ãã¾ã(Windows / Linux ã®å ´å㯠[Help] → [Check for Update]、OS X ã®å ´å㯠[Android Studio] → [Check for Updates])。Android Studio 2.3 ã¯、å
¬å¼
ãã¦ã³ãã¼ã ãã¼ã¸ ããããã¦ã³ãã¼ãã§ãã¾ã。Android Studio ã®ãã¹ã¦ã®æ°æ©è½ãæ©è½å¼·åãå©ç¨ããã«ã¯、ã¢ããªã®ããã¸ã§ã¯ãã® Android Gradle ãã©ã°ã¤ã³ã®ãã¼ã¸ã§ã³ã 2.3.0 ã«ã¢ãããã¼ãããå¿
è¦ãããã¾ã。
æ°ã«å
¥ã£ãæ©è½ãåé¡ç¹、æ°æ©è½ã®ææ¡ãªã©ã®ãã£ã¼ãããã¯ã¯å¤§æè¿ã§ã。
Google+ ã®ãã¼ã¸ã
Twitter 㧠Android Studio éçºãã¼ã ããã®æ
å ±ã常ã«ãã§ãã¯ãã¦ãã ãã。
Posted by
Yuichi Araki - Developer Relations Team
ãã®è¨äºã¯ Jamal Eason 、Android ãããã¯ã ããã¼ã¸ã£ã¼ ã«ãã Android Developers Blog ã®è¨äº "Android Studio 2.3 " ãå
ã«ç¿»è¨³・å çãããã®ã§ã。詳ããã¯å
è¨äºãã覧ãã ãã。
Android Studio 2.3 ããã¦ã³ãã¼ã ã§ããããã«ãªã£ã¦ãã¾ã。ä»åã®ãªãªã¼ã¹ã¯ IDE å
¨ä½ã®è³ªã®åä¸ãä¸å¿ã§ã。çæ§ããã®ãã£ã¼ãããã¯ã«æè¬ãããã¾ã。ç§ãã¡ã¯、ä¸çä¸ã®ä½ç¾ä¸ã¨ãã Android ã¢ããªã®ãããããã¼ã®ããã« Android Studio ãé«éãã¤ã·ã¼ã ã¬ã¹ã«ãããã¨ã«æ³¨åãã¦ãã¾ã。
Android Studio 2.3 ã§è³ªã®åä¸ãå³ãããã¨ã¯å¤§å¤ããããæã£ã¦ãã¾ãã、ä»åã®ãªãªã¼ã¹ã«ã¯éçºããã¼ã®åãã§ã¼ãºã«çµã¿è¾¼ããããã¤ãã®æ°æ©è½ã追å ããã¦ãã¾ã。ã¢ããªããã¶ã¤ã³ããéã«ã¯、ä»åã¢ãããã¼ãããã WebP ãµãã¼ã ãã¢ããªç¨ã®ã¤ã¡ã¼ã¸ã«æ´»ç¨ã§ãã¾ã。ã¾ã、ConstraintLayout
ã©ã¤ãã©ãª ãµãã¼ãã Layout Editor ã®ã¦ã£ã¸ã§ãã ãã¬ãããã¢ãããã¼ãããã¦ãã¾ã。éçºãè¡ãéã«ã¯、Android Studio ã®æ°ããã¢ããªãªã³ã¯ ã¢ã·ã¹ã¿ã³ã ãå©ç¨ãã¦ã¢ããªã® URI ãã¾ã¨ãã¦ç¢ºèªãããã¨ãã§ãã¾ã。ã¢ããªã®ãã«ãããããã¤ãè¡ãéã«ã¯、ã¢ãããã¼ããããå®è¡ãã¿ã³ã使ç¨ãã¦、ä¿¡é ¼æ§ãåä¸ãã¦ããã«ç´æçã«ãªã£ã Instant Run ãå©ç¨ã§ãã¾ã。ããã«、Android Emulator ã§ã¢ããªããã¹ãããéã«、ããã¹ãã®ã³ãã¼ã¨è²¼ãä»ããè¡ããããã«ãªãã¾ãã。
VIDEO
Android Studio 2.3 ã®æ°æ©è½
質ã®åä¸ã«å ãã¦、Android Studio 2.3 ã«è¿½å ããã¦ããæ©è½ã®è©³ç´°ã¯、以ä¸ã®æ°æ©è½ãªã¹ããã確èªãã ãã。
ãã«ã
Instant Run ã®æ¹å㨠UI ã®å¤æ´: 質ã®åä¸ã®ä¸ç°ã¨ãã¦、Android Studio 2.3 ã® Instant Run ã®ä¿¡é ¼æ§ãæ¹åããããã«、ããã¤ãã®å¤§ããªå¤æ´ãè¡ã£ã¦ãã¾ã。Run ã¢ã¯ã·ã§ã³ãå®è¡ããã¨、åèµ·åãå¿
è¦ã¨ãªããããªã³ã¼ãã®å¤æ´ãåæ ããããã«、常ã«ã¢ããªã±ã¼ã·ã§ã³ãåèµ·åããã¾ã。ä¸æ¹、ã¢ããªãå®è¡ããã¾ã¾ã³ã¼ããã¹ã¯ããããæ°ãã Apply Changes ã¢ã¯ã·ã§ã³ã追å ããã¦ãã¾ã。ã¾ã、ä¿¡é ¼æ§åä¸ã®ãã、ãã¼ã¹ã¨ãªãå®è£
ã大ããå¤æ´ããã¦ãã、Instant Run ãæå¹ã«ãªã£ã¦ããã¢ããªã®èµ·åãé
ãã£ãåé¡ã解æ¶ããã¦ãã¾ã。詳細ã¯ãã¡ããã覧ãã ãã 。
æ°ãã Instant Run ãã¿ã³ã®ã¢ã¯ã·ã§ã³
ãã«ã ãã£ãã·ã¥: ãã®æ©è½ã¯ Android Studio 2.2 ã§å°å
¥ããã¾ããã、ããã©ã«ãã§ã¯ç¡å¹ã«ãªã£ã¦ãã¾ãã。ãã«ã ãã£ãã·ã¥ã¯、Android Studio ã§é«éãã«ããè¡ãããã®ãã¼ã¹ã¨ãªããã«ãæé©åæ©è½ã® 1 ã¤ã§ã。ãã®æ°ãããã«ã ãã£ãã·ã¥ã¯、Exploded AAR 㨠DEX å¤æåã®å¤é¨ã©ã¤ãã©ãªããã£ãã·ã¥ãããã¨ã«ãã£ã¦、é«éãªã¯ãªã¼ã³ãã«ããå¯è½ã«ãã¾ã。ãã«ã ãã£ãã·ã¥ã¯ã¦ã¼ã¶ã¼å
¨ä½ã対象ã¨ãªã、Android Studio 2.3 ã§ã¯ããã©ã«ãã§æå¹ã«ãªã£ã¦ãã¾ã。詳細ã¯ãã¡ããã覧ãã ãã 。
ãã¶ã¤ã³
Constraint Layout ã®ãã§ã¼ã³ã¨æ¯çã®ãµãã¼ã: Android Studio 2.3 ã«ã¯、ConstraintLayout
ã®å®å®çãªãªã¼ã¹ãå«ã¾ãã¦ãã¾ã。ä»åã®ãªãªã¼ã¹ã«å«ã¾ãã ConstraintLayout
ã§ã¯、2 ã¤ä»¥ä¸ã® Android ãã¥ã¼ãåæ¹åã«ãã§ã¼ã³ãã㦠1 次å
ã®ã°ã«ã¼ããä½æã§ããããã«ãªã£ã¦ãã¾ã。ããã¯、2 ã¤ã®ãã¥ã¼ãé£ãåããã«é
ç½®ãã¤ã¤、ä½ç½ãããå ´åã«ãã¥ã¼ãåçã«æ¡å¼µãããå ´åã«ä¾¿å©ã§ã。詳細ã¯ãã¡ããã覧ãã ãã 。
Constraint Layout ã®ãã§ã¼ã³
Constraint Layout ã®æ¯ç
Layout Editor ãã¬ãã: Layout Editor ã®ã¦ã£ã¸ã§ãã ãã¬ãããã¢ãããã¼ããã、ã¬ã¤ã¢ã¦ãã®ã¦ã£ã¸ã§ãããæ¢ãéã«æ¤ç´¢、並ã¹æ¿ã、ãã£ã«ã¿ãªã³ã°ãè¡ããããã«ãªã£ã¦ãã¾ã。ã¾ã、ãã¶ã¤ã³ ãµã¼ãã§ã¹ã«ãã©ãã°ããåã«ã¦ã£ã¸ã§ããããã¬ãã¥ã¼ã§ããããã«ããªã£ã¦ãã¾ã。詳細ã¯ãã¡ããã覧ãã ãã 。
Layout Editor ã®ã¦ã£ã¸ã§ãã ãã¬ãã
ãæ°ã«å
¥ãã®ã¬ã¤ã¢ã¦ã: ã¢ãããã¼ãããã Layout Editor ã®ãããã㣠ããã«ã§ã¯、ã¦ã£ã¸ã§ãããã¨ã«ãæ°ã«å
¥ãã®å±æ§ãä¿åã§ããããã«ãªã£ã¦ãã¾ã。詳細ããã«ã§å±æ§ã«ã¹ã¿ã¼ãä»ããã¨、ãæ°ã«å
¥ãã»ã¯ã·ã§ã³ã«è¡¨ç¤ºããã¾ã。詳細ã¯ãã¡ããã覧ãã ãã 。
Layout Editor ã®ãããã㣠ããã«ã«è¡¨ç¤ºããããæ°ã«å
¥ãã®å±æ§
WebP ãµãã¼ã: APK ã®ãµã¤ãºåæ¸ã«è²¢ç®ããããã«、Android Studio ã§ããã¸ã§ã¯ãã® PNG ã¢ã»ãããã WebP ã¤ã¡ã¼ã¸ãçæã§ããããã«ãªã£ã¦ãã¾ã。WebP ã¯ãã¹ã¬ã¹ ãã©ã¼ãããã®å ´åã§ã PNG ããæ大㧠25% å°ãããªã ã®ãç¹å¾´ã§ã。Android Studio 2.3 ã«ã¯、PNG ããã¹ã¬ã¹ WebP ã«å¤æã§ããã ãã§ãªã、éå¯é WebP ã¨ã³ã³ã¼ãã使ç¨ããå ´åã®çµæã確èªã§ããæ°ããã¦ã£ã¶ã¼ããæè¼ããã¦ãã¾ã。ã©ã³ãã£ã¼ä»¥å¤ã®ä»»æã® PNG ãã¡ã¤ã«ãå³ã¯ãªãã¯ããã¨、WebP ã«å¤æãããã¨ãã§ãã¾ã。ã¤ã¡ã¼ã¸ãç·¨éããå ´åã¯、ããã¸ã§ã¯ãå
ã®ä»»æã® WebP ãã¡ã¤ã«ãå³ã¯ãªãã¯ã㦠PNG ã«æ»ããã¨ãã§ãã¾ã。詳細ã¯ãã¡ããã覧ãã ãã 。
WebP ã¤ã¡ã¼ã¸å¤æã¦ã£ã¶ã¼ã
ãããªã¢ã« ã¢ã¤ã³ã³ ã¦ã£ã¶ã¼ãã®ã¢ãããã¼ã: ãã¯ã¿ã¼ ã¢ã»ãã ã¦ã£ã¶ã¼ããã¢ãããã¼ããã、æ¤ç´¢ããã£ã«ã¿ãªã³ã°ãå¯è½ã«ãªã、åã¢ã¤ã³ã³ ã¢ã»ããã®ã©ãã«ã表示ãããããã«ãªãã¾ãã。詳細ã¯ãã¡ããã覧ãã ãã 。
ãã¯ã¿ã¼ ã¢ã»ãã ã¦ã£ã¶ã¼ã
éçº
Lint ãã¼ã¹ã©ã¤ã³: Android Studio 2.3 ã§ã¯、æªè§£æ±ºã® Lint è¦åãããã¸ã§ã¯ãã®ãã¼ã¹ã©ã¤ã³ã«è¨å®ã§ãã¾ã。ãã以é、Lint ã¯æ°ããåé¡ã®ã¿ãå ±åãã¾ã。ãã®æ©è½ã¯、以åãã Lint ã®åé¡ãå¤ãåå¨ããã¢ããªã§、æ°ããåé¡ã ããä¿®æ£ãããå ´åã«ä¾¿å©ã§ã。ä»åã®ãªãªã¼ã¹ã§è¿½å ããã Lint ãã¼ã¹ã©ã¤ã³ããã³æ°ãã Lint ãã§ãã¯ã¨ã¢ããã¼ã·ã§ã³ ã«ã¤ãã¦ã¯、ãã¡ããã覧ãã ãã 。
Lint ãã¼ã¹ã©ã¤ã³ã®ãµãã¼ã
ã¢ããªãªã³ã¯ ã¢ã·ã¹ã¿ã³ã: Android Studio ã使ã£ã¦ã¢ããªã§ç°¡åã« Android ã¢ããªãªã³ã¯ããµãã¼ãã§ããããã«ãªãã¾ãã。æ°ããã¢ããªãªã³ã¯ ã¢ã·ã¹ã¿ã³ãã§ã¯、URL ã«å¯¾ãã¦æ°ããã¤ã³ãã³ã ãã£ã«ã¿ãç°¡åã«ä½æã、ãã¸ã¿ã« ã¢ã»ãã ãªã³ã¯ãã¡ã¤ã«ã§ã¢ããªã®ã¦ã§ããµã¤ãã¨ã®é¢é£ã宣è¨ã、Android ã¢ããªãªã³ã¯ã®ãµãã¼ãããã¹ããããã¨ãã§ãã¾ã。ã¢ããªãªã³ã¯ ã¢ã·ã¹ã¿ã³ãã«ã¢ã¯ã»ã¹ããã«ã¯、ã¡ãã¥ã¼ãã [Tools ] → [App Link Assistant ] ãéãã¾ã。詳細ã¯ãã¡ããã覧ãã ãã 。
ã¢ããªãªã³ã¯ ã¢ã·ã¹ã¿ã³ã
ãã³ãã¬ã¼ãã®ã¢ãããã¼ã: Android Studio 2.3 ã§ã¯、ããã¾ã§ RelativeLayout
ã使ã£ã¦ãããã¹ã¦ã®ãã³ãã¬ã¼ããããã©ã«ã㧠ConstraintLayout
ã使ãããã«ã¢ãããã¼ãããã¦ãã¾ã。ãã³ãã¬ã¼ã ããã³ Constraint Layout ã®è©³ç´°ãã覧ãã ãã。ã¾ã、æ°ãã Bottom Navigation Activity ãã³ãã¬ã¼ãã追å ãã¾ãã。ããã¯、Bottom Navigation ãããªã¢ã« ãã¶ã¤ã³ ã¬ã¤ãã©ã¤ã³ ãå®è£
ãããã®ã§ã。
æ°ããããã¸ã§ã¯ã ã¦ã£ã¶ã¼ã ãã³ãã¬ã¼ã
IntelliJ ãã©ãããã©ã¼ã ã®ã¢ãããã¼ã: Android Studio 2.3 ã«ã¯、ã¤ã³ã¹ãã¯ã·ã§ã³ ã¦ã£ã³ãã¦ãéç¥ã·ã¹ãã ã®ã¢ãããã¼ããªã©ã®æ¡å¼µãè¡ããã¦ãã IntelliJ 2016.2 ãªãªã¼ã¹ãå«ã¾ãã¦ãã¾ã。詳細ã¯ãã¡ããã覧ãã ãã 。
ãã¹ã
Android Emulator ã§ã®ã³ãã¼ã¨è²¼ãä»ã: å¼·ãè¦æã«å¿ãã¦、ææ°ã® Emulator(v25.3.1)ã«ã³ãã¼ã¨è²¼ãä»ãã®æ©è½ãçµã¿è¾¼ã¾ãã¾ãã。Android Emulator ã¨ãã¹ã ãªãã¬ã¼ãã£ã³ã° ã·ã¹ãã ã§ã¯ãªãããã¼ããå
±æãããã¨ã«ãã£ã¦、ã©ã¡ãã®ç°å¢ãããããã¹ããã³ãã¼ã§ããããã«ãªã£ã¦ãã¾ã。ã³ãã¼ã¨è²¼ãä»ãã¯、x86 Google API Emulator ã·ã¹ãã ã¤ã¡ã¼ã¸ API ã¬ãã« 19(Android 4.4 - Kitkat)以ä¸ã§åä½ãã¾ã。
Android Emulator ã§ã®ã³ãã¼ã¨è²¼ãä»ãã®ãµãã¼ã
Android Emulator ã³ãã³ãã©ã¤ã³ ãã¼ã«: Android SDK ãã¼ã« 25.3 以éã§ã¯、emulator
ã SDK ãã¼ã«ã®ãã©ã«ãããå¥ã®ã¨ãã¥ã¬ã¼ã¿ç¨ã®ãã£ã¬ã¯ããªã«ç§»åãã¦ãã¾ã。ã¾ã、"android
avd
" ã³ãã³ãã¯ãµãã¼ãçµäºã¨ãªã、ã¹ã¿ã³ãã¢ãã³ã® avdmanager
ã³ãã³ãã«ç½®ãæãã£ã¦ãã¾ã。emulator
ããã³ "android avd
" ã§å©ç¨ã§ããã³ãã³ãã©ã¤ã³ ãã©ã¡ã¼ã¿ã¯、ã¢ãããã¼ãçã®ãã¼ã«ã§ãåä½ãã¾ã。ã¾ã、emulator
ã³ãã³ãã«ãã±ã¼ã·ã§ã³ã®ãªãã¤ã¬ã¯ãã追å ããã¦ãã¾ã。ãã ã、ã³ãã³ãã©ã¤ã³ããç´æ¥ Android Virtual Device(AVD)ãä½æããå ´åã¯、対å¿ããã¹ã¯ãªãããã¢ãããã¼ãããå¿
è¦ãããã¾ã。Android Studio 2.3 ãã Android Emulator ã使ãå ´åã¯、ãã®å¤æ´ã«ããã¯ã¼ã¯ããã¼ã¸ã®å½±é¿ã¯ããã¾ãã。詳細ã¯ãã¡ããã覧ãã ãã 。
Android Studio 2.3 ã«å«ã¾ããæ°æ©è½ãã¾ã¨ãã¾ã。
éçº
ãã«ã
ãã¶ã¤ã³
ãã¹ã
Android Studio 2.3 ã®è©³ç´°ã«ã¤ãã¦ã¯、ãªãªã¼ã¹ãã¼ã ãã覧ãã ãã。
ã¹ã¿ã¼ã ã¬ã¤ã
ãã¦ã³ãã¼ã
æ§ãã¼ã¸ã§ã³ã® Android Studio ãã使ç¨ä¸ã®æ¹ã¯、ããã²ã¼ã·ã§ã³ ã¡ãã¥ã¼ãã Stable ãã£ã³ãã«ã®ã¢ãããã¼ãã確èªã§ãã¾ã(Windows / Linux ã®å ´å㯠[Help] → [Check for Update]、OS X ã®å ´å㯠[Android Studio] → [Check for Updates])。Android Studio 2.3 ã¯、å
¬å¼
ãã¦ã³ãã¼ã ãã¼ã¸ ããããã¦ã³ãã¼ãã§ãã¾ã。Android Studio ã®ãã¹ã¦ã®æ°æ©è½ãæ©è½å¼·åãå©ç¨ããã«ã¯、ã¢ããªã®ããã¸ã§ã¯ãã® Android Gradle ãã©ã°ã¤ã³ã®ãã¼ã¸ã§ã³ã 2.3.0 ã«ã¢ãããã¼ãããå¿
è¦ãããã¾ã。
æ°ã«å
¥ã£ãæ©è½ãåé¡ç¹、æ°æ©è½ã®ææ¡ãªã©ã®ãã£ã¼ãããã¯ã¯å¤§æè¿ã§ã。Google+ ã®ãã¼ã¸ã Twitter 㧠Android Studio éçºãã¼ã ããã®æ
å ±ã常ã«ãã§ãã¯ãã¦ãã ãã。
Posted by Yuichi Araki - Developer Relations Team