※前提条件:本情報は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】 コメント: |