Gradle同步失败,未配置NDK,请使用SDK管理器下载

Karina H 12/03/2016. 4 answers, 12.918 views
android android android-ndk android-ndk

我对Android开发完全陌生,刚刚安装了Android Studio。 我正在做一个非常基本的HelloGL2练习,并且打开了HelloGL2.iml文件。 我试着运行它,但它表示gradle项目同步失败,并且未配置NDK。 用最简单的术语(对于Android中的完全初学者),我该如何解决这个问题?

1 Comments
Morrison Chang 12/03/2016
我假设您已经找到了这个代码实验室: codelabs.developers.google.com/codelabs/android-studio-jni/# 0它一步一步回答了如何让'Hello World'与Android Studio和NDK。

4 Answers


Umair 12/27/2016.

您可以使用SDK管理器安装这些组件:

From an open project, select Tools > Android > SDK Manager from the main menu.
Click the SDK Tools tab.
Check the box next to NDK
Click apply 

请参阅指南了解更多详情


A.Bahrami 07/23/2017.

如果你看到这个错误,你的SDK中可能没有任何NDK。

所以你最好从这里下载并复制SDK中的所有文件夹和文件。

你也可以去; 打开项目>选择工具[在上部页面]> Android> SDK管理器[从主菜单]>单击SDK工具选项卡>并选中NDK旁边的框

如果您在SDK Tools选项卡中没有NDK,则可以在此文件夹中自动下载


我的版本有点不同:

从打开的项目中,从主菜单中选择工具> Android> SDK管理器。 在外观和行为>系统设置> Android SDK中,我必须点击SDK Tools标签。 选中NDK旁边的框点击应用


Ijas Aslam 10/13/2017.

//试试这个1 - Android Studio - >工具 - > SDK Manager - >选择SDK工具

2 - 选中LLDB,CMake和NDK旁边的框

3 - 应用并按OK按钮.. 在这里输入图像描述


HighResolutionMusic.com - Download Hi-Res Songs

1 (G)I-DLE

POP/STARS flac

(G)I-DLE. 2018. Writer: Riot Music Team;Harloe.
2 Ariana Grande

​Thank U, Next flac

Ariana Grande. 2018. Writer: Crazy Mike;Scootie;Victoria Monét;Tayla Parx;TBHits;Ariana Grande.
3 Clean Bandit

Baby flac

Clean Bandit. 2018. Writer: Jack Patterson;Kamille;Jason Evigan;Matthew Knott;Marina;Luis Fonsi.
4 Imagine Dragons

Bad Liar flac

Imagine Dragons. 2018. Writer: Jorgen Odegard;Daniel Platzman;Ben McKee;Wayne Sermon;Aja Volkman;Dan Reynolds.
5 Halsey

Without Me flac

Halsey. 2018. Writer: Halsey;Delacey;Louis Bell;Amy Allen;Justin Timberlake;Timbaland;Scott Storch.
6 BTS

Waste It On Me flac

BTS. 2018. Writer: Steve Aoki;Jeff Halavacs;Ryan Ogren;Michael Gazzo;Nate Cyphert;Sean Foreman;RM.
7 Nicki Minaj

No Candle No Light flac

Nicki Minaj. 2018. Writer: Denisia “Blu June” Andrews;Kathryn Ostenberg;Brittany "Chi" Coney;Brian Lee;TJ Routon;Tushar Apte;ZAYN;Nicki Minaj.
8 Backstreet Boys

Chances flac

Backstreet Boys. 2018.
9 BlackPink

Kiss And Make Up flac

BlackPink. 2018. Writer: Soke;Kny Factory;Billboard;Chelcee Grimes;Teddy Park;Marc Vincent;Dua Lipa.
10 Little Mix

The Cure flac

Little Mix. 2018. Writer: Pete Kelleher;Camille Purcell;Tom Barnes;Ben Kohn.
11 Fitz And The Tantrums

HandClap flac

Fitz And The Tantrums. 2017. Writer: Fitz And The Tantrums;Eric Frederic;Sam Hollander.
12 Diplo

Close To Me flac

Diplo. 2018. Writer: Ellie Goulding;Savan Kotecha;Peter Svensson;Ilya;Swae Lee;Diplo.
13 The Chainsmokers

Beach House flac

The Chainsmokers. 2018. Writer: Andrew Taggart.
14 Bradley Cooper

Always Remember Us This Way flac

Bradley Cooper. 2018. Writer: Lady Gaga;Dave Cobb.
15 Kelly Clarkson

Never Enough flac

Kelly Clarkson. 2018. Writer: Benj Pasek;Justin Paul.
16 Lady Gaga

I'll Never Love Again flac

Lady Gaga. 2018. Writer: Benjamin Rice;Lady Gaga.
17 Frida Sundemo

Apologize flac

Frida Sundemo. 2018.
18 Little Mix

Woman Like Me flac

Little Mix. 2018. Writer: Nicki Minaj;Steve Mac;Ed Sheeran;Jess Glynne.
19 Imagine Dragons

Machine flac

Imagine Dragons. 2018. Writer: Wayne Sermon;Daniel Platzman;Dan Reynolds;Ben McKee;Alex Da Kid.
20 Billie Eilish

When The Party's Over flac

Billie Eilish. 2018. Writer: Billie Eilish;FINNEAS.

Related questions

Hot questions

Language

Popular Tags