Android Base64 encode and decode return null in Unit Test

前端 未结 4 1466
失恋的感觉
失恋的感觉 2021-02-18 18:21

I am attempting to decode a Base64 encoded string in Android using the http://developer.android.com/reference/android/util/Base64.html class.

Both the encodeToString and

4条回答
  •  感情败类
    2021-02-18 18:33

    Follow up o android tutorials and unit test notes while you need just Unit tests without use of some android libs

    In your case you're depending on android.Base64. I had similar issue and moving test classes from src/test -> src/androidTest worked. Those tests are run on virtual machine or real android device. I didn't notice the diff at the first look.

提交回复
热议问题