Robolectric Unit Test failing with Android Studio 2.3 updates

后端 未结 2 882
半阙折子戏
半阙折子戏 2020-12-31 12:07

All my Unit Test started throwing this error:

No such manifest file: build\\intermediates\\bundles\\debug\\AndroidManifest.xml

java.lang.NullPointerExceptio         


        
2条回答
  •  一向
    一向 (楼主)
    2020-12-31 12:47

    Set it by default, so every new test configuration that you create will inherit it:

    Run > Edit Configurations... > Defaults > Android JUnit

    in Working directory enter: $MODULE_DIR$

提交回复
热议问题