android studio Error:Execution failed for task ':

In my case I downloaded version 22 of Android M and Android 5.1.1 using Android Studio 1.2.1.1 but when I try to do a Hello World this same error showed me app

So the solution for me was doing right click in app like the image below and choose "Open Module Settings" ui

Image 1

then there you have 2 options. I've changed both with the last version I had. this

Compile SDK version to API 21 Lollipop spa

enter image description here

and Build Tools Version to 21.1.2 ip

enter image description here

Finally clean the project and Build it

UPDATED io

TO Get Android Studio 1.3 follow this steps table

  1. Open the Settings window by choosing File > Settings.
  2. Choose the Appearance & Behavior > System Settings > Updates panel.
  3. On the Updates panel, choose the option Automatically check updates for: Canary Chanel.
  4. On the Updates panel, select Check Now to check for the latest canary build. Download and install the build when you are prompted.

Then you'll have something like this to update your Androud Studio to 1.3 and with this you can test Android M ast

Android 1.3

相關文章
相關標籤/搜索