Questions tagged [android-studio-2.2]

Use this tag for questions related to features that are specific to version 2.2 or features introduced in this version.

Android Studio 2.2 is now in the stable channel and can be downloaded here. A list of new features and other release notes can be found here.

The first preview was released on May 17 2016 during Google I/O 2016 to showcase some newly presented features for developers to try out. It had been extensively tested through 7 previews, 3 betas and 2 RC's before it was released into the stable channel on September 19 2016.

487 questions
105
votes
7 answers

Unsupported method: AndroidProject.getPluginGeneration() while running project

I'm trying to run my Project with Android Studio 2.2 but I get this error Unsupported method: AndroidProject.getPluginGeneration(). The version of Gradle you connect to does not support that method. I am using ButterKnife 8.4.0 My app…
JAAD
  • 12,349
  • 7
  • 36
  • 57
104
votes
8 answers

Warning: Do not place Android context classes in static fields; this is a memory leak (and also breaks Instant Run)

Android Studio: Do not place Android context classes in static fields; this is a memory leak (and also breaks Instant Run) So 2 questions: #1 How do you call a startService from a static method without a static variable for context? #2 How do…
John Smith
  • 3,493
  • 3
  • 25
  • 52
76
votes
2 answers

Reformat Whole Project Files in Android Studio

I need to update my code style. Reformatting the whole project files one by one takes too much effort with the shortcuts I know. Opt + Command + L My Question? Is there any other way to do it for the whole project?
Eren Utku
  • 1,731
  • 1
  • 18
  • 27
73
votes
4 answers

Android Studio Error: Error:CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running

Installed Android Studio 2.2 Preview 2 and getting this error: Error:CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software…
user1406716
  • 9,565
  • 22
  • 96
  • 151
54
votes
8 answers

\build\intermediates\res\resources-anzhi-debug-stripped.ap_' specified for property 'resourceFile' does not exist

I updated Android Studio to version 2.0. The build failed and also takes longer than Android Studio version 1.5 to build. Every time I run my application, I clean and reload the project, but it's no use. The error message…
51
votes
8 answers

How to refresh preview on Android Studio 2.2?

Now on Android Studio 2.2 on new Preview mode, there are no more refresh button: Image 1: Preview on Android Studio 2.2 (without refresh button) Image 2: Preview on Android Studio 2.1 (with refresh button) Does anyone know how to display it…
48
votes
11 answers

enable Annotation Processors option in Android Studio 2.2

I'm trying to use java 8 in my project and for that I added the jack compiler. After enabling jack I started having problems with libraries that use Annotation Processing and looking in the web I read that I need android studio 2.2 and…
jonathanrz
  • 4,206
  • 6
  • 35
  • 58
43
votes
3 answers

Android Studio 2.2 Preview all screen sizes missing

Android studio before 2.2 version at the xml design screen there was a view like "Preview all screen sizes" (check the image) but I cannot find that in Android Studio 2.2 Beta 2. My Android Studio version is: Android Studio 2.2 Beta 2 Build…
42
votes
12 answers

Android Studio 2.2 Stuck at Building Gradle Project Info on importing existing project

I am using Android studio 2.2 on windows 10. I am trying to import an existing android project. The problem that it took forever and still showing the message Building 'ProjecTName' Graedle project info after that android studio is totally…
36
votes
5 answers

android studio 2.2 layout editor refresh button

can someone help me find the refresh layout button which was there before studio 2.2 to refresh the layout changes? Have searched every where but cannot find it.The problem is sometimes drawables are not refreshed and reflected in the preview…
drag
  • 421
  • 1
  • 5
  • 9
33
votes
10 answers

How to use the new Android Constraint Layout to reduce View hierarchy

Do you have any idea on how to use the new Constraint Layout that was recently announced at this year's Google I/O?
31
votes
3 answers

Espresso test recording feature in Android Studio 2.2

In Android Studio 2.2 there is supposed to be a test recording function? Where do I find it and how do I use it?
29
votes
8 answers

ERROR: resizing partition e2fsck failed with exit code 8

I'm new to android studio. When I try to run my first programme in android studio on the emulator, I get this error. I have searched through other comments and have also tried decreasing my build.gradle from 24.0.0 to 23.0.3 as shown below, but it…
26
votes
3 answers

Error:Could not find property 'assembleDebug' on project ':app'

I am using 'com.android.tools.build:gradle:2.2.0-alpha6' and Android Studio 2.2 Preview 6. The build runs perfectly fine on Gradle 2.1.0, but to enable instant run it asks me to update Gradle plugin. On updating Gradle plugin, the build shows…
whitepearl
  • 634
  • 2
  • 7
  • 16
25
votes
16 answers

Android Studio: Gradle sync failed: Connection timed out: connect

My Android Studio was working fine till morning, but since tonight I get error saying "Gradle sync failed: Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.". I am not using…
ark
  • 553
  • 2
  • 11
  • 19
1
2 3
32 33