首页 > 解决方案 > 如何将 .class 库导入 Android Studio 上的项目?

问题描述

我正在开发一个创建 POS 的项目,我需要使用生物识别阅读器,我找到了 SDK,但库的文件在 .class 中,有没有像 Eclipse 那样的选项来在 Android Studio 项目中导入这些文件?我只找到 .JAR 的选项

文件截图

标签: androidandroid-studiobiometrics

解决方案


.class在项目结构中复制所需的文件。

project/Android/app/src/main/java/com/example/myapplication

.class文件将在 Android Studio 中自动反编译。当你打开它们时,你会看到类似这样的东西:

// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)

推荐阅读