0

I've followed all the steps found in this tutorial and added JUnit

But Test Artifacts doesn't appear in "Build variants" tool window.

How can I display this option?

npit
  • 199
  • 3
  • 22
Sandra Sukarieh
  • 133
  • 1
  • 16

3 Answers3

0

The problem was the version of Android Studio, it was 1.0.1 I updated to 1.2.2 and the problem is fixed

Sandra Sukarieh
  • 133
  • 1
  • 16
0

I know there is an answer but for me it is different case .Since I installed Beta version android studio 2.0, I didn't see Artifact in build variants.For me using stable version instead of beta solve the issue. Hope it helps

Tixeon
  • 930
  • 1
  • 12
  • 27
0

For Android Studio 2.0, you have to uncheck this: "Enable all test artifacts (Unit Test and Instrumentation Test) in Android projects".

markproxy provided the solution in this link, Test Artifact selector missing/gone from Build Variants in Android Studio 2 Beta 5

Community
  • 1
  • 1
Eric Cen
  • 3,616
  • 1
  • 13
  • 17