Android

※前提条件:本情報はAndroidStudio1.5.1を基づいて説明してる

概要

Android NDKとは? Android Native Development Kitの略称。Android アプリケーションの一部または全部をC/C++言語で開発するためのキットです。

環境の準備

■事象

Android Studioでコンパイルすると以下のエラーが発生

 Error:(50, 0) Error: NDK integration is deprecated in the current plugin. 
Consider trying the new experimental plugin. For details, 
see http://tools.android.com/tech-docs/new-build-system/gradle-experimental. 
Set "android.useDeprecatedNdk=true" in gradle.properties to continue using the current NDK integration.

■原因

NDKがインストール・設定されていないこと。

■対策

以下のファイルをダウンロードし、インストールこと、筆者はAndroidStudioの「SDK Quickfix Installation」機能を利用して、必須なコンポーネントをダウンロードした。

android-ndk-r11-windows-x86_64.zip

「gradle.properties」ファイルに以下の設定を追加し、プロジェクトをリビルドすればよい

android.useDeprecatedNdk=true


フレッツ光が月額556円~【GMOとくとくBB】

コメント:



(画像の文字列を入力して下さい)

トップ   編集 凍結 差分 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2019/12/02 (月) 12:32:30 (1628d)

G|Cg|C@Amazon Yahoo yV

z[y[W yVoC[UNLIMITȂ1~] COiq COsیI