从我在哪里导入从Android电子工作室previous版本设置? [英] From where do I import settings from previous version of Android Studio?

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

问题描述

我跑Droidio(And​​roid的一室公寓)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的文件夹,我想);这是我看到的时候我捣烂COM pressed省略号(一个点)按钮:

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:

...但我不知道那是真正正确的位置;难道[不]?什么是设置的precise名文件,我应该寻找?

...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?

我也跟着加布里埃尔的指令,然后我得到这样的:

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

我选择了采用Android Studio的SDK

I chose "Use Android Studio's SDK"

然后我试图重建我的项目时,得到了这个,错误:执行失败的任务:应用程序:preBuild未能找到目标的android-19:C:\ Users \用户粘土\应用程序数据\本地\机器人\ 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.

我得到了错误,无法刷新摇篮工程鸭嘴兽错误:原因:未能找到目标的android-19:C:\用户\粘土\应用程序数据\本地\机器人\ 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摇篮不受支持的版本插件(0.11.2)修复插件版本并重新导入项目

默许的智慧老人在律师的从不狼来了的,我努力通过点击修复插件版本并重新导入工程坚持下去

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工作室导入从previous一个设定项而不导出设置和它的工作。

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

就到你的previous .AndroidStudio \ CONFIG 文件夹,复制并粘贴全部到新的(在我的情况,我从1.1升级到1.2测试版) .AndroidStudio preview1.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

(对于preventing任何故障,请让你的原始配置的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电子工作室previous版本设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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