gpt4 book ai didi

android - 使用 Vuforia 配置 Proguard 时出错

转载 作者:太空宇宙 更新时间:2023-11-03 13:14:18 25 4
gpt4 key购买 nike

我正在尝试将 Vuforia 置于 proguard 设置中并显示错误日志:

Warning:com.qualcomm.ar.pl.ODGR7Controller: can't find referenced class com.osterhoutgroup.api.ext.ExtendDisplay

Warning:com.qualcomm.ar.pl.ODGX6Controller: can't find referenced class com.ti.s3d.S3DView$Layout

Warning:com.qualcomm.ar.pl.ODGX6Controller: can't find referenced class com.ti.s3d.S3DView$RenderMode

Warning:com.qualcomm.ar.pl.ODGX6Controller: can't find referenced class com.ti.s3d.S3DView

Warning:com.qualcomm.ar.pl.ODGX6Controller: can't find referenced class com.ti.s3d.S3DView$Layout

Warning:com.qualcomm.ar.pl.ODGX6Controller: can't find referenced class com.ti.s3d.S3DView$RenderMode

Warning:com.qualcomm.ar.pl.ODGX6Controller: can't find referenced class com.ti.s3d.S3DView$Layout

Warning:com.qualcomm.ar.pl.ODGX6Controller: can't find referenced class com.ti.s3d.S3DView$RenderMode

Warning:com.qualcomm.ar.pl.ODGX6Controller: can't find referenced class com.ti.s3d.S3DView

Warning:there were 11 unresolved references to classes or interfaces.

Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.

Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForDebug'.

java.io.IOException: Please correct the above warnings first.

我的混淆器:

#tests

#-keep class com.qualcomm.** { *; }

-keep class com.vuforia.** { *; }

#-keep class com.qualcomm.ar.pl.** { *; }

-keep class com.vuforia.ar.pl.** { *; }

#-dontwarn class com.qualcomm.ar.pl.** { *; }

#-dontwarn class com.vuforia.ar.pl.**

最佳答案

首先我正在使用以下

-keep class com.vuforia.** { *; }
-keep interface com.vuforia.** { *; }

-keep class com.osterhoutgroup.** { *; }
-keep class com.ti.s3d.** { *; }

-dontwarn com.vuforia.ar.**

关于android - 使用 Vuforia 配置 Proguard 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38996172/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com