gpt4 book ai didi

java - 使用 RenderScript 库编译时出错 : llvm-rs-cc. exe'' 以非零退出值完成 -1073741515

转载 作者:行者123 更新时间:2023-11-30 08:45:56 24 4
gpt4 key购买 nike

如标题所述,当我想将 RenderScript 添加到我的项目时,出现以下错误(在 Gradle Sync 上):

错误:任务“:app:compileDebugRenderscript”执行失败。 > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Dries\AppData\Local\Android\sdk2\build-tools\23.0.1* *llvm-rs-cc.exe'' 以非零退出值 -1073741515 结束**

我正在使用 Android Studio 1.3.2

这是我的build.gradle:

    import com.android.build.gradle.internal.dsl.ProductFlavor

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"

defaultConfig {
applicationId "com.example.dries.myocrtest"
minSdkVersion 17
targetSdkVersion 23
versionCode 1
versionName "1.0"

renderscriptTargetApi 22
renderscriptSupportModeEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.1'
compile project(':tesstwo')
compile project(':fileExplorer')
}

testwo build.gradle 文件:

apply plugin: 'com.android.library'

android {
compileSdkVersion 23
buildToolsVersion "19.1.0"

defaultConfig {
minSdkVersion 8
targetSdkVersion 20
}

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

fileExplorer build.gradle 文件:

apply plugin: 'com.android.library'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"

defaultConfig {
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}

我在评论 Stephen Hines 的帖子时提到的其他错误:

warning: Linking two modules of different data layouts: 'C:\Users\Dries\AppData\Local\Android\sdk2\build-tools\23.0.1\renderscript\lib\bc\armeabi-v7a\libclcore.bc' is 'e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64' whereas 'C:\Users\Dries\AndroidDev\MyOCRTEST\app\build\generated\res\rs\debug\raw\bc64\inverse.bc' is 'e-m:e-i64:64-i128:128-n32:64-S128'
warning: Linking two modules of different target triples: C:\Users\Dries\AppData\Local\Android\sdk2\build-tools\23.0.1\renderscript\lib\bc\armeabi-v7a\libclcore.bc' is 'armv7-none-linux-gnueabi' whereas 'C:\Users\Dries\AndroidDev\MyOCRTEST\app\build\generated\res\rs\debug\raw\bc64\inverse.bc' is 'aarch64-none-linux-gnueabi'
E/bcc (27612): Unable to compile the source to file C:\Users\Dries\AndroidDev\MyOCRTEST\app\build\intermediates\rs\debug\obj\armeabi-v7a\inverse.o! (Error loading input bitcode)
Error:Execution failed for task ':app:compileDebugRenderscript'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Dries\AppData\Local\Android\sdk2\build-tools\23.0.1\bcc_compat.exe'' finished with non-zero exit value 1
Failed to compile script!

最佳答案

这是 SDK 的打包问题。您可以将相关的 .dll 文件从工具安装的 lib/部分复制到 bin/目录中。它们应该是 libClang.dll、libLLVM.dll 和 libbcc.dll。

关于java - 使用 RenderScript 库编译时出错 : llvm-rs-cc. exe'' 以非零退出值完成 -1073741515,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33108452/

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