构建错误:任务':app:transformNativeLibsWithStripDebugSymbolForDebug执行失败

2024-07-01

我的 Android 应用程序中有一个 gradle 构建错误。我尝试更新 NDK 和所有模块,但它仍然出现。有谁知道是什么原因导致的以及如何解决它?下面是我的 gradle 文件:

Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDebug'.
> A problem occurred starting process 'command 'D:\Android\SDK\ndk-bundle\toolchains\mips64el-linux-android-4.9\prebuilt\windows-x86_64\bin\mips64el-linux-android-strip''

gradle:

apply plugin: 'com.android.application'

android {
    signingConfigs {
        debug {
            storeFile file('../buildsystem/debug_key.jks')
            storePassword 'mypassword'
            keyAlias 'androiddebug'
            keyPassword 'mypassword'
        }
        release {
            keyAlias 'Alias'
            keyPassword 'mypassword'
            storeFile file('release.jks')
            storePassword 'mypassword'
        }
    }
    compileSdkVersion 25
    buildToolsVersion "27.0.3"
    defaultConfig {
        applicationId "com.mytestapplication.app"
        minSdkVersion 19
        targetSdkVersion 27
        versionCode 3
        versionName "1.2.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
            //debuggable true
        }
        debug {
            signingConfig signingConfigs.debug
        }
    }
    dexOptions {
        javaMaxHeapSize "4g"
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.journeyapps:zxing-android-embedded:3.5.0'
    compile 'com.android.support:appcompat-v7:25.1.0'
    compile 'com.android.support:support-v4:25.1.0'
    compile 'com.android.support:design:25.1.0'
    compile 'com.squareup.retrofit2:retrofit:2.3.0'
    compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'
    compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'
    compile 'com.squareup.okhttp3:okhttp:3.4.1'
    compile 'com.android.support:cardview-v7:25.0.+'
    compile 'com.android.support:recyclerview-v7:25.0.+'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.google.code.gson:gson:2.6.1'
    compile 'com.afollestad.material-dialogs:core:0.9.4.5'
    compile 'io.card:android-sdk:5.5.1'
    compile 'com.github.pinball83:masked-edittext:1.0.3'
    compile 'com.github.paolorotolo:appintro:3.3.0'
    compile 'com.google.firebase:firebase-core:12.0.0'
    compile "com.google.firebase:firebase-messaging:12.0.0"

    testCompile 'junit:junit:4.12'
}

apply plugin: 'com.google.gms.google-services'

以防万一,它可能对其他人有帮助。

卸载我的项目中不需要的 NDK 后解决了。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

