Test events were not received - Android Studio

后端 未结 5 1819
长情又很酷
长情又很酷 2021-01-07 18:35

I have no idea how to test and I was following a tutorial.I am trying to run:

package name.company.sunshine.app.data;

import android.test.AndroidTestCase;
         


        
5条回答
  •  长情又很酷
    2021-01-07 19:12

    I was able to get past this problem after making two changes.

    uncheck use in-process build in Settings -> Build Tools -> Compiler Source: https://code.google.com/p/android/issues/detail?id=172162

    force Gradle to re-run all tasks by updating your run configurations. Add --rerun-tasks to the Script Parameters.

    Source: https://www.bignerdranch.com/blog/triumph-android-studio-1-2-sneaks-in-full-testing-support/

提交回复
热议问题