How to get Android Studio to recognize file as source (test)

后端 未结 4 2156
别跟我提以往
别跟我提以往 2020-12-05 04:22

I\'m trying to create Robolectric tests for an android project (heck, i\'d be happy to even make them unit tests)

I have the folder directory as:

MyA         


        
4条回答
  •  生来不讨喜
    2020-12-05 04:57

    In Android Studio 1.3:

    Build > Select Build Variant

    In the Build Variants window, select Unit Tests as the Test Artifact.

提交回复
热议问题