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

cant import android-plugin on a TOML project #322

Open
elton-kola-okcupid opened this issue Feb 14, 2023 · 0 comments
Open

cant import android-plugin on a TOML project #322

elton-kola-okcupid opened this issue Feb 14, 2023 · 0 comments

Comments

@elton-kola-okcupid
Copy link

elton-kola-okcupid commented Feb 14, 2023

Hi

I am trying to configure the android plugin on my project (it uses toml).
Unfortunately getting this error:

org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.mparticle', version: '5.49.1'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Included Builds (None of the included builds contain this plugin)
- Plugin Repositories (could not resolve plugin artifact 'com.mparticle:com.mparticle.gradle.plugin:5.49.1')
  Searched in the following repositories:
    Gradle Central Plugin Repository
    Google
    MavenRepo
    
    ....
 * Exception is:
  org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.mparticle.android-plugin', version: '5.49.1', apply: false] was not found in any of the following sources:
  
  - Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
  - Included Builds (None of the included builds contain this plugin)
  - Plugin Repositories (could not resolve plugin artifact 'com.mparticle.android-plugin:com.mparticle.android-plugin.gradle.plugin:5.49.1')

Here is how my code looks like:
toml file

[versions]
mparticle = "5.49.1"

[plugins]
mparticle = { id = "com.mparticle.android-plugin", version.ref = "mparticle"}

project root gradle file:

plugins {
   ...
    alias(libs.plugins.mparticle)
}

app gradle file:

plugins {
    ...
    alias(libs.plugins.mparticle)
    //    id("com.mparticle")  //this one aslo not wokring
}

i was able to apply it to the sample app 'higgs-shop-sample-app' , the only difference is that my app is using toml

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

No branches or pull requests

1 participant