美文网首页
NDK is missing a "platforms" dir

NDK is missing a "platforms" dir

作者: a_simple_coder | 来源:发表于2022-05-13 15:12 被阅读0次

    Android Studio 执行:

    ./gradlew clean
    

    报以下警告:

    image.png
    解决方法
    在要添加的NDK路径下面,新建立了一个空文件夹platforms便解决了这个问题:
    image.png

    接下来报:

    FAILURE: Build failed with an exception.
    
    * What went wrong:
    A problem occurred configuring project ':app'.
    > No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi
    
    

    解决方法
    指定NDK位置:(有说Android studio4.1版本已不需要指定ndk位置,只需要指定ndk版本即可。但指定版本的话,会报Could not find method ndkVersion() for arguments [22.1.7171670] on object of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension)

    1、打开Project Structure->SDK Location:


    image.png
    Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.tencent.bugly:crashreport:latest.release.
    

    相关文章

      网友评论

          本文标题:NDK is missing a "platforms" dir

          本文链接:https://www.haomeiwen.com/subject/lxeuurtx.html