[android-developers] Problem running android unit tests from the command line
I'm trying to run unit tests on the android platform in accordance with tutorial. Say, for example, I want to run tests for Email application. I open /apps/Email/tests/AndroidManifest.xml file, look for the manifest element, and look at the package attribute, which is com.android.email.tests, and in the instrumentation element I look at the android:name attribute, which is android.test.InstrumentationTestRunner. Now I open the console, and run $ . build/envsetup.sh $ lunch 1 $ adb shell am instrument -w com.android.email.tests/ android.test.InstrumentationTestRunner But that fails: INSTRUMENTATION_STATUS: id=ActivityManagerService android.util.AndroidException: INSTRUMENTATION_FAILED: com.android.email.tests/android.test.InstrumentationTestRunner INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: ComponentInfo{com.android.email.tests/ android.test.InstrumentationTestRunner} So.. What am I doing wrong? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] DDMS won't start
Probably a stupid question with an obvious answer, but I can't figure it out by myself. Tutorial (http://source.android.com/source/using-eclipse.html) says to go to the root of the downloaded platform, and first start emulator (it starts successfully), and then run $ddms. But when I'm trying to do so, it fails: ~/mydroid$ ddms No command 'ddms' found, did you mean: Command 'dkms' from package 'dkms' (main) Command 'xdms' from package 'xdms' (universe) Command 'dds' from package 'dds' (universe) ddms: command not found What am I doing wrong? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: build android sdk from git on ubuntu 10.04 fail
Same here. No solution. If anyone knows, how to fix it, please respond. On 8 июл, 04:04, Taewoong Kim stw...@gmail.com wrote: I have a same problem. but I could not have solution. 2010/7/4 zyanho zya...@gmail.com i getting start withhttp://source.android.com/source/download.html. i use ubuntu 10.04 ,i install android step by step. i type make at last,i get an error host C: libneo_util = external/clearsilver/util/neo_hash.c host SharedLib: libneo_util (out/host/linux-x86/obj/lib/ libneo_util.so) host C: libneo_cs = external/clearsilver/cs/csparse.c host SharedLib: libneo_cs (out/host/linux-x86/obj/lib/libneo_cs.so) host C: libneo_cgi = external/clearsilver/cgi/cgiwrap.c host C: libneo_cgi = external/clearsilver/cgi/cgi.c host C: libneo_cgi = external/clearsilver/cgi/html.c host C: libneo_cgi = external/clearsilver/cgi/date.c host C: libneo_cgi = external/clearsilver/cgi/rfc2388.c host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so) /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/ 4.4.3/../../../libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/ 4.4.3/../../../libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for - lz /usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] error 1 it look like somethings wrong with libz,but zlib1g-dev is install .i try to google it all around web,but i get nothings,could anybody have some idea with this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Build Error
I did $ file /lib/libz.so.1.2.3.3 and it said, that: /lib/libz.so.1.2.3.3: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped So, it seems, everything is ok. But I still get the first error. On Jul 8, 5:15 am, Robert Craig robertpcr...@gmail.com wrote: My first response when looking at your error was that you need to point your libz.so to your 32 bit version. I would try that first and see if that works. Try doing an 'ls -l' on /usr/lib/libz.so and see where that points. My first guess is that you need to create a symlink to the 32bit version, /usr/lib32/libz.so. On Wed, Jul 7, 2010 at 10:06 PM, Taewoong Kim stw...@gmail.com wrote: My dev environment is ubuntu 10.04(32bit) on 64bit cpu(dual). Is this problem? 2010/7/8 Robert Craig robertpcr...@gmail.com it could be a 64 bit versus 32 bit issue. what does your dev environment look like? On Wed, Jul 7, 2010 at 9:03 PM, Taewoong Kim stw...@gmail.com wrote: I have a same problem. but I could not have solution. 2010/7/6 David Rhodus sdrho...@gmail.com Anyone seen this ? I feel like I'm just missing a package or something easy. On Sun, Jul 4, 2010 at 6:24 PM, David Rhodus sdrho...@gmail.com wrote: Any Suggestions ??? apt-get install git-core gnupg sun-java6-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev g++-multilib repo sync r...@myhost:/home/android# make showcommands PLATFORM_VERSION_CODENAME=AOSP PLATFORM_VERSION=AOSP TARGET_PRODUCT=generic TARGET_BUILD_VARIANT=eng TARGET_SIMULATOR= TARGET_BUILD_TYPE=release TARGET_BUILD_APPS= TARGET_ARCH=arm HOST_ARCH=x86 HOST_OS=linux HOST_BUILD_TYPE=release BUILD_ID=OPENMASTER Install: out/host/linux-x86/framework/apicheck.jar out/host/linux-x86/bin/acp -fpt out/host/common/obj/JAVA_LIBRARIES/apicheck_intermediates/javalib.jar out/host/linux-x86/framework/apicheck.jar Install: out/host/linux-x86/framework/clearsilver.jar out/host/linux-x86/bin/acp -fpt out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar out/host/linux-x86/framework/clearsilver.jar Install: out/host/linux-x86/framework/droiddoc.jar out/host/linux-x86/bin/acp -fpt out/host/common/obj/JAVA_LIBRARIES/droiddoc_intermediates/javalib.jar out/host/linux-x86/framework/droiddoc.jar host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so) g++ -Wl,-rpath-link=out/target/product/generic/obj/lib -Wl,-rpath,\$ORIGIN/../lib -shared -Wl,-soname,libneo_cgi.so -m64 -Lout/host/linux-x86/obj/lib out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgiwrap.o out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgi.o out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/html.o out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/date.o out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/rfc2388.o -Wl,--whole-archive -Wl,--no-whole-archive -lneo_util -lneo_cs -o out/host/linux-x86/obj/lib/libneo_cgi.so -lz /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] Error 1 r...@myhost:/home/android# -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs
[android-developers] Re: Build Error
I actually have the same problem here. $ ls -l /usr/lib/libz.so says: lrwxrwxrwx 1 root root 20 2010-07-07 17:08 /usr/lib/libz.so - /lib/ libz.so.1.2.3.3 How do I figure out, if it is the right version of lib, and how do I create a symlink to the right one? On Jul 8, 5:15 am, Robert Craig robertpcr...@gmail.com wrote: My first response when looking at your error was that you need to point your libz.so to your 32 bit version. I would try that first and see if that works. Try doing an 'ls -l' on /usr/lib/libz.so and see where that points. My first guess is that you need to create a symlink to the 32bit version, /usr/lib32/libz.so. On Wed, Jul 7, 2010 at 10:06 PM, Taewoong Kim stw...@gmail.com wrote: My dev environment is ubuntu 10.04(32bit) on 64bit cpu(dual). Is this problem? 2010/7/8 Robert Craig robertpcr...@gmail.com it could be a 64 bit versus 32 bit issue. what does your dev environment look like? On Wed, Jul 7, 2010 at 9:03 PM, Taewoong Kim stw...@gmail.com wrote: I have a same problem. but I could not have solution. 2010/7/6 David Rhodus sdrho...@gmail.com Anyone seen this ? I feel like I'm just missing a package or something easy. On Sun, Jul 4, 2010 at 6:24 PM, David Rhodus sdrho...@gmail.com wrote: Any Suggestions ??? apt-get install git-core gnupg sun-java6-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev g++-multilib repo sync r...@myhost:/home/android# make showcommands PLATFORM_VERSION_CODENAME=AOSP PLATFORM_VERSION=AOSP TARGET_PRODUCT=generic TARGET_BUILD_VARIANT=eng TARGET_SIMULATOR= TARGET_BUILD_TYPE=release TARGET_BUILD_APPS= TARGET_ARCH=arm HOST_ARCH=x86 HOST_OS=linux HOST_BUILD_TYPE=release BUILD_ID=OPENMASTER Install: out/host/linux-x86/framework/apicheck.jar out/host/linux-x86/bin/acp -fpt out/host/common/obj/JAVA_LIBRARIES/apicheck_intermediates/javalib.jar out/host/linux-x86/framework/apicheck.jar Install: out/host/linux-x86/framework/clearsilver.jar out/host/linux-x86/bin/acp -fpt out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar out/host/linux-x86/framework/clearsilver.jar Install: out/host/linux-x86/framework/droiddoc.jar out/host/linux-x86/bin/acp -fpt out/host/common/obj/JAVA_LIBRARIES/droiddoc_intermediates/javalib.jar out/host/linux-x86/framework/droiddoc.jar host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so) g++ -Wl,-rpath-link=out/target/product/generic/obj/lib -Wl,-rpath,\$ORIGIN/../lib -shared -Wl,-soname,libneo_cgi.so -m64 -Lout/host/linux-x86/obj/lib out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgiwrap.o out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgi.o out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/html.o out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/date.o out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/rfc2388.o -Wl,--whole-archive -Wl,--no-whole-archive -lneo_util -lneo_cs -o out/host/linux-x86/obj/lib/libneo_cgi.so -lz /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] Error 1 r...@myhost:/home/android# -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to