【问题标题】:ionic A problem occurred starting process prebuilt\windows-x86_64\bin\mips64el-linux-android-stripionic 启动进程 prebuilt\windows-x86_64\bin\mips64el-linux-android-strip 出现问题
【发布时间】:2019-03-26 17:56:03
【问题描述】:

我用

创建了一个新的离子应用程序
> ionic start myAppNameHere blank

我在link: https://github.com/ionic-team/ionic-native-google-maps/blob/master/documents/README.md 之后将 android 和 ios 的谷歌地图添加到我的应用程序中。我还运行以下命令

> ionic cordova platform add android && ionic cordova build android

但我收到此错误:

任务“:app:transformNativeLibsWithStripDebugSymbolForDebug”执行失败。

启动进程 'command 'C:\Users\myusernamehere\AppData\Local\Android\Sdk\ndk-bundle\toolchains\mips64el-linux-android-4.9\prebuilt\windows-x86_64\bin\mips64el- 时出现问题linux-android-strip'' `

有人可以帮帮我

【问题讨论】:

    标签: node.js google-maps cordova ionic-framework


    【解决方案1】:

    以下是我在 上安装 的经验总结。请特别参阅 错误部分。只需按照说明创建虚拟文件夹和子文件夹即可。

    Cordova 希望看到到 C:\Users\myusernamehere\AppData\Local\Android\Sdk\ndk-bundle\toolchains\mips64el-linux-android-4.9\prebuilt\windows-x86_64\bin\mips64el-linux-android-strip 的路径,但不需要它(在我的情况下),如果不存在会抛出错误。

    Ionic Cordova 安装经验。

    • Re- install Java JDK 8 to the latest update.
    • Add ANDROID_SDK_ROOT variable to point to existing installation of Android Studio SDK
    • Add Java JDK\bin to the environment PATH variable on user and system
    • Download Gradle 5.2 and create folder C:\Gradle and extract the contents inside. Your 
    The path should look like this  
    

    C:\Gradle\gradle-5.2\bin\gradle.bat

    • "C:\Gradle\gradle-5.2\bin" 添加到系统上的PATH 变量

      从命令行执行以下操作..

    1. export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
    2. export PATH=$PATH:$ANDROID_SDK_ROOT/tools/bin
    3. export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools
    4. export PATH=$PATH:$ANDROID_SDK_ROOT/emulator
    • Using a previously installed edition of Android Studio go to Tools => SDK Tools 
    And check the NDK checkbox for download, click apply and ok.
    • In the project terminal - Enter 
    

    ionic cordova 准备安卓

    构建 Cordova。
    如果有错误删除platforms\android项目目录并重建。
    如果在寻找 NDK 时出现 Gradle 错误 "mips64el-linux-android-version"

    Do the following ..  
    
    • Open the NDK bundle\toolchains folder within Android SDK eg C:\Users\Shay\AppData\Local\Android\sdk\ndk-bundle\toolchains
    • And using command line create a folder "mips64el-linux-android-4.9" ( same version number (4.9) as other folders) inside create folder "prebuilt" .. then folder "windows-x86_64" and inside place and empty text file for contents. 
    The created path should look like .. "C:\Users\Shay\AppData\Local\Android\sdk\ndk-bundle\toolchains\mips64el-linux-android-4.9\prebuilt\windows-x86_64\dummy file"  is not required by Cordova but is expected to be in its path .. otherwise it will throw an error and fail to build.
    

    或者,下载旧版本(例如 https://developer.android.com/ndk/downloads/older_releases/android-ndk-r16b-windows-x86_64.zip)并将所需文件夹解压缩到与上述相同位置的新 文件夹中。

    • Finally, once again enter 
    

    ionic cordova 准备安卓

    构建科尔多瓦

    The Ionic build order (as I observed it) is a follows ..
    
    1. It looks for all the relevant Java and Android SDK paths .. 
    2. Then uses Gradle as the build system .. 
    3. Check for NDK bundle ..
    4. Build project
    

    以上内容我花了两天时间才弄明白。希望它对您有所帮助并减轻您的头痛。

    【讨论】:

      猜你喜欢
      • 2019-01-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-31
      • 2023-02-10
      • 2011-09-05
      • 2010-11-28
      • 1970-01-01
      相关资源
      最近更新 更多