原因:无法找到带有哈希字符串“android-N"的目标 [英] Cause: failed to find target with hash string 'android-N'

查看:24
本文介绍了原因:无法找到带有哈希字符串“android-N"的目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,我是 android studio 的新手.

Today, I'm newbie in android studio.

我已经更新了最新版本的andriod studio

I have updated the latest version of andriod studio

当我打开一个旧的项目并开始编译项目时,我检索了一个错误消息是原因:无法找到带有哈希字符串 'android-N' 的目标"

When I have opened an old projekct and started compiling the project I retrieve a error message that is "Cause: failed to find target with hash string 'android-N'"

What should I do in order to use this old project in the updated android studio?

谢谢!

来自文件 build.gradle 的源代码

Sourcecode from the file build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    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 {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

推荐答案

android N is not installed in your sdk只需点击错误中写入的链接:

android N is not installed in your sdk Just click on the link written in the error:

打开 Android SDK 管理器它会向您显示帮助您为项目安装所需 sdk 的对话框.

Open Android SDK Manager and it will show you the dialogs that will help you to install the required sdk for your project.

这篇关于原因:无法找到带有哈希字符串“android-N"的目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