简体   繁体   English

如何使用带有Java 32位的Android Studio?

[英]How to use Android Studio with Java 32 bit?

Today I want to try migrating some of my Eclipse projects to Android Studio but I have some problems. 今天我想尝试将我的一些Eclipse项目迁移到Android Studio,但是我遇到了一些问题。

When I open the Android Studio, it says that I need to install 64 bit JDK. 当我打开Android Studio时,它说我需要安装64位JDK。 So I searched for this problem and found out you need to open studio.exe instead of the default studio64.exe 所以我搜索了这个问题,发现你需要打开studio.exe而不是默认的studio64.exe

When I open the studio.exe it says that I'm running 64 bit Windows, so I need to use the studio64.exe 当我打开studio.exe时,它说我正在运行64位Windows,所以我需要使用studio64.exe

The problem is I need the 32 bit Java not only for Android development, and all my Eclipse are in 32 bit, so changing from 32 bit to 64 bit Java is hard for me. 问题是我需要32位Java不仅用于Android开发,而且我的所有Eclipse都是32位,因此从32位到64位Java变得很难。 This may make some of my softwares not working and some other problems that might arise, and you need to change the JAVA_HOME to the 64 bit java. 这可能会使我的某些软件无法正常工作以及可能出现的其他一些问题,您需要将JAVA_HOME更改为64位java。 To avoid those things I would like to just use 32 bit Java instead of 64 bit. 为了避免这些事情,我想使用32位Java而不是64位。

I searched for this problem but I can't find any solution yet, any idea how to solve this? 我搜索了这个问题,但我找不到任何解决方案,任何想法如何解决这个问题? If there's no solution, I think I'll just keep using Eclipse.. 如果没有解决方案,我想我会继续使用Eclipse ..

I'm using Windows 7 64 bit, Android Studio 135.1641136 我使用的是Windows 7 64位,Android Studio 135.1641136

I think that the impossibility of running studio.exe without a 64-bit Java installed were an issue in that version. 我认为在没有安装64位Java的情况下运行studio.exe的不可能性是该版本中的一个问题。 I had the same problem but I've just installed currently latest Android Studio (135.1740770) and ran studio.exe without any issues. 我有同样的问题,但我刚安装了当前最新的Android Studio(135.1740770)并运行了studio.exe,没有任何问题。

Additionally, if you're behind a proxy (like me) you may need to update the proxy parameters at C:\\Users\\username\\.AndroidStudio\\config\\options\\other.xml. 此外,如果您在代理(如我)后面,您可能需要更新C:\\ Users \\ username \\ .AndroidStudio \\ config \\ options \\ other.xml中的代理参数。

Eclipse states it does not consult JAVA_HOME variable just PATH and eclipse.ini file. Eclipse声明它不会仅仅通过PATH和eclipse.ini文件来参考JAVA_HOME变量。 https://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#Find_the_JVM https://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#Find_the_JVM

In previous versions of Android Studio there has been on option to set JDK_HOME or ANDROID_STUDIO_JDK instead of JAVA_HOME but it seems it was removed. 在Android Studio的早期版本中,已经选择设置JDK_HOME或ANDROID_STUDIO_JDK而不是JAVA_HOME,但它似乎已被删除。 Android Studio installation on Windows 7 fails, no JDK found Windows 7上的Android Studio安装失败,未找到JDK

我遇到了同样的问题...我想我会咬紧牙关并在我的32位版本上安装/配置64位Java:X

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM