houdongen 发表于 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

飞龙在天 发表于 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/questions/70632741/android-studio-error-unsupported-class-file-major-version-61

houdongen 发表于 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版本

飞龙在天 发表于 2023-6-15 12:59:49

houdongen 发表于 2023-6-15 10:51
我知道是和环境有关,那咱们的环境需求是啥
比如 gradle 版本   (直接git 为6.5)
      JDK    版本


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

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

houdongen 发表于 2023-6-15 15:05:52

因为最新的安卓studio默认是jdk17

houdongen 发表于 2023-6-15 16:23:44

飞龙在天 发表于 2023-6-15 12:59
JDK11gradle 和 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 :o2_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

houdongen 发表于 2023-6-16 11:29:43

飞龙在天 发表于 2023-6-15 12:59
JDK11gradle 和 kotlin配置文件里面写了版本的,没动过源码和配置 应该没有问题的。

网上的说法 你 ...

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

飞龙在天 发表于 2023-6-19 13:07:36

houdongen 发表于 2023-6-16 11:29
更好AS正常打包了,但是有很多警告,这是什么情况

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

irisnet 发表于 2023-6-20 11:09:02

MARK, 不要犯同类错误。

xadmin 发表于 2023-6-21 10:16:57

irisnet 发表于 2023-6-20 11:09
MARK, 不要犯同类错误。

:handshake
页: 1 [2]
查看完整版本: 安卓APP