【发布时间】:2021-03-02 16:40:10
【问题描述】:
我遇到了问题。我以前的笔记本电脑 Acer Aspire R7 Windows 10 64 位笔记本电脑崩溃了。这是我唯一的笔记本电脑,直到我得到另一台笔记本电脑,但它是 Windows 7 32 位三星。无论如何,我能够安装旧版本的 Android Studio,但我现在遇到了问题。当我尝试打开从以前的笔记本电脑创建的应用程序时,它一直在告诉我 “Gradle 项目同步失败”。基本功能(例如编辑和调试)将无法正常工作”并显示“未配置 Kotlin”。
我的代码没有任何问题,所以我只能说问题所在。我现在不知道该怎么办,因为这是我的收入来源,现在我无法继续使用它。
更新
所以我现在取得了一些进步,但我仍然有问题。
这是我尝试清理或重建项目时日志显示的内容
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.1.1/userguide/gradle_daemon.html
Process command line: C:\Users\Rodney SA\Downloads\android-studio-ide-192.6241897-windows32\android-studio\jre\bin\java.exe -Xmx2048m -Dfile.encoding=windows-1252 -Duser.country=US -Duser.language=en -Duser.variant -cp C:\Users\Rodney SA\.gradle\wrapper\dists\gradle-6.1.1-all\cfmwm155h49vnt3hynmlrsdst\gradle-6.1.1\lib\gradle-launcher-6.1.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.1.1
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap
-----------------------
Check the JVM arguments defined for the gradle process in:
- gradle.properties in project root directory
【问题讨论】:
-
上传你的 build.gradle
-
这是个问题。它只显示“正在启动守护程序”和“MyNotepad(我的应用程序名称)应用程序无法构建”。这就是我的全部
-
转到你的应用目录在记事本中打开 build.gradle 复制代码并粘贴到这里
-
我在更新的问题中粘贴了 gradle
标签: android-studio windows-7 32bit-64bit