We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I rename the class and package it, it prompts that I cannot find the Application class
val apk = ApkModule.loadApkFile(logger, inFile) val directory = DexDirectory.fromZip(apk.zipEntryMap) directory.rename(TypeKey.parse("xxx"), TypeKey.parse("xxxxx)) val builder = ApkBuilder(apk, directory) builder.apply() directory.refresh() directory.shrink() directory.merge() directory.refreshFull() directory.save() apk.writeApk(outFile)
The text was updated successfully, but these errors were encountered:
Because you renamed application class on dex and you didn't rename on manifest
<application android:name="com.OldClass">
To rename application class:
AndroidManifest androidManifest = apkModule.getAndroidManifest(); androidManifest.setApplicationClassName("com.NewClass");
Tip: If you are going to make bulk class rename use RenameTypes
Sorry, something went wrong.
No branches or pull requests
When I rename the class and package it, it prompts that I cannot find the Application class
The text was updated successfully, but these errors were encountered: