gpt4 book ai didi

android - 错误:(512)*** `wordlist'函数的第二个非数字参数: '16z'。停止

转载 作者:行者123 更新时间:2023-12-02 17:37:23 27 4
gpt4 key购买 nike

我一直在关注一些有关如何在Android Studio中使用opencv和ndk的教程。我已经尝试了所有关于Stack Overflow的解决方案。以下是我的build.gradle文件:

    apply plugin: 'com.android.application'

android {
compileSdkVersion 26
defaultConfig {
applicationId "medianet.com.helloopencv"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
sourceSets.main {
jni.srcDirs = [] //disable automatic ndk-build call
}
task ndkBuild(type: Exec, description: 'Compile JNI source via NDK') {
commandLine "C:/Users/firas/AppData/Local/Android/sdk/ndk-bundle/ndk-build.cmd",
'NDK_PROJECT_PATH=build/intermediates/ndk',
'NDK_LIBS_OUT=src/main/jniLibs',
'APP_BUILD_SCRIPT=src/main/jni/Android.mk',
'NDK_APPLICATION_MK=src/main/jni/Application.mk'
}
tasks.withType(JavaCompile) {
compileTask -> compileTask.dependsOn ndkBuild
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation project(':openCVLibrary330')
}

最佳答案

其实解决方案很简单,这是我的错,我要做的就是转到Android.mk文件并更改:APP_PLATFORM:= android-16z更改为APP_PLATFORM:= android-16。

关于android - 错误:(512)*** `wordlist'函数的第二个非数字参数: '16z'。停止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49149479/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com