How to configure the order of libraries in the classpath for Android Studio?

前端 未结 2 739
天涯浪人
天涯浪人 2021-01-08 00:19

I would like to change the order of libraries in the classpath for Android Studio. I am trying to run unit tests with JUnit 4 from within the IDE

2条回答
  •  我在风中等你
    2021-01-08 01:13

    You have to modify the project .iml file to have the JDK as the last entry like the following:

        
        
        
         
      
    
    

    For a full working example see Robolectric's deckard-gradle sample.

提交回复
热议问题