adt

Duplicate resources when using ProGuard and an Android application

烂漫一生 提交于 2019-12-08 02:32:08
问题 I'm trying to use ProGuard with one of my applications, let's say A. This application includes another application as a library (let's say B). This is my proguard file. -optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontpreverify -verbose -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app

Android Application Installed but won't open on device

£可爱£侵袭症+ 提交于 2019-12-08 01:38:24
问题 I created an application on Android. I am developing it on eclipse with ADT. It is about nfc. For the moment it only reads and writes tag. I run my application on my mobile device for testing and it works well. So it compiles well and runs well on my Xperia Z1 Sony, however when i unplug my phone and install the apk on it i have a problem : The install runs well but then i have two choices "Terminated" or "Open". The open is not clickable... I go to settings->Application->installed and i see

Exclude files in jar from going into the apk

纵然是瞬间 提交于 2019-12-08 00:39:02
问题 I recently added some new jar's to my android project. Some of the jars contain version.properties. One of them even contains a README.TXT. How can I tell eclipse/adt/ant to exclude files from getting into the apk? Obviously I can unzip the apk, remove the files, zip, sign & zipline... but I was hoping to solve it at source. 回答1: If you are creating the jar files from your own project, you right click the project -> Select Export -> Under Java select JAR file -> Then you can choose which

ADT: fail to build when there are too many packages and classes

纵饮孤独 提交于 2019-12-07 21:54:51
问题 I have a big project with many library projects as well as many packages and classes in source code. Using ADT (r20) in Eclipse (v4.2) to build, I get this error: [2012-07-08 09:05:33 - AndroidUIPatterns] Dx trouble writing output: Too many fields: 69379; max is 65536. By package: 19 android.app 14 android.content.pm 5 android.content.res 2 android.gesture 39 android.graphics 8 android.graphics.drawable 13 android.os 3 android.provider ... ... [2012-07-08 09:05:33 - AndroidUIPatterns]

Error within Debug UI: java.lang.reflect.InvocationTargetException after updating Android SDK Tool and ADT

感情迁移 提交于 2019-12-07 20:08:19
问题 Just now I updated Android SDK Tools to 22.6 and then updated ADT to 22.6. But after that I'm not able to run my android projects in eclipse. I'm getting an error dialog showing this message, Error within Debug UI: java.lang.reflect.InvocationTargetException Should I update DDMS also? here is the error window, 回答1: Problem solved successfully by updating DDMS. Hope this will be helpful to someone, facing the same problem 来源: https://stackoverflow.com/questions/22345836/error-within-debug-ui

Android extract string resource from layout xml file

不打扰是莪最后的温柔 提交于 2019-12-07 12:12:12
问题 I try to extract hardcoded strings from xml file but always got an error. Select hardcoded text, ctrl+1 , extract android string and this error pops instead of Android Extract String pop-up. "The attribute android:text does not accept a string reference"... Why do i get this error any tips? I work with eclipse 3.7.1 and adt v16, operating system windows 7. This is the error Added video that shows the feature http://www.youtube.com/watch?feature=player_embedded&v=Oq05KqjXTvs#t=1881s 回答1: I

Jar from library project not resolved in Android app

孤者浪人 提交于 2019-12-07 11:45:12
问题 I'm building an Android app which uses a library that is defined in another Eclipse project (same workspace). All is working fine, but now I added a jar file to the library project's build path. In Eclipse I exported the jar file to make it visible to dependent projects of the library (Build Path -> Order and Export -> mark the jar file). Still Eclipse (ADT) complains that the import cannot be resolved. I have set up a test project for the library as well, and there the imports are visible

Eclipse missing C/C++ build and general from project properties

半腔热情 提交于 2019-12-07 06:43:17
问题 I have eclipse running and am trying to get opencv4android on it (http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html) Instructions say to go to project -> properties and their will be a C/C++ build to change the location of ndk-build. However, I do not see C/C++ build or general. When I start eclipse and go to about: Android Developer Tools Build: v22.0.1-685705 This product includes Eclipse Platform, JDT, CDT, EMF, GEF and WTP, all of which are Copyright (c

When to use Constraint Layout & How to use it efficiently? [closed]

血红的双手。 提交于 2019-12-07 01:31:12
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . Google recently comes with another layout called ConstraintLayout However, I have few questions which is still very confusing. I reviewed the talk related with this portion from google IO'16 and got an understanding that it would be really helpful as developer to create flat

Long loading operation on opening an xml layout on latest ADT

久未见 提交于 2019-12-07 01:24:56
问题 In latest ADT bundle when I try to open an xml layout editor, it opens and then this message appears: The rendering target (Android 4.4.2) is still loading. The layout will refresh automatically once the process is finished. Also most of the operations in eclipse are taking long time,like renaming a resource and I don't think that is somehow related to my PC configuration. I'm using latest JDK , what should i do? or it's a bug in android developing tools? 回答1: Make sure your Android SDK and