FAQ Database Discussion Community


Not able to update ADT

android,eclipse,installation,adt
I get this error while installing the previous version. An error occurred while uninstalling session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]org.eclipse.rcp.configuration_root.win32.win32.x86 1.0.0.I20120608-1200 --> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction). Backup of file D:\ADT\android\adt-bundle-windows-x86-20130219\eclipse\eclipse.exe failed. Can not remove :...

Can't find tools inside SDK

android,adt
I use windows-7 32bit . But why I download ADT for 32bit & try to open it , it show me this type of dialogue . I can't understand the problem

Error using Android Design Support Library: attr backgroundTint not found

android,eclipse,adt
Trying to use the new Design Support Library in my project, AAPT throws the following error: Description: Error: No resource found that matches the given name: attr 'backgroundTint'. Resource: /design/res/values/styles.xml Location: line 21 This is the affected entry in styles.xml: <style name="Widget.Design.FloatingActionButton" parent="android:Widget"> <item name="android:background">@drawable/fab_background</item> <item name="backgroundTint">?attr/colorAccent</item> <item...

Some breakpoints not hit Eclipse ADT

eclipse,adt,breakpoints
I have 4 breakpoints but only 2 are getting hit. What I notice is that the breakpoints getting get hit show a small check mark in the breakpoints view. What does this check mark mean and how can I activate my other breakpoints? ...

After import from Eclipse to Android Studio cannot run Execution failed for task ':app:dexDebug"

android-studio,migration,adt
Have an Android project working in Eclipse (4.4.2) ADT, running on Linux (Ubuntu 14.10). I have imported to Android Studio (1.1.0) and managed to get rid of my initial compilation errors. The next thing I want to d is to run on my phone - I push the green "Run"...

ActionBar is null after migration to Gradle

android,gradle,android-actionbar,adt
This is a really weird error as far as I can understand. I just migrated a project from ADT to Gradle. And the same exact code is now crashing on startup. It seems the problem is that the ActionBar that previously was perfectly valid now is null. The code is...

How to enable sample based profiling of Android on Eclipse?

android,eclipse,adt
I have Eclipse Juno with ADT plugin installed. When I try to profile my Android game in DDMS perspective, I see that there is no option to do sample based profiling. My profiling results are skewed toward methods that have more number of calls and hence aren't giving me true...

PNG transparent backgrounds appearing black when using Android Studio

android,android-studio,png,adt,android-drawable
The social icons below (for fb, twitter, mail and share) are circular PNGs with transparent backgrounds. When I use the code and exact same images in Eclipse, I get transparent background but when build and run with Android Studio, I get black backgrounds. See details below. Images are the same....

Failed to configure parser

android,eclipse,adt
I tried to solve this issue with help of other threads but I am getting this error again and again. Code for focus_border_style_2: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" android:thickness="0dp" > <stroke android:width="1dp" android:color="@color/ApplicationBackground" /> <corners android:radius="1dp" /> <padding android:bottom="1dp" android:left="1dp" android:right="1dp" android:top="1dp" /> <solid...

Android appcompat v7 - imported with an error

android,eclipse,import,adt,eclipse-adt
I just created a new Android project in Eclipse. After that I managed to import the android-support-v7-appcompat lib. Unfortunately an errors are given: ../res/values-v21/styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'. [2015-02-08 16:23:01 - android-support-v7-appcompat] ../res/values-v21/styles_base.xml:79: error: Error retrieving parent for item:...

Cannot be resolved or is not a field for SUPPORTED_ABIS,FLAVOR & VERSION_CODES.LOLLIPOP

android,eclipse,adt,android-5.0-lollipop
I get the error Cannot be resolved or is not a field for following codings Build.SUPPORTED_ABIS Build.FLAVOR Build.VERSION_CODES.LOLLIPOP I have upgraded the latest SDK upto Lolipop I have tried restarting the Eclipse I have tried Cleaning and Building the project. I have even tried restarting the system. But nothing works....

Trouble with installing new ADT Plugin for Eclipse

