相关疑难解决方法(0)

如何将Rerink-native使用收缩器(R8)

我将react-native版本更新为0.60.4,但是当我尝试构建发行版时,我陷入了Task:app:transformClassesAndResourcesWithR8ForRelease

我试图禁用R8并可以正常工作,但apk却大了3倍

R8 is the new Android code shrinker. If you experience any issues, please file a bug at
https://issuetracker.google.com, using 'Shrinker (R8)' as component name. You can
disable R8 by updating gradle.properties with 'android.enableR8=false'.
Current version is: 1.4.94 (build 3904928f0db9c3bf128ce3bbfb160 from go/r8bot (luci-r8-ci-archive-0-5g74)).


D8: The rule `-keep class * extends com.facebook.react.bridge.JavaScriptModule {
  *;
}` uses extends but actually matches implements.
D8: The rule `-keep class * extends com.facebook.react.bridge.NativeModule {
  *;
}` uses extends but actually matches implements.
D8: The …
Run Code Online (Sandbox Code Playgroud)

android react-native react-native-android react-native-fbsdk

8
推荐指数
1
解决办法
1423
查看次数

如何为我的 android 应用程序添加代码混淆

如何为 android apk 添加代码混淆。我使用过proguard但仍然看到来自 app 的代码decompiler

我添加了这样的程序

release {
      debuggable true
      minifyEnabled true
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
Run Code Online (Sandbox Code Playgroud)

反编译后它会看到我的所有代码和类。反编译后

我的 Proguard 文件 在此处输入图像描述

android

4
推荐指数
1
解决办法
6224
查看次数