|
[BUG]
sunmiT1Printer v1.0.2模块BUG
[复制链接]
本帖最后由 宇孤行 于 2018-8-1 16:38 编辑
购买了了sunmiT1Printer v1.0.2模块;但是添加模块后编译就报错;去掉就正常(android环境下);错误如下:
/uzmap/temp/QJ0j2mk1vW2D83s/AStudioProject/app/src/main/res/layout/camera.xml:57: Error: The id "btn_manual" is not defined anywhere. [UnknownId]
android:layout_above="@+id/btn_manual"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Explanation for issues of type "UnknownId":
The @+id/ syntax refers to an existing id, or creates a new one if it has
not already been defined elsewhere. However, this means that if you have a
typo in your reference, or if the referred view no longer exists, you do
not get a warning since the id will be created on demand. This check
catches errors where you have renamed an id without updating all of the
references to it.
/uzmap/temp/QJ0j2mk1vW2D83s/AStudioProject/app/src/main/AndroidManifest.xml:34: Error: Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one [HardcodedDebugMode]
<application android:allowBackup="false" android:debuggable="false" android:hardwareAccelerated="true" android:icon="@drawable/uz_icon" android:label="@string/app_name" android:largeHeap="true" android:name="com.uzmap.pkg.uzapp.UZApplication" tools:replace="android:icon,android:debuggable,android:allowBackup">
~~~~~~~~~~~~~~~~~~~~~~~~~~
Explanation for issues of type "HardcodedDebugMode":
It's best to leave out the android:debuggable attribute from the manifest.
If you do, then the tools will automatically insert android:debuggable=true
when building an APK to debug on an emulator or device. And when you
perform a release build, such as Exporting APK, it will automatically set
it to false.
If on the other hand you specify a specific value in the manifest file,
then the tools will always use it. This can lead to accidentally publishing
your app with debug information.
2 errors, 0 warnings
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithJarMergingForRelease'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/zxing/aztec/AztecDetectorResult.class
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
另:该模块文档说需要在"使用升级环境编译"和固件4.0.3这两个条件下编译;经过测试如果不使用"使用升级环境编译"编译;不会报错,但是app运行会提示模块未绑定,无法使用;如果使用"使用升级环境编译"编译;则会就会出现上面的错误
|
|