android,eclipse,adt,eclipse-adt
I'm trying to update my ADT to new version 23 so I found guides like this to perform the update: Got to "Help > Install New Software" List item Click on "What is already installed?" Remove any existing components that you wish to replace/update. Once done, either install the new...

Missing drawables at runtime

android,eclipse,android-studio,adt
Problem: My App is missing resources at runtime. One activity just get killed at startup. (error: color 0x2 could not get converted) The other activity shows a screen with standard graphics instead of the included ones. What I did before: I'm still using Eclipse ADT and wanted to give Android...

popStack pops out data that I didn't push (stack adt)

c,data-structures,stack,adt
This is a code to push 0 and 1 and pop 1 and 0 again. However, it pops 2 and 2. I can't seem to figure out why. #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include "stackADT.h" int main (void) { STACK* stack; int data; stack = createStack (); int i;...

Convert JSON to Android Bundle

java,android,json,bundle,adt
I want to convert a JSON string to android Bundle. The requirement was like to pass parameters to an activity directly from server as JSON rather than bundle. How to convert a JSON string to Android Bundle? Please provide abstract code if possible.

Unfortunately, (My app) has stopped. Eclipse Android [duplicate]

java,android,eclipse,adt
This question already has an answer here: What is a Null Pointer Exception, and how do I fix it? 12 answers I'm a beginner in android developing and I'm trying to build a simple app but I'm getting this error in the emulator.(Unfortunately,(App) has unexpectedly stopped). LogCat http://i.stack.imgur.com/VZhuL.png package...

Android Development Tools download no longer exist

android,eclipse,adt
I have been using standalone ADT with the green app. icon for a long time. I started with a new company now and it's not the time now to start learning on the Android Studio. maybe I do that on a later stage. The http://developer.android.com/sdk/index.html page used to have the...

Aptana error: parsing data for android-22 failed

java,android,eclipse,adt,aptana3
After bringing the versions of JRE/JDK/ADT to the same (at least compatible) level, I still encounter the above mentioned error in Aptana Studio 3. Java and JDK are 1.7. During startup Aptana tries to rebuild and stops with this error message. Update: After "Android SDK: Resolving Error Markers" Aptana status...

Android SDK requires ADT version 23 or above

android,eclipse,cordova,adt
I was working on a project in Eclipse and unfortunately I removed some of my files and wasn't able to retrieve them back so I ended up creating a new project and importing my files back in. When this happened, I now receive an error: When I try and update,...

What does this indicator on the ADT mean?

android,adt
When developing an Android project with the ADT then there is this indicator at the bottom of the IDE : What does it represent ? And what to do if it reaches higher value ?...

Is it insecure to use hardcoded strings for xml elements?

android,textview,adt,hardcoded
When I use this hardcoded strings for my TextView elements, ADT warns me: Hardcoded string "Text", should use @string resource So is it insecure or something that ADT warns me not to use this way?...

I need an advice for optimal implementation of a program with priority queue and search

c,pointers,queue,adt
I have to make a program to read the list of patient of an hospital from a file, every patient have a priority. So i decide to make the priority queue in a binary heap because insert and deletion are O log(n), and obtain the patient to be treated is...

The constructor Object(Context, int, List) is undefined

java,android,adt
Please help me resolve this issue. I'm making a drawer for my app and I'm receiving these errors from ADT: The constructor Object(Context, int, List) is undefined The method getView(int, View, ViewGroup) of type CustomDrawerAdapter must override or implement a supertype method This is my code for CustomDrawerAdapter class: package...

Error parsing XML: junk after document element - Building an Icon Pack

android,xml,eclipse,adt,eclipse-adt
I´m currently creating an free Material Design Icon Pack following [this][1] tutorial (I don´t have much experience in coding) in Eclipse. After I added some of my Icons to the applifter.xml and declared them in the iconpack.xml I get this Error when I´m trying to build it: [2015-02-26 16:10:35 -...

Converting GADT to phantom types

ocaml,adt,gadt
I was playing around with GADT and phantom types in OCaml. I understood that GADT is a convenience for describing certain kinds of phantom types—correct me if I'm wrong. So I decided to try out to convert a program using GADT type into an one with ADT and phantom types....