12
发帖
楼主: houdongen

安卓APP

升级   15.4%

86

主题

174

回帖

1308

积分

金牌会员

Rank: 6Rank: 6

积分
1308
发表于 2023-6-14 10:04:46 | 显示全部楼层
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/6.5/userguide/gradle_daemon.html
Process command line: D:\JDK\bin\java.exe -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Xmx4608M -Dfile.encoding=UTF-8 -Duser.country=CN -Duser.language=zh -Duser.variant -cp C:\Users\Administrator\.gradle\wrapper\dists\gradle-6.5-all\2oz4ud9k3tuxjg84bbf55q0tn\gradle-6.5\lib\gradle-launcher-6.5.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.5
Please read the following process output to find out more:
-----------------------
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
Invalid maximum heap size: -Xmx4608M
The specified size exceeds the maximum representable size.

-----------------------
Check the JVM arguments defined for the gradle process in:
- gradle.properties in project root directory
回复

使用道具 举报

升级   100%

1

主题

658

回帖

2181

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
2181
发表于 2023-6-15 10:19:17 | 显示全部楼层
houdongen 发表于 2023-6-14 09:52
Download https://services.gradle.org/distributions/gradle-6.5-all.zip, took 16 s 13 ms (145.77 MB) ...

你网上搜搜 我就说是环境有关系的 比如 https://stackoverflow.com/questi ... le-major-version-61
回复

使用道具 举报

升级   15.4%

86

主题

174

回帖

1308

积分

金牌会员

Rank: 6Rank: 6

积分
1308
发表于 2023-6-15 10:51:53 | 显示全部楼层
飞龙在天 发表于 2023-6-15 10:19
你网上搜搜 我就说是环境有关系的 比如 https://stackoverflow.com/questions/70632741/android-studio-e ...

我知道是和环境有关,那咱们的环境需求是啥
比如 gradle 版本   (直接git 为6.5)
        JDK    版本
       kntlin  版本
回复

使用道具 举报

升级   100%

1

主题

658

回帖

2181

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
2181
发表于 2023-6-15 12:59:49 | 显示全部楼层
houdongen 发表于 2023-6-15 10:51
我知道是和环境有关,那咱们的环境需求是啥
比如 gradle 版本   (直接git 为6.5)
        JDK    版本

JDK11  gradle 和 kotlin  配置文件里面写了版本的,没动过源码和配置 应该没有问题的。

网上的说法 你这个错误 看起来就是 jdk 版本高了 感觉像是 jdk17 之类的了
回复

使用道具 举报

升级   15.4%

86

主题

174

回帖

1308

积分

金牌会员

Rank: 6Rank: 6

积分
1308
发表于 2023-6-15 15:05:52 来自手机 | 显示全部楼层
因为最新的安卓studio默认是jdk17
回复

使用道具 举报

升级   15.4%

86

主题

174

回帖

1308

积分

金牌会员

Rank: 6Rank: 6

积分
1308
发表于 2023-6-15 16:23:44 | 显示全部楼层
飞龙在天 发表于 2023-6-15 12:59
JDK11  gradle 和 kotlin  配置文件里面写了版本的,没动过源码和配置 应该没有问题的。

网上的说法 你 ...

您好,重新搭建了环境,JDK11 其他源码没动,修改了 local.properties
出现以下报错

Starting Gradle Daemon...
Gradle Daemon started in 1 s 61 ms

> Configure project :app
Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin.
6.4.26
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: 意外的元素 (uri:"", local:"base-extension")。所需元素为<{}codename>,<{}layoutlib>,<{}api-level>
app: 'annotationProcessor' dependencies won't be recognized as kapt annotation processors. Please change the configuration name to 'kapt' for these artifacts: 'androidx.lifecycle:lifecycle-compiler:2.2.0'.

> Configure project 2_auth_sdk
Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin.

> Task :prepareKotlinBuildScriptModel UP-TO-DATE

BUILD SUCCESSFUL in 15s
回复

使用道具 举报

升级   15.4%

86

主题

174

回帖

1308

积分

金牌会员

Rank: 6Rank: 6

积分
1308
发表于 2023-6-16 11:29:43 | 显示全部楼层
飞龙在天 发表于 2023-6-15 12:59
JDK11  gradle 和 kotlin  配置文件里面写了版本的,没动过源码和配置 应该没有问题的。

网上的说法 你 ...

更好AS正常打包了,但是有很多警告,这是什么情况

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

升级   100%

1

主题

658

回帖

2181

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
2181
发表于 2023-6-19 13:07:36 | 显示全部楼层
houdongen 发表于 2023-6-16 11:29
更好AS正常打包了,但是有很多警告,这是什么情况

警告无所谓,一般是一些过期的标签或者规范问题。
你可以自行研究下,修改下这些问题。
回复

使用道具 举报

升级   21.4%

40

主题

95

回帖

607

积分

高级会员

Rank: 4

积分
607
发表于 2023-6-20 11:09:02 | 显示全部楼层
MARK, 不要犯同类错误。
回复

使用道具 举报

升级   100%

3

主题

1504

回帖

4957

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
4957
发表于 2023-6-21 10:16:57 | 显示全部楼层
irisnet 发表于 2023-6-20 11:09
MARK, 不要犯同类错误。

回复

使用道具 举报

12
发帖

发表回复

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

本版积分规则

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