Comments (6)
把这一行去掉呢? PluginHelper.getInstance().applicationAttachBaseContext(base);
from droidplugin.
试过了, 还是一样的.你能发个好用的例子不?
from droidplugin.
PluginApplication就是一个例子啊。我看你写的没问题啊。
manifest里改成:
android:icon="@drawable/ic_launcher" android:theme="@style/AppTheme">是哪一个的manifest?droid plugin里面的?
from droidplugin.
manifest是我应用程序的, 不是droidPlugin的, 只是想说这里没有引用插件的com.morgoo.droidplugin.PluginApplication.
关于例子, 能不能给个类似于你下载包里的TestPlugin(把DroidPlugin当做lib使用的), 然后manifest里声明自己的application, 同时还能PluginManager功能的, eg.PluginManager.getInstance().deletePackage()
from droidplugin.
@cmzy,
问题解决了, 我重新看了一个DroidPlugin的applicaiton,
@OverRide
protected void attachBaseContext(Context base) {
PluginHelper.getInstance().applicationAttachBaseContext(base);
super.attachBaseContext(base); //这句忘记了, 当然不会加载...., ps. 你的中文文档里也没没写这个, 有时间更新一下吧
}
谢了.
from droidplugin.
fixed
from droidplugin.
Related Issues (20)
- 微信登录,调不起微信界面 HOT 1
- 使用jks签名后的apk无法启动,默认debug可以正常启动 HOT 2
- 安装插件后,打开插件activity会出现class not found HOT 1
- 请问一下,可以把一个第三方apk作为插件,免安装启动吗?
- 在demo上可以安装,但启动即崩溃
- 启动奔溃
- 适配Android P空工程插件打开失败
- 7.1.2设备启动崩溃 HOT 1
- 安装apk失败,提示INSTALL_FAILED_CONFLICTING_PROVIDER HOT 1
- 安装插件失败 HOT 1
- Caused by: java.lang.NoSuchMethodException: collectCertificates [class android.content.pm.PackageParser$Package, int] HOT 1
- android9.0启动插件卡住 HOT 5
- Fake system service faile
- com.example.ApiTestcom.example.ApiTest.MyActivity HOT 11
- Unknown calling package name xxx
- 找到一个不太算bug的NPE--望DroidPluginTeam采纳
- is 32-bit instead of 64-bit
- Android10以上有适配了的么
- 输入框无法输入,点击5秒后崩溃。dispatching input event
- 安卓11开始就没有适配了。安卓13的PackageParser的变更,安卓14的PackageUserState变更等也没有适配。哎,还是自力更生,自己适配吧 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from droidplugin.