You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

执行ns build android失败,无法生成debug.apk求助

问题描述

执行ns build android命令时出现构建失败错误,具体错误信息如下:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeDebugNativeLibs'.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
More than one file was found with OS independent path 'lib/arm64-v8a/libNativeScript.so'

同时runSbg.log文件为空,我仅需生成debug版本的apk,当前项目的package.json配置如下:

{  
  "name": "pillconsfront",  
  "main": "./src/main.ts",  
  "version": "1.0.0",  
  "private": true,  
  "dependencies": {  
    "@angular/animations": "~15.0.0",  
    "@angular/common": "~15.0.0",  
    "@angular/compiler": "~15.0.0",  
    "@angular/core": "~15.0.0",  
    "@angular/forms": "~15.0.0",  
    "@angular/platform-browser": "~15.0.0",  
    "@angular/platform-browser-dynamic": "~15.0.0",  
    "@angular/router": "~15.0.0",  
    "@nativescript/angular": "~15.0.0",  
    "@nativescript/core": "~8.4.0",  
    "@nativescript/theme": "~3.0.2",  
    "rxjs": "~7.5.0",  
    "zone.js": "~0.11.5"  
  },  
  "devDependencies": {  
    "@angular-devkit/build-angular": "~15.0.0",  
    "@angular/compiler-cli": "~15.0.0",  
    "@nativescript/android": "8.4.0",  
    "@nativescript/preview-cli": "1.0.2",  
    "@nativescript/types": "~8.4.0",  
    "@nativescript/webpack": "~5.0.12",  
    "@ngtools/webpack": "~15.0.0",  
    "typescript": "~4.8.4"  
  }
}

内容的提问来源于stack exchange,提问作者user609511

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.09 17:30:45