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

找不到參數的方法 android()

Could not find method android() for arguments(找不到參數的方法 android())
本文介紹了找不到參數的方法 android()的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我一直在嘗試將項目導入 Android Studio,這就是我卡住的地方,Stack Overflow 但它沒有為我的特定錯誤提供解決方案.

I've been trying to import a project to Android Studio and this is where I am stuck, there is a similar question on Stack Overflow but it did not provide a solution to my particular error.

這是我的錯誤日志:

C:<some location>uild.gradle

Error:(24, 1) A problem occurred evaluating root project '<project name>'.
> Could not find method android() for arguments [build_4fli1jm76ubcnxesnhqnhie47$_run_closure3@6e71db85] on root project '<project name>'.
Information:BUILD FAILED

Gradle 同步消息是:

The Gradle sync messages are:

錯誤:(24, 0) Gradle DSL 方法未找到: 'android()' 可能原因:

  • PoojaPeople"項目可能正在使用不包含該方法的 Gradle.Gradle 設置
  • 構建文件可能缺少 Gradle 插件.申請Gradle 插件
  • Error:(24, 0) Gradle DSL method not found: 'android()' Possible causes:

  • The project 'PoojaPeople' may be using a version of Gradle that does not contain the method. Gradle settings
  • The build file may be missing a Gradle plugin. Apply Gradle plugin
  • 我不太確定這個方法 android() 的確切位置.如果它是位于 Application 的 build.gradle 文件中的那個,我仍然不知道從這里去哪里.任何幫助表示贊賞.

    I'm not too sure where exactly this method android() is located. If it is the one located in Application's build.gradle file, I still don't exactly know where to go from here. Any help is appreciated.

    我的 build.gradle

    buildscript {
        repositories {
            maven { url "http://dl.bintray.com/populov/maven" }
            mavenCentral()
        }
         dependencies {
            classpath 'com.android.tools.build:gradle:2.1.0'
            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }
    allprojects {
        repositories {
            maven { url "http://dl.bintray.com/populov/maven" }
            mavenCentral()
    
        }
    }
    task clean(type: Delete) {
        delete rootProject.buildDir
    }
    
    android {
        compileSdkVersion 17
        buildToolsVersion '23.0.0'
    }
    dependencies {
        compile files('app/libs/junit-4.12-JavaDoc.jar')
    }
    apply plugin: 'maven'
    

    推薦答案

    你使用了錯誤的 build.gradle 文件.

    在您的頂級文件中,您無法定義 android 塊.

    In your top-level file you can't define an android block.

    只需將此部分移動到 module/build.gradle 文件中即可.

    Just move this part inside the module/build.gradle file.

    android {
        compileSdkVersion 17
        buildToolsVersion '23.0.0'
    }
    dependencies {
        compile files('app/libs/junit-4.12-JavaDoc.jar')
    }
    apply plugin: 'maven'
    

    這篇關于找不到參數的方法 android()的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 庫的傳遞依賴)
    主站蜘蛛池模板: 国产精品久久久久999 | 久久亚洲一区二区三区四区 | 波多野结衣一区二区 | 成人毛片网站 | 91麻豆精品国产91久久久久久久久 | 日韩一区欧美一区 | 久久剧场| 国产美女一区二区 | 久久精品亚洲精品国产欧美 | 久久视频免费观看 | 国产一区欧美 | 精品免费av | 欧美偷偷 | 久久国产一区 | 一区二区精品视频 | 性国产丰满麻豆videosex | 在线综合视频 | 视频一区中文字幕 | 日韩中文字幕一区二区三区 | 黄色日批视频 | 日本亚洲精品成人欧美一区 | 欧产日产国产精品视频 | 精品综合在线 | 国产免费一区二区 | 九九热在线免费视频 | 国产在线精品一区二区三区 | 国产免费一区二区 | 成人日韩 | 国产精品久久久久久久久久久新郎 | 国产成人精品一区二区三区在线 | 极品在线| 夜夜操天天操 | 久久99久久99 | 色视频在线免费观看 | 国产精品揄拍一区二区 | 一区二区成人 | 日本成人在线免费视频 | 国产一级在线观看 | 欧美成人激情视频 | 狠狠狠色丁香婷婷综合久久五月 | 九九热免费在线观看 |