当我从gradle文件中启用Proguard并生成一个版本构建文件时,我将得到以下错误消息。
在处理任务时异常:'S:\workspace\Projects..\app\build\intermediates\proguard-rules..\release\aapt_rules.txt‘:proguard.ParseException:期待类型和名称,而不是仅仅在“”之前(“在com.android.builder.tasks.Job.runTask(Job.java:48) at com.android.builder.tasks.Job.runTask(Job.java:48)
当我构建应用程序的时候。发生了如下异常。
Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException:
org.gradle.process.internal.ExecException:
Process 'command 'C:\Program Files\Java\jdk1.8.0_25\bin\java.exe''
finished with non-zero exit value 2
这是我
我正在开发xamarin应用程序。在构建应用程序时,当我在android属性中启用"ProGuard“时,我得到了以下错误:
"java.exe" exited with code1.
proguard cfg文件具有以下内容:
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
开发环境:
Visual Studi
该应用程序在正常情况下运行良好,但当我尝试实现minify和R8时。这将引发以下错误。
* What went wrong:
Execution failed for task ':app:uploadCrashlyticsMappingFileAlpha'.
> Failed to calculate the value of task ':app:uploadCrashlyticsMappingFileAlpha' property 'googleServicesResourceRoot'.
> Could not get
我正在使用FileProvider从设备中获取照片。这个实现在调试版本(minifyEnabled false)中工作得很好,但是当我构建发布版本(minifyEnabled true)时,我得到了一个错误:
java.lang.RuntimeException: Unable to get provider android.support.v4.content.FileProvider:
java.lang.ClassNotFoundException: Didn't find class "android.support.v4.content.FileProvider
我已经编写了一个AAR库,它实现了一些Android通知功能。当我尝试在运行Android O (26+)的设备上创建通知时,我得到了以下错误: java.lang.NoSuchMethodError: No direct method <init>(Landroid/content/Context;Ljava/lang/String;)V in class Landroid/support/v4/app/NotificationCompat$Builder; or its super classes (declaration of 'android.support.v4
在将我的Android项目转换为Kotlin后,我无法构建一个发布版本,该错误似乎与Proguard有关。
我看到了155个警告,比如
Warning:com.example.app.activity.MainActivity$1: can't find referenced field 'android.view.View decorView' in program class com.example.app.activity.MainActivity
Warning:com.example.app.activity.MainActivity$2: can't
我在我的android应用程序中使用了jacorb.jar和CORBA接口。当我尝试使用Proguard混淆代码时,我收到了很多类似下面这样的警告:
[proguard] Warning: org.jacorb.orb.standardInterceptors.SASComponentInterceptor: can't find referenced
class org.ietf.jgss.Oid
结果是:
[proguard] Warning: there were 1223 unresolved references to classes or interfaces.
我有一个Android应用程序,它最近崩溃了,正在构建一些碎片。这并不总是发生,只是偶尔发生。 这是典型的崩溃日志: Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mycompany.myapp./com.mycompany.myapp..ui.activities.MainActivity}: androidx.fragment.app.Fragment$InstantiationException: Unable to instantiate fragment
我在Android中成功地使用了DexGuard和Gradle,没有任何问题。最近我尝试用OkBuck来加快我的构建时间,这真的对我很有帮助。
虽然它可以为我构建调试和签名APK,但是当我尝试用DexGuard构建发行版时,比如:
./buckw install --run app:bin_release
我得到以下错误:
Error: Unknown option '-dalvik' in line 9 of file 'SomeApp/app/build/okbuck/release/proguard.pro',
included from line 6