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

Plugin with id 'firebase-test-lab' not found. #8

Open
skauss opened this issue Dec 29, 2017 · 2 comments
Open

Plugin with id 'firebase-test-lab' not found. #8

skauss opened this issue Dec 29, 2017 · 2 comments

Comments

@skauss
Copy link

skauss commented Dec 29, 2017

Hi
I try o run a firebase test.
I add in my build.gradle file
repositories {
jcenter()
google()
maven { url 'https://maven.fabric.io/public' }
maven { url "https://plugins.gradle.org/m2/" }
}
and
dependencies {
classpath "gradle.plugin.ru.gildor.gradle.firebase.testlab:firebase-test-lab:0.1.1"
}

in my app/build.gradle file I add
apply plugin: 'firebase-test-lab'
and the firebaseTestLab {..}
gradlew tasks run in to this error
What went wrong:
A problem occurred evaluating project ':app'.
Plugin with id 'firebase-test-lab' not found.

Did I miss any part ?
Rregards

@dotdoom
Copy link

dotdoom commented Dec 29, 2017

A wild guess: in build.gradle file, dependencies and repositories blocks must be inside buildscript {} block; perhaps it's not the case for you?

If you could post your build.gradle file it would be helpful.

@skauss
Copy link
Author

skauss commented Dec 30, 2017

Hi Dotdoom
thanks for the answer.
The the dependencies and repositories are inside the buikdscript block

import java.util.regex.Pattern
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        jcenter()
        google()
        maven { url 'https://maven.fabric.io/public' }
        maven { url "https://plugins.gradle.org/m2/" } // Gradle plugin for Firebase Test Lab
    }
    dependencies {
        // https://developer.android.com/studio/releases/gradle-plugin.html
        classpath 'com.android.tools.build:gradle:3.0.1'

        // for the download of app language resources
        // https://github.com/michel-kraemer/gradle-download-task
        classpath 'de.undercouch:gradle-download-task:3.1.2'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files

        classpath 'io.fabric.tools:gradle:1.+'

        // https://github.com/gildor/gradle-firebase-test-lab-plugin
        classpath "gradle.plugin.ru.gildor.gradle.firebase.testlab:firebase-test-lab:0.1.1"
    }
}

allprojects {
    repositories {
        jcenter()
        google()
        mavenCentral()                              // Facebook
        maven { url "https://jitpack.io" }          // PhotoView (for pinch to zoom)
        maven { url "https://maven.google.com" }    // Google Support Libs
        maven { url "https://plugins.gradle.org/m2/" } // Gradle plugin for Firebase Test Lab
        flatDir{
            dirs 'libs'
        }
    }
}
// .. some more additional task for handling version

I also try to remove the allprojects part with out success.

And the begin parts of my app/build.gradle file

apply plugin: 'com.android.application'
apply plugin: 'de.undercouch.download'
apply plugin: 'io.fabric'
apply plugin: 'firebase-test-lab'

android {
    compileSdkVersion 27
    buildToolsVersion '27.0.2'

    def APP_API_VERSION = '28'
// and  more of 1100 lines build script  

Error message form Android Studio

Error:(2, 0) Plugin with id 'firebase-test-lab' not found.
openFile:/PathToProjectRoot/app/build.gradleOpen File

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

2 participants