gradle-firebase-test-lab-plugin
gradle-firebase-test-lab-plugin copied to clipboard
Plugin with id 'firebase-test-lab' not found.
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
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.
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