[go: up one dir, main page]

Release updates archive

Android Studio 3.1 Canary 6 is now available in the Canary and Dev channels.

If you are upgrading from 3.1 Canary 1, 2, or 3, you need to download the latest version of the IDE from the Android Studio Preview site.

You might receive an error when updating your project to 3.1 Canary 6. If so, you need to manually change the Android Gradle plugin version to 3.1.0-alpha06 as shown here:
buildscript {
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.0-alpha06'
    }
}
Then click Sync Project with Gradle Files . The first sync will fail and you'll see a message asking you to upgrade the Gradle version in the wrapper, so follow the Quick Fix to apply the update.

This release includes general bug fixes and the following new features:
  • Upgrades the base IDE to IntelliJ 2017.3. You may notice changes in behavior and performance as a result of this merge. If you encounter changes you believe to be regressions, please report a bug.
  • Updates the Kotlin plugin to version 1.2.
  • Updates to Data Binding:
    • You can now use a LiveData object as an observable field in data binding expressions. The ViewDataBinding class now includes a new setLifecycle method that you need to use to use to observe LiveData objects.
    • New compiler: You can preview a new incremental compiler for your data binding classes. To enable this compiler, add android.databinding.enableV2=true to your gradle.properties file, or include the following command line argument: -Pandroid.databinding.enableV2=true. Keep in mind, this compiler is not backwards compatible, so you need to recompile all of your data binding classes with this feature enabled to take advantage of incremental compilation. Note the following behavior changes when using the new compiler:
      • The Android plugin for Gradle now generates Binding classes for your layouts before compiling your Java code.
      • If a layout is included in more than one target resource configuration, the data binding library now defaults the view type to android.view.View for all views that share the same resource id but not view type.
      • Binding classes for library modules are compiled and packaged with its AAR. That is, app modules that depend on those library modules no longer need to regenerate those classes.
      • A module’s binding adapters can no longer change the behavior of adapters of the module’s dependencies. That is, binding adapters now only affect code in its own module and downstream consumers of the module.
    • The ObervableField class can now accept other Observable objects in its constructor. The ObservableField object registers a change when one of its Observable dependencies register a change.
Known issues:
  • Updating existing projects to the alpha 6 Android Gradle plugin fails. You must manually update to 3.1.0-alpha06 as described above.
  • When using Java 8 language features, the intentions menu item to “Set Language Level to 8" is missing.
  • AAPT2 may throw an error when adding a tabbed activity to a project which is created with Maps activity.
  • You may get an IsolationException error while building LintTest project.
  • Certain devices may cause a java.lang.AssertionError while working with profilers.
  • You may receive a "File Creation failed" error while recording espresso tests for Instant Apps that include code written in Kotlin.
  • You may receive a fatal exception when using Java 8 language features with Android Instant Apps projects.
  • Your app may see FATAL_EXCEPTION "Error inflating class ImageView" when adding color resources to an ImageView using the theme attribute.
  • You may receive a TimeoutException while deploying a Wear project  to the emulator.
  • When creating a Android Instant Apps project that includes a BottomNavigationView, you may get a null pointer exception.

If you already have an Android Studio build on the Canary or Dev channel, you can get the update by clicking Help > Check for Update (or Android Studio > Check for Updates on Mac). Otherwise, you can download here.

We just published ConstraintLayout 1.1.0 beta 4. It’s available from the google maven repository:

dependencies {
   compile 'com.android.support.constraint:constraint-layout:1.1.0-beta4'
}

Documentation is available at https://developer.android.com/reference/android/support/constraint/ConstraintLayout.html

Changes:
  • Fixes issue with incorrect spread in Chain
  • Fixes RTL issues (guideline, chains, bias)
  • Fixes missing percent handling in ConstraintSet
  • Fixes various barriers issues
  • Improved xml inflation speed

Android Studio 3.1 Canary 5 is now available in the Canary and Dev channels, and includes general bug fixes and the following new features:

  • Includes in-process desugaring to decrease compile time when using Java 8 language features. To try this preview feature, set android.enableD8.desugaring=true in your project’s gradle.properties file.
  • In the Network Profiler, a new Request tab provides network request details, as shown below.

  • In the CPU Profiler, a new search feature allows you to highlight relevant trace results in Trace Pane, as shown below. This feature is also available in the Memory Profiler to filter the results of your memory allocations or heap dumps. To enter a search query, click the icon at the top-right corner of the pane and then click on the search box.

    • In the CPU profiler Flame Chart pane, call stacks that include the search query are highlighted and moved to the left side of the chart.
    • Known Issue: In the Top Down and Bottom Up CPU profiler charts, relevant search results are prioritized above others when a column is sorted in a descending order. However, this prioritization does not take place when columns are sorted in an ascending order.
    • Known Issue: When pausing while entering a search query in the CPU profiler, the IDE updates the results with your query and disables the cursor within the search field. That is, you need to click into the search field again to continue typing.

