1.Problem description
Using Proguard to obfuscate the code and execute the package command, the following error is reported:
[proguard] Error: You have to specify '-keep' options if you want to write out kept elements with '-printseeds'.
[proguard] Note: you're ignoring all warnings!
2.Solutions
This is because when performing obfuscation in Proguard, you must specify a – keep. If you want to obfuscate all, fill in a nonexistent package name
<option>-keep public class com.aaaa.* {
public protected *;
}
</option>
Read More:
- [Solved] SyntaxError: Missing parentheses in call to ‘print‘. Did you mean print(e)?
- Keras’ print model error: Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.
- Flink SQL contains aggregation operators Error: you cannot print directly
- Vue Error compiling template: Component template should contain exactly one root element. If you
- [Solved] Faceswap Error: CRITICAL An unexpected crash has occurred.You MUST provide this file if seeking assistan
- Filezilla Error: You appear to be behind a NAT router. Please configure the passive mode settings and …
- How to Solve Error: You need to use a Theme.AppCompat theme (or descendant) with this activity.
- Solve the VUE startup problem (You may use special comments to disable some warnings)
- hint: Updates were rejected because the remote contains work that you do To XXX
- Introduce wangeditor5 to run an error: You may need an appropriate loader to handle this file type (es6 compatibility issue)
- [Solved] Error downloading standard development IDs for MRPC. You will need to manually split your data.
- Git: How to Solve Error: Please commit your changes or stash them before you merge.
- [Solved] error TS2584: Cannot find name ‘console’. Do you need to change your target library? Try changing the ‘lib’ compiler option to include ‘dom’.
- Celery Error: Did you remember to import the module containing this task?
- [Solved] pagehelper Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘LIMIT 1’
- [Solved] Wepy build watch Error: ERR! Parse WePY config failed. Are you trying to use
- [Solved] Vite Project jenkins Auto Package Error: failed to load config from ../vite.config.js You installed esbuild on
- [Solved] Postcss Error: Invalid options object. PostCSS Loader has been initialized using an options object that does not match the API schema.
- You have not accepted the license agreements of the following SDK components
- [How to Solve Vue warn]: Unknown custom element: did you register the component correctly?