austgl / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

logcat show Could not find class 'com.jayway.android.robotium.solo.Solo #246

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.run the project i attached

What is the expected output? What do you see instead?
not not being run 

What version of the product are you using? On what operating system?
3.2

Please provide any additional information below.

alogcat display

04-12 23:24:54.598: E/dalvikvm(1365): Could not find class 
'com.jayway.android.robotium.solo.Solo', referenced from method 
com.qa.dan.test.InitialButtonTest.setUp
04-12 23:24:54.598: W/dalvikvm(1365): VFY: unable to resolve new-instance 6 
(Lcom/jayway/android/robotium/solo/Solo;) in Lcom/qa/dan/test/InitialButtonTest;
04-12 23:24:54.598: D/dalvikvm(1365): VFY: replacing opcode 0x22 at 0x0003
04-12 23:24:54.598: D/dalvikvm(1365): VFY: dead code 0x0005-0012 in 
Lcom/qa/dan/test/InitialButtonTest;.setUp ()V
04-12 23:24:54.598: I/dalvikvm(1365): Could not find method 
com.jayway.android.robotium.solo.Solo.finishOpenedActivities, referenced from 
method com.qa.dan.test.InitialButtonTest.tearDown
04-12 23:24:54.598: W/dalvikvm(1365): VFY: unable to resolve virtual method 5: 
Lcom/jayway/android/robotium/solo/Solo;.finishOpenedActivities ()V
04-12 23:24:54.598: D/dalvikvm(1365): VFY: replacing opcode 0x6e at 0x0002
04-12 23:24:54.598: D/dalvikvm(1365): VFY: dead code 0x0005-0005 in 
Lcom/qa/dan/test/InitialButtonTest;.tearDown ()V
04-12 23:24:56.008: E/dalvikvm(1384): Could not find class 
'com.jayway.android.robotium.solo.Solo', referenced from method 
com.qa.dan.test.InitialButtonTest.setUp
04-12 23:24:56.008: W/dalvikvm(1384): VFY: unable to resolve new-instance 6 
(Lcom/jayway/android/robotium/solo/Solo;) in Lcom/qa/dan/test/InitialButtonTest;
04-12 23:24:56.018: D/dalvikvm(1384): VFY: replacing opcode 0x22 at 0x0003
04-12 23:24:56.018: D/dalvikvm(1384): VFY: dead code 0x0005-0012 in 
Lcom/qa/dan/test/InitialButtonTest;.setUp ()V
04-12 23:24:56.018: I/dalvikvm(1384): Could not find method 
com.jayway.android.robotium.solo.Solo.finishOpenedActivities, referenced from 
method com.qa.dan.test.InitialButtonTest.tearDown
04-12 23:24:56.018: W/dalvikvm(1384): VFY: unable to resolve virtual method 5: 
Lcom/jayway/android/robotium/solo/Solo;.finishOpenedActivities ()V
04-12 23:24:56.018: D/dalvikvm(1384): VFY: replacing opcode 0x6e at 0x0002
04-12 23:24:56.018: D/dalvikvm(1384): VFY: dead code 0x0005-0005 in 
Lcom/qa/dan/test/InitialButtonTest;.tearDown ()V

thanks 
Danny 
sasdan@gmail.com

Original issue reported on code.google.com by sasda...@gmail.com on 12 Apr 2012 at 11:58

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by renasr...@gmail.com on 13 Apr 2012 at 4:06

GoogleCodeExporter commented 9 years ago
I get similar error running the ExampleTest for Robotium 4.3.1 using Android-18 
APIs.

 Could not find class 'com.jayway.android.robotium.solo.Solo', referenced from method com.jayway.test.NotePadTest.setUp

i've changed project.properties to point to android-18 for both the app and the 
test project, but when i run the test as an Android Junit test, i would get the 
error above.
I am using Java 1.7u45 running on Windows 7 Home Premium on Eclipse Kepler.

Please advise what on how to fix.

Original comment by josephkn...@gmail.com on 1 Dec 2013 at 3:33

GoogleCodeExporter commented 9 years ago
The problem is with your setup. Please see common robotium issues on
tutorials wiki page.
Den 1 dec 2013 04:34 skrev <robotium@googlecode.com>:

Original comment by renasr...@gmail.com on 1 Dec 2013 at 6:04