longing 发表于 2019-10-17 22:20:40

关于直连APP的问题

源文件在导入android studio的时候sync就出现这个错误,请问怎么解决?ERROR: Could not get unknown property 'gradle_version' for object of type org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension.

longing 发表于 2019-10-18 10:51:24

http://www.o2oa.net:20020/x_file_assemble_control/jaxrs/file/27158b67-3977-4800-8f6c-836e4b820b96/download/stream

论坛管理员 发表于 2019-10-18 10:57:05

ndk未安装或者权限或者版本的问题,
建议搜索一下NDK version is UNKNOWN,根据情况处理

longing 发表于 2019-10-18 11:04:23

Parallel execution is an incubating feature.
NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory.It is currently set to E:\test\Sdk\ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
5.0.2
app: 'annotationProcessor' dependencies won't be recognized as kapt annotation processors. Please change the configuration name to 'kapt' for these artifacts: 'android.arch.lifecycle:compiler:1.1.1'.
CONFIGURE SUCCESSFUL in 3s
Cause: null value in entry: BAIDU_SPEECH_SECRET=null

论坛管理员 发表于 2019-10-18 14:10:37

那就是NDK 问题导致的,请设置好您机器的开发环境!由于这个涉及到更专业的安卓开发,小小管理员只能力所能及的帮你查找问题可能的原因。
建议看更多的安卓开发的资料!

论坛管理员 发表于 2019-10-18 09:49:04

这个是android 开发的问题。一般情况下建议有android 开发基础的人操作!

这个gradle_version是 配置文件里面的一个变量, 不知道您是否动过源码或者导入的方式不对,该参数是build.gradle 内的一个参数。
如果您使用的方式不,或者其他操作,那可能会导致错误!
建议先自查,或者如果有更详细的错误提醒,才能进一步分析!

longing 发表于 2019-10-18 10:47:16

// Top-level build file where you can add configuration options common to all sub-projects/modules.ext {}buildscript {    //版本号    ext.kotlin_version = '1.2.71'    ext.anko_version = '0.10.3'    ext.gradle_version = '3.1.0'    repositories {      google()      jcenter()    }    dependencies {      classpath "com.android.tools.build:gradle:3.1.0"      classpath "io.realm:realm-gradle-plugin:3.1.1"      classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"      // NOTE: Do not place your application dependencies here; they belong      // in the individual module build.gradle files    }}版本号没有动过呢

longing 发表于 2019-10-18 15:09:18

非常感谢

longing 发表于 2019-10-18 10:47:40

最新的报错的这样的
2019/10/18
10:45    Gradle sync started with IDEA sync
10:45    Gradle sync failed: Cause: null value in entry: BAIDU_SPEECH_SECRET=null
            Consult IDE log for more details (Help | Show Log) (26 s 10 ms)
10:45    NDK Resolution Outcome: Project settings: Gradle model version=4.4, NDK version is UNKNOWN
页: [1]
查看完整版本: 关于直连APP的问题