Skip to content

cant import android-plugin on a TOML project  #322

@elton-kola-okcupid

Description

@elton-kola-okcupid

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions