久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

任務“:app:compileDebugAidl"執行失敗:缺少aidl

Execution failed for task #39;:app:compileDebugAidl#39;: aidl is missing(任務“:app:compileDebugAidl執行失敗:缺少aidl)
本文介紹了任務“:app:compileDebugAidl"執行失敗:缺少aidl的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我在我的電腦上安裝了 Android Studio.我創建了一個新項目,但這給了我下面的錯誤.我能做什么?

I installed Android Studio on my computer. I created a new project but that got me the error below. What can I do?

Error:Execution failed for task ':app:compileDebugAidl'.
> aidl is missing

我的 Android Studio 版本是 1.1.0.

My Android Studio version is 1.1.0.

這是我的 build.gradle 文件:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.1.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
allprojects {
    repositories {
        jcenter()
    }
}

還有:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "24.1.2"

    defaultConfig {
        applicationId "com.example.jo.cloning_a_login_screen"
        minSdkVersion 13
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.0.0'
}

推薦答案

在我的例子中,我使用 Android Studio 1.2.1.1 下載了 Android M 和 Android 5.1.1 的版本 22,但是當我嘗試執行 Hello World 時,同樣的錯誤給我看了

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

所以我的解決方案是在應用程序中單擊鼠標右鍵,如下圖所示,然后選擇打開模塊設置"

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

那么您有 2 個選項.我已經用上一個版本更改了這兩個版本.

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

將 SDK 版本編譯為 API 21 Lollipop

Compile SDK version to API 21 Lollipop

和構建工具版本到 21.1.2

and Build Tools Version to 21.1.2

最后清理項目并構建

更新

要獲取 Android Studio 1.3,請按照以下步驟操作

TO Get Android Studio 1.3 follow these steps

  1. 通過選擇文件">設置"打開設置"窗口.
  2. 選擇外觀&行為 > 系統設置 > 更新面板.
  3. 在更新"面板上,選擇自動檢查更新選項:Canary Chanel.
  4. 在更新"面板上,選擇立即檢查"以檢查最新的 Canary 版本.出現提示時下載并安裝構建版本.

然后你將有這樣的東西將你的 Androud Studio 更新到 1.3,然后你可以測試 Android M

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

當 SDK、構建工具和 Gradle 插件的版本不匹配(在兼容性方面)時,會發生此錯誤.解決方案是驗證您是否使用它們的最新版本.gradle插件放在項目的build.gradle中,其他版本放在模塊的build.gradle中.例如,對于 SDK 23,您必須使用 Build Tools 23.0.1 和 gradle 插件版本 1.3.1.

This bug happens when the versions of SDK, Build Tools and Gradle Plugins doesn't match (in terms of compatibility). The solution is to verify whether you are using the latest version of them or not. The gradle plugins are placed in the build.gradle of the project, and the other versions are on the build.gradle of the module. For example, for SDK 23, you must use the Build Tools 23.0.1 and gradle plugins version 1.3.1.

這篇關于任務“:app:compileDebugAidl"執行失敗:缺少aidl的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出現 IncompatibleClassChangeError)
How to get current flavor in gradle(如何在 gradle 中獲取當前風味)
How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復“意外元素lt;查詢gt;在“清單中找到錯誤?)
Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風味庫的多風味應用)
Android dependency has different version for the compile and runtime(Android 依賴在編譯和運行時有不同的版本)
Transitive dependencies for local aar library(本地 aar 庫的傳遞依賴)
主站蜘蛛池模板: 亚洲午夜视频在线观看 | 亚洲狠狠丁香婷婷综合久久久 | gogo肉体亚洲高清在线视 | 国产成人综合一区二区三区 | 亚洲永久| 亚洲二区精品 | 国产精久久久久久久妇剪断 | 激情亚洲| 国产午夜精品一区二区三区嫩草 | 国产精品欧美一区二区 | 在线免费观看黄色av | 亚洲伊人精品酒店 | 欧美国产日韩在线 | 日日淫| 国产成人免费视频网站视频社区 | 在线不卡视频 | www精品 | 日韩网站在线观看 | 在线播放国产视频 | 99久久婷婷国产综合精品 | 欧美一区中文字幕 | 日韩精品一区二区三区四区 | www久久av| 欧美日韩电影一区二区 | 亚洲国产一区二区三区四区 | 久久午夜精品 | 亚洲国产精选 | 黄色片网此 | 在线毛片网 | 成人h片在线观看 | 欧美成视频 | 亚洲国产精品99久久久久久久久 | 久久综合av| 久久久高清| 午夜视频在线免费观看 | 精品国偷自产在线 | 97精品久久| 成人免费视频网站在线看 | 不用播放器看的av | 欧美久久一级特黄毛片 | 欧美一级免费看 |