在实施Project的过程中,我面临着这个“您的项目包含C ++文件,但未使用受支持的本机构建系统. [英] while implementing Project I am facing this " Your project contains C++ files but it is not using a supported native build system."
问题描述
错误:任务':app:compileDebugNdk'的执行失败.
Error:Execution failed for task ':app:compileDebugNdk'.
错误:您的项目包含C ++文件,但未使用受支持的本机生成系统. 考虑将CMake或ndk-build集成与稳定的Android Gradle插件结合使用: https://developer.android.com/studio/projects/add- native-code.html 或使用实验性插件: http://tools.android.com/tech-docs/new-build-system/gradle-experimental .
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.
推荐答案
在gradle.properties
这是我的
# 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
这篇关于在实施Project的过程中,我面临着这个“您的项目包含C ++文件,但未使用受支持的本机构建系统.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!