randunit icon indicating copy to clipboard operation
randunit copied to clipboard

class not found 问题

Open ftvbftvbq opened this issue 5 years ago • 1 comments

问个问题,问这边运行程序报错,我把你安卓demo下文件都复制了一份过来,并且在主程序下的gradle下配置了:testImplementation "com.github.williamfzc.randunit:randunit-android:0.1.1",在root项目下的gradle下配置了:maven { url 'https://jitpack.io' },但是跑randjunit还是报错:class not found

ftvbftvbq avatar Apr 21 '21 10:04 ftvbftvbq

这个 class not found 貌似不是 randunit 里的类找不到,是你的 junit class 找不到了; 这种情况下你随便建一个单测用例应该也是报一样的错,跟 IDE 配置有关; 建议是 随便建一个不带randunit的单测用例看看能否运行 先,能跑通之后再接入即可

williamfzc avatar Apr 21 '21 11:04 williamfzc