构建错误:任务':app:transformNativeLibsWithStripDebugSymbolForDebug执行失败 的相关文章

  • 在android中绘制单点触摸运动路径

    我正在尝试制作一个绘图应用程序 我想要绘制单点触摸运动路径在 android 中 就像 Swype 键盘的方式一样 因此我想存储每个像素的 x y 坐标将运动路径转化为数据结构 我如何使用 MotionEvent 指针来执行此操作 您可能不
  • 如果相关服务被终止,如何更新小部件?

    我有一个录音应用程序 目前正在为其开发一个小部件 录音是由在前台状态的服务中运行的音频引擎执行的 每当音频引擎状态更改为暂停 播放 录制时 就会发送广播 并由更新小部件的接收器进行处理 这样 单击小部件中的录制按钮就会开始录制 这会导致发送
  • 如果没有发生触摸事件,Android SurfaceView 会变慢

    我正在制作一款游戏 除了游戏循环之外一切都很顺利 我正在使用 SurfaceView 并绘制 2D Sprites 位图 目前游戏是一艘穿过小行星带的飞船 飞船停留在屏幕中央 手机向任一方向倾斜以移动小行星 小行星改变位置而不是玩家 当旧的
  • 当应用程序离开后台并在 iOS 和 Android 中返回时,WebView 正在重新加载?

    我有一个小应用程序 它仅包含一个网络视图 我正在使用 url 加载网络视图 但是当我的应用程序进入后台并返回时 网络视图正在重新加载 对我来说 这不应该发生 在 iOS 和 Android 中 当应用程序进入后台时 如何停止 webview
  • 从我的应用程序中搜索 Youtube 应用程序中的特定字符串

    我有一个按钮 当我点击它时 我想调用 Youtube 应用程序并搜索预定义的字符串 搜索字符串是不变的 我的意思是 Youtube 应用程序将自动显示结果 我知道为了搜索频道 我们输入 Intent intent new Intent In
  • 在android 2.3.6中如何通过联系人提供程序获取联系人照片?

    我有这个适用于 android 4 的版本 String email是 Gmail 地址 private Uri getPhotoUriFromEmail String email Uri u null String projection
  • PerformException:执行“单击”时出错

    当我运行 android espresso 测试时出现错误 com google android apps common testing ui espresso PerformException 在视图 id 为 上执行 单击 时出错 我的
  • 从处理程序取消 AsyncTask 及其进度条

    我想取消几秒钟后向服务器发送数据的 AsyncTask 我已经设置了 AsyncTask 和处 理程序 但进度对话框仍然旋转 我怎样才能尽快干净地停止AsyncTask 这就是我到目前为止所拥有的 提前致谢 private class As
  • 函数无法解析 Android NDK

    我正在尝试构建 NDK 项目 但遇到错误 这reverse在使用 JNI 和 NDK Android 的项目中无法解析该函数 您可以在附图中看到这一点 我已在路径和符号部分的项目属性中添加了路径 gt 也请参阅屏幕截图 None
  • INSTALL_FAILED_MISSING_SHARED_LIBRARY 没有 google api

    好吧 我一直在浏览 但我最终得到的只是谷歌的 api 我没有在我的应用程序中使用任何来自谷歌的API 我正在编写一个使用 sqlite 浏览器的应用程序 但尚未使用任何其他参考 任何想法 我之前没有开始过这个应用程序 所以现在这是一个非常大
  • 语音识别 API,Google Voice 会这么做吗?

    我有一个 Android 应用程序的想法 我希望能够说出命令并让应用程序监听这些命令并执行一些操作 例如 我希望我的应用程序闲置并听我的声音 当它听到我说 开始 时 应用程序将开始执行某些操作 直到我说 停止 这个想法是把手机放下 而不必实
  • Android UserManager.isUserAGoat() 的正确用例?

    想要改进这篇文章吗 提供此问题的详细答案 包括引用和解释为什么你的答案是正确的 不够详细的答案可能会被编辑或删除 我正在查看 中引入的新 API安卓4 2 http en wikipedia org wiki Android version
  • 当 error.networkResponse 为 null 时 Android Volley 中的 Http 状态代码

    我在 Android 平台上使用 Google Volley 我遇到的问题是error参数输入onErrorResponse返回 nullnetworkResponse对于我正在使用的 RESTful API 我需要确定通常以 401 SC
  • 在单元测试用例中未调用 AsyncTask onPostExecute()

    我看过很多与此相关的帖子 但似乎没有一个与我遇到的问题相同 GetBusinessRulesTask 扩展了 AsyncTask 当我在单元测试用例中执行此操作时 onPostExecute 永远不会被调用 但是 如果我使用真正的客户端代码
  • Arcgis:如何获取设备位置

    我如何尝试在我的应用程序中实现这些代码 但它不起作用 我不知道哪里出了问题 基本上 当我启动设备位置的示例时 它没有显示我当前所在的位置 并且我没有看到任何与我当前所在位置类似的蓝点 我唯一看到的就是地图 只是一个简单的缩小地图 如果有人可
  • Cache.properties(系统找不到指定的文件)

    我刚刚开始使用 Android Studio 1 3 sdk 24 直到今天它都运行良好 我收到有关 cache properties 的错误消息 并删除了该缓存文件 但现在收到此错误消息 Error C Users user1 gradl
  • EditText“maxLines”属性不起作用

    我有一个多行 EditText 用户可以在其中输入长句子 这就是我想要的 高度为 6 行的 EditText 从第一行到第五行 我希望 EditText 的 IME 操作按钮具有 Enter 转到新行 按钮 在第六 最后 行 它应该更改为
  • commons-logging 定义的类与 Android Studio 更新后 Android 现在提供的类冲突

    我已经将 Android Studio 更新到版本 3 现在似乎无法编译我之前编译的项目而没有错误 错误信息如下 错误 错误 commons logging 定义了与以下内容冲突的类 Android 现在提供的类 解决方案包括寻找更新的 没
  • android 软键盘出现时会破坏布局

    这是一个布局
  • Gradle Plugin 3.2.0 带数据绑定,无法解析包名称

    将 Android Studio 从 3 1 2 更新到 3 2 0 并将 gradle 插件更新到 3 2 0 后 我遇到了生成的数据绑定类的问题 这些类抱怨包名称不存在 但它确实存在存在 该包属于项目中的一个模块 以下是我在尝试运行该应

随机推荐