我从哪里导入以前版本的 Android Studio 的设置? [英] From where do I import settings from previous version of Android Studio?

查看:49
本文介绍了我从哪里导入以前版本的 Android Studio 的设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行的是 Droidio (Android Studio) 0.6.1;从那里我无法更新到最新版本(飞跃到 0.8);我必须单独下载并从 Windows 资源管理器安装.但是现在安装过程正在寻找旧的设置:

I was running Droidio (Android Studio) 0.6.1; from there I was not able to update to the newest version (a quantum leap to 0.8); I had to download it separately and install from Windows Explorer. But now the installation process is looking for old settings:

它似乎想要带我去的地方就在这里(我认为是 Android 文件夹);这是我在混搭压缩省略号"(一个点)按钮时看到的:

Where it seems to want to take me is here (to the Android folder, I reckon); this is what I see when I mash the "compressed ellipsis" (one dot) button:

...但我不确定那是不是正确的位置;是【不是】吗?我应该寻找的设置文件的确切名称是什么?

...but I'm not sure that is really the right spot; Is it [not]? What is the precise name of the settings file I should be seeking?

我遵循了 Gabriele 的指示,然后我得到了这个:

I followed Gabriele's directive, and then I got this:

我选择了使用 Android Studio 的 SDK"

I chose "Use Android Studio's SDK"

然后我在尝试重建我的项目时得到这个,错误:任务':app:preBuild'的执行失败.未能找到目标android-19:C:\用户\粘土\AppData\Local\Android\android-studio1\sdk"

And then I got this when trying to rebuild my project, "Error:Execution failed for task ':app:preBuild'. failed to find target android-19 : C:\Users\clay\AppData\Local\Android\android-studio1\sdk"

然后我打开了 SDK 管理器并安装了缺失/过时的内容,然后尝试重新构建.

I then opened the SDK Manager and installed what was missing/out of date, and tried to build again.

我收到错误消息,无法刷新 Gradle 项目‘鸭嘴兽’错误:原因:未能找到目标 android-19:C:\users\clay\AppData\Local\Android\android-studio1\sdk安装缺少的平台并同步项目

消息的安装缺少的平台和同步项目"部分是一个链接.我点击了它,接受了许可协议.

The "Install missing platform and sync project" part of the message is a link. I clicked it, accepted the License Agreement.

完成后,构建再次失败并显示类似消息:...无法找到构建工具修订版 19.1.0 安装构建工具 19.1.0 并同步项目"

Once that finished, the build failed again with a similar message: "...failed to find Build Tools revision 19.1.0 Install Build Tools 19.1.0 and sync project"

同样,安装..."爵士乐是一个链接;我点击了它,接受并安装了...

Again, the "install..." jazz was a link; I clicked it, accepted, and installed...

下一个问题是,错误:项目使用了不受支持的 Android Gradle 插件版本 (0.11.2) 修复插件版本并重新导入项目"

在《Never Cry Wolf》中默许了智者的劝告,我努力坚持点击修复插件版本并重新导入项目"

Acquiescing to the counsel of the wise old man in "Never Cry Wolf," I endeavored to persevere by clicking "Fix plug-in version and re-import project"

此时我终于成功构建了.

At which point I finally got a successful build.

然后我运行了该项目,它似乎正在运行(它是这样说的,并且可以看到红色方块),但没有出现模拟器.

I then ran the project, and it seemed to be running (it said so, and the red square was visible), but no emulator ever appeared.

我打开了 AVD 管理器,设备有一个警告图标(可修复).我点击了修复"按钮;它似乎有效 - 警告图标消失了.

I opened the AVD Manager, and the device had a warning icon (repairable). I clicked the "Repair" button; it seemed to work - the warning icon disappeared.

但后来我得到了这个:

当我运行 > 调试应用程序时它仍然不会显示模拟器...

It still won't display an emulator when I Run > Debug App...

过去(使用 Droidio 0.5* 到 0.61)我第一次运行时会看到:

It used to be (with Droidio 0.5* to 0.61) that the first time I ran, I would see this:

...模拟器最终会出现;应用程序的后续运行,设备将列在顶部(在选择正在运行的设备"下) - 但不会更多 - 它只在底部,如上面的尖叫声所示,即使在应用程序的后续运行中...

...and the Emulator would eventually come up; subsequent runs of the app, the Device would be listed at the top (under "Choose a Running Device") - no more, though - it is only at the bottom as shown in the scream shot above, even on subsequent runs of the app...

我认为我应该尝试重新创建 AVD 的奇怪的、格式错误的 config.ini",但不知道要采取哪些步骤来实现这一点.

I reckon I should try "re-creating the AVD's weird, malformed config.ini" but don't savvy just what steps to take to accomplish that.

推荐答案

我使用了一种方法来欺骗 Android Studio 从以前的设置中导入设置而不导出设置并且它起作用了.

I used a method to trick the Android Studio to import settings from previous one without exporting the settings and it worked.

只需转到之前的 .AndroidStudio\config 文件夹,将它们全部复制并粘贴到新文件夹中(在我的场景中,我从 1.1 更新到 1.2 beta).AndroidStudioPreview1.2

Just go to your previous .AndroidStudio\config folder, copy and paste them all to the new one (in my scenario I updated from 1.1 to 1.2 beta) .AndroidStudioPreview1.2

(为了防止出现任何故障,请将您的原始配置制作一个 Rar 文件,另外,在它工作后,将其导出,以便您可以在需要时导入它)

(For preventing any failure, please make a Rar file of your original config, also, after it works, export it so you can import it if you need it)

这篇关于我从哪里导入以前版本的 Android Studio 的设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