package junit.framework不存在api 28

问题描述 投票:0回答:1

对于使用api 27的项目,构建成功。移至api 28后,出现以下错误。请您让我知道为什么在api 28中发生这种情况以及我应该如何修复我的项目?

error: package junit.framework does not exist
error: cannot find symbol variable Assert
error: cannot find symbol variable Assert
error: cannot find symbol variable Assert
error: cannot find symbol variable Assert
error: cannot find symbol variable Assert
error: cannot find symbol variable Assert
error: cannot find symbol variable Assert
error: cannot find symbol variable Assert
android gradle junit assert
1个回答
0
投票

根据Android API Differences Report,从API 28开始删除junit.framework程序包。

© www.soinside.com 2019 - 2024. All rights reserved.