Git Product home page Git Product logo

Comments (5)

FightLi1017 avatar FightLi1017 commented on May 22, 2024

这个问题搞定了 是我这个app是加固的 我不加固之后 可以成功的加载 但是我用 getPackageManager().getLaunchIntentForPackage(packageName); 获取到的intent是空的 希望解释一下

from virtualapk.

FightLi1017 avatar FightLi1017 commented on May 22, 2024

现在用了框架内置的getLaunchIntent方法 但是又报了资源的错误
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f030034
at android.content.res.Resources.getValue(Resources.java:2325)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:3688)
at android.content.res.Resources.getLayout(Resources.java:2141)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:354)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:324)
at android.app.Activity.setContentView(Activity.java:1999)
at com.wondersgroup.qhrs.view.entrance.activity.WelcomeActivity.onCreate(WelcomeActivity.java:24)
at android.app.Activity.performCreate(Activity.java:5301)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
at com.didi.virtualapk.internal.VAInstrumentation.callActivityOnCreate(VAInstrumentation.java:141)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2283)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2370) 
at android.app.ActivityThread.access$800(ActivityThread.java:155) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1243) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:136) 
at android.app.ActivityThread.main(ActivityThread.java:5426) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084) 
at dalvik.system.NativeStart.main(Native Method) 

from virtualapk.

singwhatiwanna avatar singwhatiwanna commented on May 22, 2024

@LcxAndroidwawa 插件的构建请参考:Demo 工程运行须知

from virtualapk.

FightLi1017 avatar FightLi1017 commented on May 22, 2024

@singwhatiwanna 主席好 我不是运行的demo工程 我就是尝试加载一个完全外部的app

from virtualapk.

singwhatiwanna avatar singwhatiwanna commented on May 22, 2024

@LcxAndroidwawa VirtualAPK不支持吊起一个外部的apk,插件apk需要通过我们的方式来构建才可以,仔细阅读wiki。

from virtualapk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.