adt

Starting emulator for AVD avd PANIC: Could not open: avd - Ubuntu 13.10

时光毁灭记忆、已成空白 提交于 2020-01-11 08:41:08
问题 I had been using the android sdk for quite some time in my Ubuntu. Recently, I upgraded it to Ubuntu 13.10. From then on, whenever I try to launch an android virtual device, I get this error : Starting emulator for AVD 'Ace2' PANIC: Could not open: Ace2 I tried changing the permissions for the files and folders but still no improvement. Any suggestion? 回答1: It might be that the AVD was created for a different user, as this blog post suggests. Check your /home/ your-user-name /.android/avd

How to change built-in C/C++ paths pointing to a deleted android-ndk-r9 installation?

余生长醉 提交于 2020-01-11 06:15:32
问题 I recently upgraded my NDK from android-ndk-r9 to android-ndk-r10 (r10d to be exact). Eclipse is 4.4 Luna (Luna Service Release 1 (4.4.1); Build id: 20140925-1800). Eclipse is fully patched for its release. I updated all the Eclipse plugins (including ADT) so they are fully patched. And I also changed my ANDROID_NDK_ROOT in .bash_profile to point to the new NDK directory. Under the Eclipse Preferences → Android → NDK, Eclipse is showing the new android-ndk-r10 path (I had to set it manually).

“Failed to initialize Monitor Thread: Unable to establish loopback connection” after running Eclipse

て烟熏妆下的殇ゞ 提交于 2020-01-11 03:34:25
问题 I have a problem, when I want to start developing applications for android, I did everything like in manual here but after installing ADT Plugin in Eclipse I am still getting this error : [2011-12-29 14:34:56 - ddms] Failed to initialize Monitor Thread: Unable to establish loopback connection then, if I try to run an application this appear : [2011-12-29 14:41:42 - TestApp] ------------------------------ [2011-12-29 14:41:42 - TestApp] Android Launch! [2011-12-29 14:41:42 - TestApp]

Why shouldn't I set layout_width and layout_height in a style?

醉酒当歌 提交于 2020-01-10 17:26:07
问题 If I have a lot of TextViews serving as item labels, I thought I could extract everything that's common about them into a style, and in the layout use only <TextView style="@style/label" android:text="Foo"/> <TextView style="@style/label" android:text="Bar"/> with style like: <style name="label"> <item name="android:layout_width">wrap_content</item> <item name="android:layout_height">wrap_content</item> </style> But when I do this, it works fine on emulator and device, but the Android XML

Variable package name with Maven Android Plugin

℡╲_俬逩灬. 提交于 2020-01-10 02:36:28
问题 I'm using the Maven Android Plugin to build my application. Actually, I'm building 3 "branded" versions of the same app (the app icon, colors, etc... change, but not the features). I'm aware that I need to use a different package name for each application, for them to be considered as different. So far I have managed to have "dynamic" values, using Maven filters in strings.xml : <string name="app_name">${app_name}</string> <string name="widget_name">${widget_name}</string> <string name="app

Variable package name with Maven Android Plugin

梦想的初衷 提交于 2020-01-10 02:36:23
问题 I'm using the Maven Android Plugin to build my application. Actually, I'm building 3 "branded" versions of the same app (the app icon, colors, etc... change, but not the features). I'm aware that I need to use a different package name for each application, for them to be considered as different. So far I have managed to have "dynamic" values, using Maven filters in strings.xml : <string name="app_name">${app_name}</string> <string name="widget_name">${widget_name}</string> <string name="app

'Intent cannot be resolved to a type' error in eclipse

偶尔善良 提交于 2020-01-09 11:13:14
问题 I am programming the first android tutorial in eclipse, and when compiling this code: Intent intent = getIntent(); it gives the error Intent cannot be resolved to a type How do I fix it? 回答1: Probably, the import statement is missing. Try pressing Ctrl + Shift + O , Eclipse will automatically add the import statement if missing. Then look at the top of the file and see what has been added. It should be something like this: import android.content.Intent; 来源: https://stackoverflow.com/questions

'Intent cannot be resolved to a type' error in eclipse

回眸只為那壹抹淺笑 提交于 2020-01-09 11:11:11
问题 I am programming the first android tutorial in eclipse, and when compiling this code: Intent intent = getIntent(); it gives the error Intent cannot be resolved to a type How do I fix it? 回答1: Probably, the import statement is missing. Try pressing Ctrl + Shift + O , Eclipse will automatically add the import statement if missing. Then look at the top of the file and see what has been added. It should be something like this: import android.content.Intent; 来源: https://stackoverflow.com/questions

Location of the Android SDK has not been set up in the preferences in 64 bit Windows

家住魔仙堡 提交于 2020-01-09 07:23:08
问题 "Location of the Android SDK has not been set up in the preferences in 64 bit Windows" - I know this problem has been addressed before several times, but rather than comment on an old question I decided to make a new one because still it's not solved. Recently I changed my system from 32 to 64 and currently I cant Run my ADT. When am using 32 its works fine. I installed 64 bit ADT (Build: v21.1.0-569685) and updated everything. Now My ADT contains 6.41 GB. Now when am trying to run Eclipse I

More eclipse insanity. Changing layout file turns TextViews into LinearLayouts

点点圈 提交于 2020-01-07 04:22:09
问题 Just made a change to my layout.xml Everything compiles and then I got a weird error back saying can't cast a TextView to ImageView. Another change and I got a weird error saying cannot cast THE SAME TextView to a LinearLayout??? It turns out although everything may compile fine, sometimes if you don't do a clean project your TextView widget might just be pointing to a RelativeLayout!!! Does anyone know why? 回答1: So here's why: You might have seen the file R.java in the gen folder. Open that