-
Notifications
You must be signed in to change notification settings - Fork 123
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
在项目根目录下新建一个文件夹,将Module移入该文件夹时,APK安装不了 #4
Comments
解决了,之前不知道怎么调试这个plugin,一调试就发现问题在哪了。加了一层目录后,拿到的module名称前会加上这个目录的名称。String module = project.path.replace(":", "") |
isRegisterAuto applicationName 的作用不是很明白,能说下具体作用么? |
这个插件提供两种加载组件的方式: |
isRegisterAuto为false的时候使用的是字节码的方式,如果为true,就会走applicationName配置的类,在onCreate()中要手动注册组件。 |
哦哦,再问下,CompileCodeTransform里面的 void transform 函数什么时候执行,我debug的时候执行不到该函数。 |
编译的时候:class文件 -> dex,插件和依赖库中的断点是走不到的。 |
哦,那这段代码怎么调试呢?这块打印的log在哪可以看到吗,我现在运行有问题,不知道是不是改了目录的原因 |
找到输出的地方了 |
ok |
在项目根目录下新建一个文件夹,将Module移入该文件夹时,APK安装不了,安装时android studio 弹窗提示如下:
Installation failed with message INSTALL_FAILED_INVALID_APK.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
请问如何解决?是不是要修改插件PluginSwitch代码,还一个问题是插件里面输出的日志在哪查看,我好像没找到
The text was updated successfully, but these errors were encountered: