Only a type can be imported. com.rain.bean.LabBean resolves to a package
时间: 2024-04-08 10:29:07 浏览: 27
Android studio CMake方式引入jni .a文件
3星 · 编辑精心推荐
This error typically occurs when you try to import a package instead of a specific class. To resolve this issue, make sure you are importing the correct class instead of the entire package.
For example, if you have a class called `LabBean` inside the package `com.rain.bean`, you should import it like this:
```java
import com.rain.bean.LabBean;
```
Make sure that the class `LabBean` exists in the specified package and that the package is correctly defined in your project.
阅读全文