can not find package info and BaseChromiumAndroidJunitRunner

56 views
Skip to first unread message

tring...@gmail.com

unread,
Jan 16, 2018, 7:22:09 AM1/16/18
to Chromium-dev
I have tried to make my test module which is based on Chromium GN Test(android_webview). My AndroidManifest.xml is same as android_webview/javatests/AndroidManifest.xml. These are my simple code, but it prints errors in terminal console:



W    0.018s Main  Unable to find package info for com.zeng.myapplication.junit
E   17.321s individual_device_set_up(W8RDU15919000135)  Couldn't set debug app: no package info
E   17.387s individual_device_set_up(W8RDU15919000135)  Couldn't set flags: no package info
E   18.695s list_tests(W8RDU15919000135)  Unexpected output while listing tests:
E   18.695s list_tests(W8RDU15919000135)    INSTRUMENTATION_RESULT: shortMsg=java.lang.ClassNotFoundException
E   18.695s list_tests(W8RDU15919000135)    INSTRUMENTATION_RESULT: longMsg=java.lang.ClassNotFoundException: Didn't find class "org.chromium.base.test.BaseChromiumAndroidJUnitRunner" on path: DexPathList[[zip file ...

tring...@gmail.com

unread,
Jan 16, 2018, 8:20:39 AM1/16/18
to Chromium-dev
I have find another error:MultiDexError. When I remove testonly = true ,it has disappeared, what is wrong?

在 2018年1月16日星期二 UTC+8下午8:22:09,tring...@gmail.com写道:

tring...@gmail.com

unread,
Jan 16, 2018, 10:04:23 PM1/16/18
to Chromium-dev
I find that when i remove testonly = true, it remind me that "org.chromium.base.test.BaseChromiumAndroidJUnitRunner" can not find? Can someone help me pls. I have add the deps "//base:base_java_test_support", in my gn but it not work!


在 2018年1月16日星期二 UTC+8下午8:22:09,tring...@gmail.com写道:
I have tried to make my test module which is based on Chromium GN Test(android_webview). My AndroidManifest.xml is same as android_webview/javatests/AndroidManifest.xml. These are my simple code, but it prints errors in terminal console:
Reply all
Reply to author
Forward
0 new messages