Android Studio 2.0 Preview 3 發布

jopen 8年前發布 | 17K 次閱讀 Android Studio

Android Studio 2.0 Preview 3 發布,該版本有多項 bug 修復,主要更新如下:

  •  A new lint check which looks at switch statements used in concert with @IntDef integers, and makes sure that all constants from the @IntDef are handled:

    Note that there is a quickfix for adding the missing statements as well, so after adding an empty switch statement this is a quick way to populate the initial set of case statements:

  • A new lint check which flags incorrect attempts to insert version numbers in Gradle file using String interpolation. This will automatically flag this "gotcha"

  • Lint now flags anonymous classes that extend Fragment

  • Two new security lint checks contributed by Michael Peck: One which looks for native code in unsafe locations (such as asset folders), and another which flags Runtime.load() and System.load() calls.

  • The translation editor now supports speed search (and F2 to enter cell editing).

  • We've also tweaked the Instant Run facility such that when changes can't be hotswapped, there's a confirmation dialog before restarting the app. We'll be tweaking this in the next preview build.

  • Various improvements to the AVD Manager to support the new emulator

更多內容請看:發行說明

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!