-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
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
Error encountered while compiling APK #71
Comments
Attempt to invoke virtual method 'boolean com.reandroid.arsc.chunk.xml.ResXmlStartNamespace.removeIfNoReference()' on a null object reference |
Null at
FYI: If your end goal is to edit resources/xml, you don't have to decompile at all. There are all the methods to edit binary files directly. |
Hi, I need to modify the resource/xml code, how can I edit the binary file directly? Is there any example usage? |
Sorry, I need to change the package name, but I don't know how to directly edit binary file resources and xml. Please provide the following sample code |
I tried to modify the APK, but most of them gave an error: Attempt to invoke virtual method 'boolean com.reandroid.arsc.chunk.xml.ResXmIStartNamespace.removelfNoReference()' on a nullobject reference
`package com.nekolaska.apk
import android.app.Activity
import com.luajava.LuaFunction
import com.reandroid.apkeditor.Util
import com.reandroid.apkeditor.compile.Builder
import com.reandroid.apkeditor.decompile.Decompiler
import java.io.File
import kotlin.concurrent.thread
class Editor(private val context: Activity) {
val cacheDir: String = File(context.cacheDir, "editor").absolutePath
}`
The text was updated successfully, but these errors were encountered: