查看: 6925|回复: 8

关于直连APP的问题

升级   0.15%

1

主题

5

回帖

15

积分

注册会员

Rank: 2

积分
15
发表于 2019-10-17 22:20:40 | 显示全部楼层 |阅读模式
源文件在导入android studio的时候sync就出现这个错误,请问怎么解决?ERROR: Could not get unknown property 'gradle_version' for object of type org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension.
回复

使用道具 举报

升级   0.15%

1

主题

5

回帖

15

积分

注册会员

Rank: 2

积分
15
发表于 2019-10-18 10:51:24 | 显示全部楼层
回复

使用道具 举报

升级   100%

139

主题

1万

回帖

4万

积分

超级版主

Rank: 8Rank: 8

积分
41458
发表于 2019-10-18 10:57:05 | 显示全部楼层
ndk  未安装或者权限或者版本的问题,
建议搜索一下NDK version is UNKNOWN,根据情况处理
回复

使用道具 举报

升级   0.15%

1

主题

5

回帖

15

积分

注册会员

Rank: 2

积分
15
发表于 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
回复

使用道具 举报

升级   100%

139

主题

1万

回帖

4万

积分

超级版主

Rank: 8Rank: 8

积分
41458
发表于 2019-10-18 14:10:37 | 显示全部楼层
那就是NDK 问题导致的,请设置好您机器的开发环境!由于这个涉及到更专业的安卓开发,小小管理员只能力所能及的帮你查找问题可能的原因。
建议看更多的安卓开发的资料!
回复

使用道具 举报

升级   100%

139

主题

1万

回帖

4万

积分

超级版主

Rank: 8Rank: 8

积分
41458
发表于 2019-10-18 09:49:04 | 显示全部楼层
这个是android 开发的问题。一般情况下建议有android 开发基础的人操作!

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

使用道具 举报

升级   0.15%

1

主题

5

回帖

15

积分

注册会员

Rank: 2

积分
15
发表于 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    }}版本号没有动过呢
回复

使用道具 举报

升级   0.15%

1

主题

5

回帖

15

积分

注册会员

Rank: 2

积分
15
发表于 2019-10-18 15:09:18 | 显示全部楼层
非常感谢
回复

使用道具 举报

升级   0.15%

1

主题

5

回帖

15

积分

注册会员

Rank: 2

积分
15
发表于 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
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系客服 关注微信 下载APP 返回顶部 返回列表
viewthread