android / privacy-sandbox-samples

Apache License 2.0
135 stars 56 forks source link

Plugin [id: 'com.android.privacy-sandbox-sdk'] not found #19

Closed abanoubdev closed 2 years ago

abanoubdev commented 2 years ago

I am trying to run PrivacySandboxKotlin project but i am getting the following error : `Build file '/Users/.../Downloads/privacy-sandbox-samples-main/PrivacySandboxKotlin/example-sdk/build.gradle' line: 2

Plugin [id: 'com.android.privacy-sandbox-sdk'] was not found in any of the following sources:

any advise here ?

cshmerling commented 2 years ago

Hey, per the instructions in the README, this module only exists in the Canary versions of Android Studio. If you want to try out the new build tooling you will need to switch to that version which will let you test the latest features for both Privacy Sandbox and others.

Otherwise, there are some instructions baked in to the sample to be able to build and run it in stable Android Studio releases. Specifically some edits are requires to the AndroidManifest.xml and build.gradle files for the project. Let me know if you run in to more issues.

abanoubdev commented 2 years ago

@cshmerling Actually i am already trying to run this on canary version of Android studio but it is not working also Also i am trying to apply the stable version steps but it did not work also

jmarkoff commented 2 years ago

This was added in Android Studio Electric Eel canary 9. Could you ensure that you are using the most recent Electric Eel canary 10, with gradle plugin 7.4-alpha10?

If Android Studio prompts you to upgrade your gradle plugin, please do so. Please let us know if this works.

abanoubdev commented 2 years ago

The main issue was gradle plugin i was using 7.2.2 but it seems it is building fine right now

cshmerling commented 2 years ago

Thanks for testing out the Privacy Sandbox early and often! I'm going to mark this issue as resolved but please do let us know if you encounter other problems