2016-11-07 6 views
3

エラー:タスク ':app:compileDebugNdk'の実行に失敗しました。プロジェクトの実装中に私はこのプロジェクトにC + +ファイルが含まれていますが、サポートされているネイティブビルドシステムを使用していません。

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: http://tools.android.com/tech-docs/new-build-system/gradle-experimental .

+0

ある[エラー:あなたのプロジェクトは、C++のファイルが含まれていますが、サポートされるネイティブのビルドシステムを使用していません]( https://stackoverflow.com/questions/40065871)* –

答えて

4

ここにあなたのgradle.properties

android.useDeprecatedNdk=trueを追加鉱山は、それが実際に*の複製だ

# Project-wide Gradle settings. 

# IDE (e.g. Android Studio) users: 
# Gradle settings configured through the IDE *will override* 
# any settings specified in this file. 

# For more details on how to configure your build environment visit 
# http://www.gradle.org/docs/current/userguide/build_environment.html 

# Specifies the JVM arguments used for the daemon process. 
# The setting is particularly useful for tweaking memory settings. 
# Default value: -Xmx10248m -XX:MaxPermSize=256m 
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 

# When configured, Gradle will run in incubating parallel mode. 
# This option should only be used with decoupled projects. More details, visit 
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 
# org.gradle.parallel=true 

android.useDeprecatedNdk=true 
+0

http://tools.android.com/tech-docs/new-build-system/gradle-experimentalもオプションです – sgupta

+0

http://stackoverflow.com/質問/ 41791429/error-your-project-contains-c-files-b ut-it-is-not-a-supported-native-buを使用しています – sgupta

+0

ええ、ユーザーのprefに依存します。 @ gupta –

関連する問題