Closed makotoshimazu closed 7 years ago
I'm tackling the cannot find symbol
problem. In a local machine, the error does not occur with ./gradlew build connectedCheck
but I met other error Could not launch activity
after the building process causing cannot find symbol
problem so I fixed it at first. Since the error also made me confused, let me a note for that.
The error has occurred in com.pileproject.drive.util.fragment.AlertDialogFragmentTest#testCheckComponent_titleString
because it could't find com.pileproject.drive.util.fragment.TestActivity
. But the Activity class was surely declared in androidTest/AndroidManifest.xml
and should have been found in test.
Finally, I came across a discussion on StackOverFlow and we should prepare AndroidManifest in debug
folder to follow the default build type while testing.
[UPDATE]
As follow the instruction, I changed a sourceSets
element from test
to debug
and this solved the Could not launch activity
error.
This patch enables the bot to test this repository automatically.
Issue #36