2017-04-20 12 views
0

私はC++モジュールを使用しているプロジェクトを実行しようとしています。すべてを試しても何も動作しませんが、このエラーが発生します。このエラーをアンドロイドスタジオで手伝ってもらえますか?

エラー:タスク ':pulseandroid:compileDebugNdk'の実行に失敗しました。

Error: Your project contains C++ files but it is not using a supported native build system. Consider using CMake or ndk-build integration with the stable Android Gradle plugin: https://developer.android.com/studio/projects/add-native-code.html or use the experimental plugin: https://developer.android.com/studio/build/experimental-plugin.html .

+0

build.gradle(Module:app)でこの部分を入れて、あなたの問題の説明的なものにスレッド名を変更してください。 – theblitz

+0

あなたはリンクを読みましたか? –

答えて

0

1 - NDKは

2をインストールしていることを確認します - buildTypes{}

sourceSets { 
    main { 
     jni.srcDirs = [] 
    } 
} 
buildTypes{} 
+0

多くの感謝:)それは動作します –

関連する問題