Skip to content
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

Unable to load class 'com.android.build.api.artifact.ScopedArtifact'. This is an unexpected error. Please file a bug containing the idea.log file. #225

Open
sunilsilveredge opened this issue Oct 31, 2023 · 4 comments

Comments

@sunilsilveredge
Copy link

when i add this line
id "co.elastic.apm.android" version "0.10.0"

and
elasticApm {
// Minimal configuration
serverUrl = "https://apm.thespartanpoker.in:443"
// Optional
serviceName = "co.elastic.apm.android.sample"
serviceVersion = "0.0.1"
apiKey = "SDk5TmdJc0JRWGlJUnRXVkVkalM6eDFla2liblJRTWFkSm5lc3ZQSmZ0U"
secretToken = "YWJNaDZvb0JRWGlJUnRXVlh3ckw6bU9iNktKcmjPOKDxUNXlISXZGU2J2a253QQ=="
}

every time getting compile issue..

@sunilsilveredge
Copy link
Author

i have used this link

https://github.com/elastic/sample-app-android-apm

@LikeTheSalad
Copy link
Contributor

Hi @sunilsilveredge - We recently updated the minimum required AGP version to 7.4.0, so for your case, it seems like your project might have a lower AGP version. The same issue might be happening to the sample app you mentioned, so thanks for letting us know! 🙂 I'll update the sample app's AGP version as well.

@sunilsilveredge
Copy link
Author

Hi Sir,

Thanks for given me valuable feedback now its working. I want to send every android activity screen track or log to server i m not able able to sent it.

even as you mentioned some "application class" implementation. like
https://www.elastic.co/guide/en/apm/agent/android/current/configuration.html#server-export-protocol

NOTE: - sir your "Weather sample app" does not have activity or fragment implementation any kinds of log or track .
could you pls give me some source code so that i can send app activity track to server..

@LikeTheSalad
Copy link
Contributor

Hi @sunilsilveredge - Glad to know that the first issue has been solved.

Regarding the activity and fragment tracking, I'm going to need a bit more information on what is it that you'd like to do. It could be either:

1.- Automatically send spans when an activity or fragment is open.
2.- Manually send either spans or logs anywhere in the activity or fragment.

Which of the above options is the one you'd like to achieve?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants