Compiler can not find AndroidInstrumentationTestCase2 when building Android app test code with Andro

Posted by orospakr on Stack Overflow See other posts from Stack Overflow or by orospakr
Published on 2010-03-25T17:07:55Z Indexed on 2010/03/25 18:43 UTC
Read the original article Hit count: 581

I have a project with some Android test code in it (with the appropriate elements, <uses-library> and <instrumentation>, added to AndroidManifest.xml). This works fine in Eclipse. However, it fails to build with mm, claiming that it can't find the test-runner classes:

/home/orospakr/code/my-android/packages/apps/MyApp/src/ca/orospakr/myapp/test/functional/MyActivityTest.java:5: cannot find symbol
symbol  : class ActivityInstrumentationTestCase2
location: package android.test
import android.test.ActivityInstrumentationTestCase2;
                   ^

© Stack Overflow or respective owner

Related posts about android-manifest

Related posts about android