-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
AndroidAOP is causing the application to fail during installation when running UI tests. #33
Comments
If it is convenient for you, please provide a test code that can reproduce this problem and describe your operation steps in detail. This will help me locate the problem quickly. |
I’ve been setting up the tests, though there are only a few empty test cases at the moment. Also, after moving the androidAopConfig inside the module's build.gradle, the errors stopped appearing, but I'm still unable to log any messages using the aspect. |
|
I’ve tried removing the configurations as it is optional as you mentioned, and now the app is successfully installed. However, the AOP logging is still not working correctly. |
It’s also strange that whenever I include id("android.aop") in the app-level module, the application fails to install on the emulator. |
I included the package name to conceal the actual one, but it has the correct package in reality. For discussion purposes, we can use com.example. |
I have something to do today, so I can test it on the simulator tomorrow to see if I can reproduce this problem. If you are in a hurry, you can prepare a demo that can reproduce this problem for me before I reply to you. |
I have tested a simple AndroidTest on the emulator and found no problems. If you want me to help you solve the problem, please provide a demo project code that can reproduce the problem. If you can't provide it, I will close this issue later. |
I have completed the initial configuration for AndroidAOP in my multi-module project. I’ve set up the androidAopConfig in the app-level Gradle file and installed the necessary packages in the module-level Gradle file. However, I want to ensure this works during Android tests, but I’m encountering an issue where the app is not being installed on the emulator when running the tests.
app level
build.gradle
Module level
build.gradle
Inside the module
MatchAll.kt
I have also tried using @CustomInterceptor, but that’s not working either. Additionally, I’m facing some configuration issues with ksp.
Error Log
Library version number:
AndroidAOP: 2.1.5
Computer Type: Mac
The text was updated successfully, but these errors were encountered: