After integrating the ObjectBox, the APK cannot be installed after using 360 hardening or Tencent legu hardening.
log: Failure [INSTALL_FAILED_INVALID_APK: Failed to extrace natice libraries, res=2 ]
[picture](https://github.com/renjunjia3/HiddenGraph/blob/master/%E4%B9%90%E5%9B%BA%E5%8A%A0%E5%9B%BA%E5%AE%89%E8%A3%85.png?raw=true)
Please raise the issue with those tools. It seems that "hardening" breaks it.
ObjectBox version :2.3.1
Install to the simulator
Failure [INSTALL_FAILED_INVALID_APK]
ObjectBox version :2.2.0
No problem installing to the simulator and It鈥檚 okay to use 360 hardening.
@imliujun Did you contact the producer of "360 hardening" with this issue?
Since 2.3.0 ObjectBox adds extractNativeLibs=false to the manifest to prevent native library extraction. Maybe you need to override this and set it to the old behavior?
In your AndroidManifest.xml try:
<application
android:extractNativeLibs="true"
tools:replace="android:extractNativeLibs"
Since
2.3.0ObjectBox addsextractNativeLibs=falseto the manifest to prevent native library extraction. Maybe you need to override this and set it to the old behavior?In your
AndroidManifest.xmltry:<application android:extractNativeLibs="true" tools:replace="android:extractNativeLibs"
Is this reason
Closing. Please re-open if your question was not answered.
Most helpful comment
Since
2.3.0ObjectBox addsextractNativeLibs=falseto the manifest to prevent native library extraction. Maybe you need to override this and set it to the old behavior?In your
AndroidManifest.xmltry: