Your project contains C++ files but it is not using a supported native build system.

异常如下

Error:Execution failed for task ':xdySDKddd: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:
 http://tools.android.com/tech-docs/new-build-system/gradle-experimental.

解决方法如下

在gradle里添加如下


buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
        sourceSets {
            main {
                jni.srcDirs = []
            }
        }
    }


"is not a supported wheel on this platform"是一个常见的pip安装报错信息,表示在当前平台上不支持该安装包。这个错误信息通常出现在尝试使用pip安装一个.whl文件(Python包的二进制分发)时。有几个可能的原因导致这个问题出现。 首先,可能是因为你正在尝试在不兼容的操作系统或Python版本上安装该包。某些包可能只支持特定的操作系统或Python版本,因此你需要确保你的操作系统和Python版本与包的要求相匹配。 其次,可能是因为你下载的.whl文件与你的操作系统或Python版本不兼容。你需要确保下载的.whl文件是适用于你的操作系统和Python版本的。 另外,可能是因为你的pip版本过旧。你可以尝试升级pip到最新版本,使用以下命令:pip install --upgrade pip 最后,可能是因为你正在使用的Python环境没有正确配置。你可以使用命令pip --version来确认你正在使用的pip是与你所期望的Python版本相关联的。如果不是,你可以尝试使用pip3代替pip来确保与你所需的Python版本相关联。 综上所述,解决"is not a supported wheel on this platform"报错的方法包括: 1. 确保你的操作系统和Python版本与安装包的要求相匹配。 2. 确保下载的.whl文件与你的操作系统和Python版本兼容。 3. 升级pip到最新版本。 4. 确认你正在使用的pip与你所需的Python版本相关联。 请根据你的具体情况尝试以上方法来解决该报错。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [(2021年)is not a supported wheel on this platform解决方案](https://blog.csdn.net/qq_40734247/article/details/119391890)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* [Python使用pip安装报错:is not a supported wheel on this platform的解决方法](https://download.csdn.net/download/weixin_38637918/12870748)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值