VirtualXposed icon indicating copy to clipboard operation
VirtualXposed copied to clipboard

Unable to compile - can't find some dependencies

Open MPeti1 opened this issue 3 years ago • 3 comments

Describe the bug The wiki's section about how to compile the app is incomplete regarding how to build the app. I've managed to get through NDK errors and a few others, but now I hit the wall: gradle says it can't find dependencies whose name starts with me.weishu, one of which is me.weishu.exposed:exposed-core. I think the problem is that they were (probably) only uploaded to JCenter, which has been shut down some time ago.

My question is, how to modify the project so I get through this problem? Which repository should I add to the project level gradle file so it finds the said dependencies?

To Reproduce Steps to reproduce the behavior:

  1. Follow instructions here
  2. Use the 'run app' action when your phone is connected to the computer.
  3. See error about unknown dependencies

Expected behavior The app should successfully build and get installed on my phone by Android Studio. Possible installation errors are out of scope of this issue.

Screenshots image

Desktop (please complete the following information):

  • OS: Windows
  • Browser i don't think this is needed
  • Version instructions unclear

Smartphone (please complete the following information):

  • Device: Xiaomi
  • OS: Android
  • Browser i don't think this is needed
  • Version instructions unclear

Additional context The error that is thrown by gradle on building the app:

Execution failed for task ':lib:compileDebugAidl'.
> Could not resolve all files for configuration ':lib:debugCompileClasspath'.
   > Could not find me.weishu.exposed:exposed-core:0.8.1.
     Required by:
         project :lib
   > Could not find me.weishu:free_reflection:3.0.1.
     Required by:
         project :lib
   > Could not find me.weishu:epic:0.11.1.
     Required by:
         project :lib
   > Could not find me.weishu.exposed:exposed-xposedapi:0.4.6.
     Required by:
         project :lib

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

MPeti1 avatar Jun 11 '21 20:06 MPeti1

you can compile the dependency: https://github.com/android-hacker/exposed https://github.com/tiann/epic

I will fix jcenter later.

tiann avatar Jun 12 '21 00:06 tiann

It seems the problem is there even in the dependencies of some dependencies.

Where can I find me.weishu.exposed:exposed-xposedapi? I think I've found me.weishu.exposed:exposed-core in https://github.com/android-hacker/exposed, but I don't see xposedapi there

MPeti1 avatar Jun 14 '21 17:06 MPeti1

https://github.com/android-hacker/XposedBridge

tiann avatar Jun 14 '21 17:06 tiann