adt

拥抱 Android Studio 之一:从 ADT 到 Android Studio

…衆ロ難τιáo~ 提交于 2019-12-09 19:11:14
拥抱变化,拥抱新事物 多年前央视有一套电视系列片: 大国崛起 ,主要讲述那些曾经在站在世界舞台中央的国家的兴衰历程。纵观历史,正是创新使得一个国家得以崛起。 Android 开发因为涉及到代码编辑、UI 布局、打包等工序,最好使用一款 IDE。Google 最早提供了基于 Eclipse 的 ADT 作为开发工具,后于2013年 Google I/O 大会发布基于 IntelliJ IDEA 开发 Android Studio 。后者正式版发布之后,Google 宣布不再持续支持 ADT。Android Studio 有更快的速度,更好的代码完成等特性。 时至今日(2015-11-30),在我们运营 bugtags.com 这一款高效的 app 测试服务的时候,在帮助用户集成 Android SDK 的过程中,我们发现很多遗留项目依旧没有从 ADT 迁移过来,依然有很多用户对 Android Studio 怀着恐惧与不信任。我想我们有义务去做一个系列介绍,让更多的人拥抱变化,拥抱新鲜事物。 本文系列一,主要介绍两个工具的比较及其迁移。 Android Studio(IntelliJ IDEA)vs. ADT(Eclipse) 本文并不打算涉及 IDE 的圣战,理论上只要配上插件,用得趁手,都差不多。然而本文也是带有倾向性的,因为工作原因,笔者使用过 Eclipse 多年

ADT (Eclipse) vs. Android Studio: How much APK file size difference is normal?

柔情痞子 提交于 2019-12-09 10:14:12
问题 I imported a ADT project to the latest version of Android Studio (0.6.1). Both projects share the same code and libraries. Also both projects were cleared and compiled with the same ProGuard settings enabled. But the size of the ADT APK file is 1.8 MB and the Android Studio APK file is 2.7 MB. Is this increase of 50% in APK file size considered as normal due to the fact that Android Studio is still in Early Access Preview or should I be able to get nearly the same APK file size? (Update: I

Remove a string in all the languages Android

纵饮孤独 提交于 2019-12-09 08:33:43
问题 I have an app with several translations, and I want to delete some strings. How can I refactor and delete them only once for example in the default strings.xml file and automatically propagate the deletion to the other strings.xml file of other translations? Thanks 回答1: default strings.xml file and automatically propagate the deletion to the other strings.xml file of other translations ADT does not support this operation. You need to get rid of the text from all your XML files yourself, which

How to have both Debug and Release apk on same device?

回眸只為那壹抹淺笑 提交于 2019-12-09 07:46:32
问题 While continuing to develop my application and test it on a real phone, I need to have the release version of it on the same phone, for demonstration purposes (the release version is much more responsive, thanks to no-logs). The problem is that the only way to make two applications co-exist on the same device in Android is by having different package names. But package names require re-factoring and lots of propagating manual fixes... not to mention that this confuses version control...

Eclipse and Android error 'parseSdkContent failed'

丶灬走出姿态 提交于 2019-12-09 04:46:35
问题 Having this issue since I upgraded the Android Tools to 21.1. When I start eclipse, even in a clean workspace, I get the error parseSdkContent failed and the details say: com.android.sdklib.devices.DeviceManager.createInstance (Ljava/lang/String;Lcom/android/utils/ILogger;) Lcom/android/sdklib/devices/DeviceManager; I have searched the internet and tried almost every solution but to no avail. When I go to Android preferences and try to set the path to the SDK , it says no target available. Is

How to create n project with ADT r20 without including the android support library?

房东的猫 提交于 2019-12-09 04:41:22
问题 I have recently update my ADT to rev. 20, but now I find that newly created project always included the android support library. I don't want to use the FragmentActivity class, which is defined in the support library, I just want to use the pure Fragment class. I tried to delete the support library via the SDK manager tool, but now I cannot create any projects since the ADT is reporting This template depends on the Android Support library, which is either not installed, ...... Is there any

Android Eclipse issue Failed to create BuildConfig class

好久不见. 提交于 2019-12-08 16:13:53
问题 I am getting "Failed to create BuildConfig class" error while cleaning android project in eclipse. I have recently installed Eclipse Juno for Mobile developers and while I was trying to import my existing android applications, Eclipse started giving me this kind of error. Eclipse is working fine If I create new android projects. What could be the possible cause and probable solution for this issue? I am using OS - Windows Server 2008 回答1: I had the error after updating (installing) Juno and

Eclipse problem when install new software

亡梦爱人 提交于 2019-12-08 15:59:01
问题 I'm using Eclipse 3.6 (Helios) for mac os X. I downloaded from the Eclipse download page, unzip and put it in Applications folder. Then, i start the Eclipse and choose the workspace (the default, Documents/Workspace). After this, i tried to install new software by going to Help->Install New Software. The problem is that a error occur with the following message: "Cannot complete the request. This installation has not been configured properly for software update. See the error log for details."

How do I stop eclipse from auto creating filters for android logcat?

拈花ヽ惹草 提交于 2019-12-08 15:19:06
问题 After an update my eclipse started to create filters automatically for LogCat. I don't really mind if it creats those useless filters, but it always auto-select the one I least want to look at. Is there a way to disable this auto-filter feature? 回答1: Try disabling: Window -> Preferences -> Android -> Logcat -> Display logcat view when there are messages from an app in workspace (as it was described in this issue in Android bug tracker: http://code.google.com/p/android/issues/detail?id=20965)

Android ADT Installation Error

南笙酒味 提交于 2019-12-08 13:16:46
问题 I'm using Ubuntu 11.10 and installed Eclipse from the Ubuntu Software Center . Here's the information of the Eclipse I've downloaded. I have Java SDK 6 and 7, but Eclipse is configured to use the Java SDK 6. Version: 3.7.0 Build id: I20110613-1736 I was about to install the ADT plug-in on Eclipse when after hitting the first Next button in the installation these error telling me I can't install the ADT unless: Cannot complete the install because one or more required items could not be found.