didi / VirtualAPK

A powerful and lightweight plugin framework for Android
Apache License 2.0
8.99k stars 1.52k forks source link

依赖如"com.android.support:*"为什么必须在host中添加? #311

Open PhantomQi opened 5 years ago

PhantomQi commented 5 years ago
java.lang.Exception: The dependencies [com.android.support:design:26.0.1, com.android.support:appcompat-v7:26.0.1, com.android.support:transition:26.0.1, com.android.support:support-v4:26.0.1, com.android.support:recyclerview-v7:26.0.1, com.android.support:support-media-compat:26.0.1, com.android.support:support-fragment:26.0.1, com.android.support:support-core-utils:26.0.1, com.android.support:animated-vector-drawable:26.0.1, com.android.support:support-core-ui:26.0.1, com.android.support:support-vector-drawable:26.0.1, com.android.support:support-compat:26.0.1] that will be used in the current plugin must be included in the host app first. Please add it in the host app as well.
    at com.didi.virtualapk.hooker.PrepareDependenciesHooker.checkDependencies(PrepareDependenciesHooker.groovy:170)
    at com.didi.virtualapk.hooker.PrepareDependenciesHooker.afterTaskExecute(PrepareDependenciesHooker.groovy:132)
    at com.didi.virtualapk.hooker.PrepareDependenciesHooker.afterTaskExecute(PrepareDependenciesHooker.groovy)
    at com.didi.virtualapk.hooker.GradleTaskHooker$afterTaskExecute$0.call(Unknown Source)
    at com.didi.virtualapk.hooker.GradleTaskHooker$afterTaskExecute$0.call(Unknown Source)
    at com.didi.virtualapk.hooker.TaskHookerManager$VirtualApkTaskListener.afterExecute(TaskHookerManager.groovy:78)
    at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
    at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
    at org.gradle.internal.event.DefaultListenerManager$ListenerDetails.dispatch(DefaultListenerManager.java:370)
    at org.gradle.internal.event.DefaultListenerManager$ListenerDetails.dispatch(DefaultListenerManager.java:352)
    at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:58)

(PrepareDependenciesHooker.groovy:170)确实专门检查了特定的依赖,我的问题是,为什么这些依赖必须添加到host?不添加到host会有什么问题?