Android Studio所有过往版本链接:Android Studio 下载文件归档 | Android Developers(tips:如果打开了网页但是没有的话可以尝试把语言切换到英文)
由于我之前下载了jdkse8,最新支持Java SE 8的Android Studio版本是Android Studio 4.1.3。从4.2版本开始,Android Studio捆绑的JDK版本从JDK 8变动为JDK 11。因此,需要利用Java SE 8,发起利用Android Studio 4.1.3版本。
因此我卸载了我的新版本Android Studio,并下载了Android Studio 4.1.3的压缩包文件。
下载完成后解压,再bin文件夹里面找到studio.exe,我的系统是64位,studio.exe运行失败了,所以我改成了运行studio64.exe成功了。
Failed to load JVM DLL D:VavaVjdkVjrelbin\server\jvm.dllf you already have a 32-bit JDK installed, define a JAVA HOME variable inComputer > System Properties > System Settings > Environment Variables
出现了以上错误,我在设置里重新设置了jdk的路径
A problem occurred configuring root project 'HelloWorld'. > Could not resolve all artifacts for configuration ':classpath'. > Could not resolve com.android.tools.build:gradle:8.6.0. Required by: project : > com.android.application:com.android.application.gradle.plugin:8.6.0 > No matching variant of com.android.tools.build:gradle:8.6.0 was found. The consumer was configured to find a library for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.7' but: - Variant 'apiElements' declares a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares a component for use during compile-time, compatible with Java 11 and the consumer needed a component for use during runtime, compatible with Java 8 - Other compatible attribute: - Doesn't say anything about org.gradle.plugin.api-version (required '8.7') - Variant 'javadocElements' declares a component for use during runtime, and its dependencies declared externally: - Incompatible because this component declares documentation and the consumer needed a library - Other compatible attributes: - Doesn't say anything about its elements (required them packaged as a jar) - Doesn't say anything about its target Java version (required compatibility with Java 8) - Doesn't say anything about org.gradle.plugin.api-version (required '8.7') - Variant 'runtimeElements' declares a library for use during runtime, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares a component, compatible with Java 11 and the consumer needed a component, compatible with Java 8 - Other compatible attribute: - Doesn't say anything about org.gradle.plugin.api-version (required '8.7') - Variant 'sourcesElements' declares a component for use during runtime, and its dependencies declared externally: - Incompatible because this component declares documentation and the consumer needed a library - Other compatible attributes: - Doesn't say anything about its elements (required them packaged as a jar) - Doesn't say anything about its target Java version (required compatibility with Java 8) - Doesn't say anything about org.gradle.plugin.api-version (required '8.7')
又出现了以上错误
好吧原来是我之前下载的最新版本Androidstudio是安装的gradle8.7,但是Androidstudio4.1.3所需的 Android Gradle 插件版本范围是 3.2 到 8.2.又不适配。
我放弃了我又要装回最新版本了,原因是老版本的界面看上去有点土土的。并且原来说新版不适配java语言,我搜了一下发现仍然是可以利用java的。详情见以下链接。
新版Android Studio火烈鸟 在新建项目工程时 无法选java的语言模板解决方法_androidstudio没有java语言选项-CSDN博客
我经过一顿搜索猛如虎,发现最新版本ladybug实在就是最新的Stable Channel(稳定版本)的一部分,所以对于初学者来说是可以利用的
Gradle JVM version incompatible.
This project is configured to use an older Gradle JVM that supports up to version 8 but the current AGP requires a Gradle JVM that supports version 17.
然后又弹出了这个提示。所以照旧jdkse8老了?大概,于是我又去下载了。
关于gradle和Android Studio的关系见以下链接。
Android studio 和 gradle插件版本对应关系(最新 2024年)_android studio版本和gradle版本对应-CSDN博客
下载了之后我发现我之前下载过了。于是我通过everything搜索到了我电脑上之前存在的gradle,并且发现我不但下了gradle8.7还下了gradle8.9。
一番操纵猛如虎之后我终极只能改了Andriod Test\gradle\wrapper\gradle-wrapper.properties里面的distributionUrl改成了本地路径,C:\Users\Acer\AppData\Local\Android\Sdk\gradle-8.7-bin.zip
并且我这边没找到已经安装好的gradle怎么设置,只好再一次将路径改到压缩包的位置,然后压缩包似乎还肯定要在系统主动体例的乱码文件夹里面。
现在由于我之前建立的项目没有清干净又出现了新的问题,但是我本日预备先睡觉了。
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。 |