If you already have an Android Studio build on the 
Canary or Dev channel, you can get the update by clicking Help > Check for Update (or Android Studio > Check for Updates on Mac). Otherwise, you can download here.

Android Studio 3.1 Canary 4 is now available in the Canary and Dev channels, and includes general bug fixes.

If you already have an Android Studio build on the Canary or Dev channel, you can get the update by clicking Help > Check for Update (or Android Studio > Check for Updates on Mac). Otherwise, you can download here.

Android Studio 3.1 Canary 3 is now available in the Canary and Dev channels, and includes general bug fixes.

Known Issues:
  • Mac users: There is a known issue where you get the following error when building existing projects with this release. To resolve this issue, perform a clean build by first selecting Build > Clean Project from the menu bar.
        Execution failed …
        > v1 signature (JAR signature) not yet generated.

  • Kotlin Developers: When you build your project, you may encounter an error similar what's shown below. This is due to an out of memory exception from the Kotlin compiler daemon—even though your stack trace may indicate an end of file exception: java.io.EOFException. To resolve this issue, simply try to build your project again.
        Execution failed for task ':app:compileDebugKotlin'.
        > Internal compiler error.


    If you already have an Android Studio build on the Canary or Dev channel, you can get the update by clicking Help > Check for Update (or Android Studio > Check for Updates on Mac). Otherwise, you can download here.
  • Android Studio 3.1 Canary 1 is now available in the Canary and Dev channels.

    If you already have an Android Studio build on the Canary or Dev channel, you can get the update by clicking Help > Check for Update (or Android Studio > Check for Updates on Mac). Otherwise, you can download it here.

    This update includes bug fixes and improvements, such as the following:


    allprojects {
        repositories {
            // The order in which you list these repositories matter.
            google()
            jcenter()
        }
    }


    • New Layout Editor action to convert views from one type to another. From the component tree pane in the Layout Editor, right-click on a component and select Convert view. In the dialog that appears (shown below), select a suggested view type and click Apply. If the IDE doesn’t suggest the type of view you want, search for it using the text field near the top of the dialog.


    Android Studio 3.0 is now available on the stable channel!

    This release of Android Studio is packed with many new updates. There are three major feature areas you do not want to miss, including: a new suite of app profiling tools to quickly diagnose performance issues, support for the Kotlin programming language, and a new set of tools and wizards to accelerate your development on the latest Android Oreo APIs.

    Check out the full blog and the release notes.

    If you've set your Android Studio update channel to canary, the SDK Manager should now show an update to receive version 26.2.0 of the Android Emulator. This is the first release to include the new Quick Boot feature, which makes the Android Emulator start up much faster based on a snapshot of your previous AVD instance.

    Quick Boot is enabled by default for all AVDs. Although the first time you start an AVD it must perform a cold boot (just like powering on a device), all subsequent starts are fast and the system is restored to the state at which you closed the emulator (similar to waking a device). Learn more about Quick Boot here.

    Other changes in this release include:
    • Mac OpenGL ES 3 support (for supported system images: API 24+ Google APIs x86).
    • GLESv3-capable AVDs and host now use OpenGL core profile. This can help fix Pixel Launcher crashes and other host GPU driver issues. To force enable, add the line GLESDynamicVersion = on inside ~/.android/advancedFeatures.ini (create this file if it doesn't exist). Then start the emulator, open the Extended controls window, select Settings > Advanced, and set the OpenGL ES renderer to Desktop native OpenGL.

    Android Studio 3.0 RC 2 is now available in the Canary, Dev, and Beta channels.

    This update includes general bug fixes, including a fix to properly update from previously installed versions of the IDE on Linux and Windows.

    Android Studio 3.0 RC 1 is now available in the Canary, Dev and Beta channels.

    Note: This release does not include patches. So, you must download a full installation.

    This update includes fixes for the following public issues:
    • Issue #65519025: Missing classes in APK
    • Issue #65829618: Incremental builds fail when enabling resource shrinking
    • Issue #67172466: Android Studio hangs in some users
    • Issue #65500758: Adaptive icon preview does not refresh when changing shape
    • Issue #65684665: Android Studio creates invalid fontProviderQuery
    • Issue #65417958: Update Android Studio Templates to use VectorDrawable Foreground
    • Issue #65354278: Cleaning the project from the command line causes Robolectric to not find certain classes
    • Issue #63599784: Compile config deprecation warning doesn't respect Gradle's -q flag
    • Issue #65607225: Projects with single quote in title fail to install on emulators
    • Issue #64939383: Can't compile an app module's Android tests when a library module exposes android.support.v8.renderscript.RenderScript via API
    • Issue #65213467: Missing "Override" declarations when creating Fragment using Kotlin as source language

    We just published ConstraintLayout 1.1.0 beta 3 on the google maven repository:

    dependencies {
      compile 'com.android.support.constraint:constraint-layout:1.1.0-beta3'
    }
    


    Changes:
      • Various bugfixes (spread_inside chain, ratio in chain, constraintset)
      • RTL guideline support
      • Circular constraints

      Android Studio 3.0 Beta 7 is now available in the Canary, Dev and Beta channels.

      Android plugin for Gradle 3.0.0-beta7 and higher now require build tools 26.0.2 and higher. Keep in mind that specifying a version for the build tools (using android.buildToolsVersion) is now optional—the plugin automatically uses the minimum required version for you.

      This update includes fixes for the following issues:


      If you already have an Android Studio preview installed, you can get the update by clicking Help > Check for Update (or Android Studio > Check for Updates on Mac). Otherwise, you can download here.

      We just published ConstraintLayout 1.1.0 beta2.

      It’s available from the maven repository:
      dependencies {
        compile 'com.android.support.constraint:constraint-layout:1.1.0-beta2'
      }
      

      Changes:
      • Many bug fixes (mostly in complex behavior in chains, match constraint, min/max/ratio/percent)
      • Redesign of the constraint optimizer, performances are improved
      • Change in behavior with 0dp in packed chain (0dp elements will spread)
      • Added a new attribute to enforce constraints on wrap_content if needed (previously, wrap_content was considered a fixed dimension not subject to the constraints):
        • app:layout_constrainedWidth=”true|false”
        • app:layout_constrainedHeight=”true|false”
        • Note that the setting to have a match_constraint set to wrap behavior has been deprecated, instead you should use the above layout_constrainedWidth/Height attribute along with width=wrap_content.

      Android Studio 3.0 Beta 6 is now available in the Canary, Dev and Beta channels.

      This update adds support for using CMake 3.7 or higher, and includes fixes for the following issues:
      • Issue #37137285: Some logs no longer appear in the console.
      • Issue #65050576: Issue resolving dependency on httpclient. Due to collisions with the internal version that the Android platform includes, you should exclude dependencies on httpclient from your build.gradle files.
      • Issue #65363025: Corrupt DEX files caused by performance optimizations.
      • Issue #65494776: Builds fail when using versions of CMake that are older than v3.6.4111459.

      If you already have an Android Studio preview installed, you can get the update by clicking Help > Check for Update (or Android Studio > Check for Updates on Mac). Otherwise, you can download here.

      Android Studio 3.0 Beta 5 is now available in the Canary, Dev and Beta channels.
      This release has a number of general bug fixes as well as a collection focused on C++ development. If you experience any issues please open a new bug or file feedback as soon as possible .
      If you already have an Android Studio preview installed, you can get the update by clicking Help > Check for Update (or Android Studio > Check for Updates on Mac). Otherwise, you can download here.

      Android Studio 3.0 Beta 4 is now available in the Canary, Dev and Beta channels.

      Changes
      • New Android plugin DSL for manipulating dependency matching strategy. You now provide fallbacks for missing build types and flavors using matchingFallbacks (which replaces buildTypeMatching and productFlavorMatching). You also provide the default selection and fallbacks for missing dimensions using missingDimensionStrategy (which replaces flavorSelection). To learn more, read Resolve build errors related to dependency matching.

      If you already have an Android Studio preview installed, you can get the update by clicking Help > Check for Update (or Android Studio > Check for Updates on Mac). Otherwise, you can it download here.

      UPDATE: Due to an issues with the Android Plugin for Gradle in Beta 3 (64527520), we've pulled it down and recommend that you not accept the update. If you already did, you can go back to Beta 2 by downloading here.

      Android Studio 3.0 Beta 2 is now available in the Canary, Dev, and Beta channels.

      This release fixes an issue which resulted in the compiler throwing a ClassNotFoundException when you enable Java 8 language features and specify minSdkVersion 19 or higher—this also caused some code analysis tools, such as ProGuard, to fail. For more information, see issue #64527520.


      If you already have an Android Studio preview installed, you can get the update by clicking Help > Check for Update (or Android Studio > Check for Updates on Mac). Otherwise, you can download here.
      Known issue:
      If you have an existing Android Studio project that's using an alpha version of Android plugin 3.0.0 (such as 3.0.0-alpha9), you may get the following error when you migrate to Android plugin 3.0.0-beta1 (or higher) and sync your project: Gradle project refresh failed.

      Resolve this issue selecting Build > Clean Project from the menu bar—you need to perform this action only once for each project. You can then sync your project files with Gradle by clicking Sync Project from the toolbar.

      Android Studio 3.0 Beta 1 is now available in the Canary and Dev Channels.




      Known issue: If you have an existing Android Studio project that's using an alpha version of Android plugin 3.0.0 (such as 3.0.0-alpha9), you may get the following error when you migrate to Android plugin 3.0.0-beta1 and sync your project: Gradle project refresh failed.

      Resolve this issue selecting Build > Clean Project from the menu bar—you need to perform this action only once for each project. You can then sync your project files with Gradle by clicking Sync Project from the toolbar.


      This release includes various bug fixes, including the following:
      • Fixed an issue where using the Kotlin plugin crashes with a classloading issue.
      • Fixed an issue where the menu bar no longer appears. (Issue #63743086)