帖子
帖子
用户
博客
课程
显示全部楼层
47
帖子
2
勋章
1049
Y币

[插件开发] 打包错误 ndk

[复制链接]
发表于 2022-1-6 10:03:31
2022-01-05 11:00:03FAILURE: Build failed with an exception.* What went wrong:A problem occurred configuring project ':app'.> NDK not configured. Download it with SDK manager. Preferred NDK version is '20.0.5594570'. Log: /uzmap/temp/Z0pZ75129HqAQfF/AStudioProject/app/.cxx/ndk_locator_record.json* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help**.**BUILD FAILED in 13s
发个模块开发了,在帖子里会回复你
0
帖子
1
勋章
2506
Y币
模块build.gradle怎么配置的?
47
帖子
2
勋章
1049
Y币
    compileSdkVersion 29
//    dexOptions {
//        javaMaxHeapSize "4g"
//        preDexLibraries false
//    }
    defaultConfig {
        minSdkVersion 20
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        consumerProguardFiles "consumer-rules.pro"

        ndk {
            abiFilters 'armeabi', 'armeabi-v7a', 'x86'
        }
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    buildToolsVersion '28.0.3'
    sourceSets {
        main {
            jniLibs.srcDirs = ['libs']
//            assets.srcDirs = ['assets']


        }
    }


}
repositories{
    flatDir {
        dirs 'libs'
    }
}
JP1688 · 2022-1-6 10:12模块build.gradle怎么配置的?
0
帖子
1
勋章
2506
Y币
你看一下你本地能运行吗?使用的第三方库提供了哪种cpu架构的so库?配置支持的CPU设备类型参考文档配置:https://docs.apicloud.com/Dev-Guide/app-config-manual
您需要登录后才可以回帖 登录

本版积分规则