adt

Installing Eclipse and setting up Android ADT on OS X v10.6 Snow Leopard

自作多情 提交于 2019-12-06 06:15:05
I am trying to install Eclipse Galileo on my MacBook running OS X v10.6 (Snow Leopard) and set it up with ADT plugin. I downloaded 64-bit cocoa version of "Eclipse Galileo for Java EE developers" and ADT v0.9.6 from the respective offical sites. When I try to add this new plugin-archive in Eclipse, I get the following error: Cannot complete the install because one or more required items could not be found ....missing requirement: ADT requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found. AFAIK, one gets this error when a required Eclipse-plugin is missing. I checked the official

Android ADT Eclipse plugin, parseSDKContent failed

﹥>﹥吖頭↗ 提交于 2019-12-06 04:01:27
问题 I've just set up my first Android development environment consisting of Eclipse 3.5 Mac OSX 10.5 Android SDK for x86 macs ADT Eclipse plugin 0.9.6 I've set set $PATH to my SDK/tools directory (which shouldn't matter if I only use Eclipse right?) and started Eclipse, but when I try to set the path to the SDK in Eclipse, i get the error "parseSdkContent failed". The stack trace of from the thrown exception is java.lang.IllegalArgumentException: http://www.w3.org/2001/XMLSchema at javax.xml

Android App ID prefix problem

谁都会走 提交于 2019-12-06 02:44:14
I am building an Adobe Air for Android App and I have a big problem, i published an app to the android market using an old flash air extension that saved the app id with a prefix 'app.' Now that i have upgraded the extension it now saves the app id with a prefix 'air.' What this means is that I can no longer publish updates to my applications; so what can I do? The problem with using the outdated extension is that after publishing the update the user is not able to open the app until the cache files are cleared. Jeff Ward There is a simple environment variable you can set to disable the air.

Android apk Debug mode works fine but release mode gives too many warnings

允我心安 提交于 2019-12-06 02:35:07
问题 I'm trying to get a signed APK from eclipse. I have a debuggable apk version that works fine. Now for release when I tried to compile and sign with Eclipse ADT, I get many warnings, most of which is can't find superclass or interface some.package.Class . So, I referred to this, this and many others unfortunately I couldn't reach anywhere! I also get Note: there were 314 duplicate class definitions. warning My progaurd-project.txt was untouched earlier. So, I added -libraryjars /libs/lib-name

Can't use some of L SDK features

梦想与她 提交于 2019-12-06 01:54:02
问题 I'm trying to use the new Activity transitions in the new SDK. I tried this line: getWindow().requestFeature(Window.FEATURE_CONTENT_TRANSITIONS); But the problem is that Window doesn't include FEATURE_CONTENT_TRANSITIONS . I also tried this line: getWindow().setExitTransition(new Explode()); And Explode class doesn't exist... I already set my project to be compiled with L SDK (android-L) and use the new SDK tools (20.0.0) build.gradle: apply plugin: 'com.android.application' android {

Using Spongycastle with Proguard

非 Y 不嫁゛ 提交于 2019-12-06 01:18:16
I've been strugling with proguard to make Spongycastle work. Most of the time, the problem comes when I'm exporting a signed APK, either I've got error, or the app will just crash before starting. So, I've managed to gather informations to get a working proguard configuration : -optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontskipnonpubliclibraryclassmembers -dontpreverify -verbose -repackageclasses '' -allowaccessmodification -keepattributes *Annotation* -optimizations !code/simplification/arithmetic -libraryjars C:\Program Files\Java\jre7\lib\rt.jar

ClassNotFoundException when including a library jar

陌路散爱 提交于 2019-12-06 00:57:18
问题 In my android project I added a library jar into the libs folder. This jar contains three different packages: google GSON (com.google.gson) jboss netty (org.jboss.netty) A client application I developed myself which uses these two other libs. (com.example.core) The jar is compiled/archived using ant. There are no errors in eclipse, but when I try to run my android app on a device I get this: E/AndroidRuntime(23807): FATAL EXCEPTION: main E/AndroidRuntime(23807): java.lang.RuntimeException:

java.lang.IllegalArgumentException: Not a valid class name: ANDROID NDK javah

余生颓废 提交于 2019-12-05 23:21:22
问题 Im learning to code Android in NDK on WINDOWS Eclipse.... been following a Tutorial Book by Sylvain Ratabouil. So im in Run | External Tools | External Tools Configurations… creating a new program configuration. Name: MyProject javah Location : ${env_var:JAVA_HOME}\bin\javah.exe Working directory: ${workspace_loc:/MyProject/bin} The problem comes In arguments... when i try Arguments: –d ${workspace_loc:/MyProject/jni} com.myproject.MyActivity as it says in the book i get when i click run

Android extract string resource from layout xml file

人走茶凉 提交于 2019-12-05 20:01:51
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 I just found how to activate this feature. Simply press "crtl+1" and the menu will pop out. I was searching for

"Android Library Update” eclipse task randomly stuck my eclipse on start

孤街醉人 提交于 2019-12-05 19:41:25
问题 It is stuck in cleaning output folder for “Project”. It is not always the same Project. So is there some workaround ? 回答1: I tried the method of cleaning the project, but the library update happens too fast. I even assigned a custom keyboard shortcut to Clean and I still couldn't get it in there before it started. I really didn't want to delete the .metadata folder because it is a pain in the arse to lose your workspace settings/preferences/setup. So I tried: Make a copy of the .metadata