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

未找到 Android Studio Gradle DSL 方法:'android()'

Android Studio Gradle DSL method not found: #39;android()#39; -- Error(17,0)(未找到 Android Studio Gradle DSL 方法:android() -- 錯誤 (17,0))
本文介紹了未找到 Android Studio Gradle DSL 方法:'android()' -- 錯誤 (17,0)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我正在嘗試在 Android Studio 中運行我的項目,但出現以下錯誤:

I am attempting to run my project in Android Studio but the error appears below:

我已經跟蹤了許多來源,只是為了讓它運行并在這里結束,但不知道還能做什么.

I have followed many sources just to get this to run and have wound up here, but do not know what else to do.

如何配置此項目以運行?

How can I configure this project to run?

build.gradle:

    // Top-level build file where you can add configuration options common to all sub-projects/modules.
    buildscript {
        repositories {
            mavenCentral()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:0.9.+'
        }
    }

    allprojects {
        repositories {
            mavenCentral()
        }
    }

    android {
        compileSdkVersion 19
        buildToolsVersion "19.1" 
    }

settings.gradle:

include ':app'

local.properties:

sdk.dir=C:\Users\KJA\AppData\Local\Android\sdk

gradle.propertes:

# IDE (e.g. Android Studio) users:
# Settings specified in this file will override any Gradle settings
# configured through the IDE.

# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

推薦答案

我繼續從您提供的鏈接下載項目:http://javapapers.com/android/android-chat-bubble/

I went ahead and downloaded the project from the link you provided: http://javapapers.com/android/android-chat-bubble/

由于這是一個舊教程,您只需升級軟件、gradle、android 構建工具和插件.

Since this is an old tutorial, you simply need to upgrade the software, gradle, the android build tools and plugin.

  • https://www.gradle.org/
  • http://tools.android.com/tech-docs/new-build-system/version-compatibility
buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.2'
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

app/build.gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion '23.0.3'

    defaultConfig {
        minSdkVersion 9
        targetSdkVersion 23
        versionCode 1
        versionName '1.0'
    }
}

dependencies {
    compile 'com.android.support:appcompat-v7:23.2.1'
}

然后運行gradle:

gradle installDebug

這篇關于未找到 Android Studio Gradle DSL 方法:'android()' -- 錯誤 (17,0)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 庫的傳遞依賴)
主站蜘蛛池模板: 中国一级大黄大片 | 青青久久 | 一区二区三区视频在线免费观看 | 欧美黄色绿像 | 亚洲国产精品久久久 | 国产91丝袜在线播放 | 日本黄色一级视频 | 天堂在线免费视频 | 久久九精品 | 国产成人亚洲精品自产在线 | 亚洲精品福利视频 | 亚洲第一福利网 | 精品真实国产乱文在线 | www.成人.com| 99re在线视频观看 | 久日精品 | 成人精品在线观看 | 久久一热 | 国产在线色 | 亚洲午夜精品久久久久久app | 天天弄天天操 | 日韩综合网 | 99热精品在线 | 精品九九九 | 中文字幕乱码一区二区三区 | 亚洲欧美国产毛片在线 | 国产精品欧美精品 | 亚洲免费在线观看 | 国产69精品久久99不卡免费版 | 国产一区中文字幕 | 亚洲国产精品一区二区三区 | 亚洲精品www久久久久久广东 | 99re99| 美美女高清毛片视频免费观看 | 婷婷中文字幕 | 亚洲精品欧美一区二区三区 | 国产亚洲一区二区三区在线 | 中文在线播放 | 久久青青| 国产成人精品一区二区三区在线 | 国产精品精品视频一区二区三区 |