Skip to content

[extension_google_sign_in_as_googleapis_auth] Example doesn't build on Android #89301

Closed
flutter/packages
#466

Description

@stuartmorgan-g

Building examples has been broken in flutter/packages for quite some time, so issues haven't been noticed. I've fixed the tool, and extension_google_sign_in_as_googleapis_auth is failing to build on Android (at least on CI):

ERROR: [TAG] Failed to resolve variable '${animal.sniffer.version}'
Running Gradle task 'assembleRelease'...                           91.8s
Note: /home/cirrus/.pub-cache/hosted/pub.dartlang.org/google_sign_in-5.0.7/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/tmp/cirrus-ci-build/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/FlutterActivityTest.java:7: error: package androidx.test.rule does not exist
import androidx.test.rule.ActivityTestRule;
                         ^
/tmp/cirrus-ci-build/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/FlutterActivityTest.java:8: error: package dev.flutter.plugins.integration_test does not exist
import dev.flutter.plugins.integration_test.FlutterTestRunner;
                                           ^
/tmp/cirrus-ci-build/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/FlutterActivityTest.java:10: error: package org.junit does not exist
import org.junit.Rule;
                ^
/tmp/cirrus-ci-build/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/FlutterActivityTest.java:11: error: package org.junit.runner does not exist
import org.junit.runner.RunWith;
                       ^
/tmp/cirrus-ci-build/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/FlutterActivityTest.java:13: error: cannot find symbol
@RunWith(FlutterTestRunner.class)
 ^
  symbol: class RunWith
/tmp/cirrus-ci-build/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/FlutterActivityTest.java:16: error: cannot find symbol
  public ActivityTestRule<FlutterActivity> rule = new ActivityTestRule<>(FlutterActivity.class);
         ^
  symbol:   class ActivityTestRule
  location: class FlutterActivityTest
/tmp/cirrus-ci-build/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/EmbeddingV1ActivityTest.java:7: error: package androidx.test.rule does not exist
import androidx.test.rule.ActivityTestRule;
                         ^
/tmp/cirrus-ci-build/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/EmbeddingV1ActivityTest.java:8: error: package dev.flutter.plugins.integration_test does not exist
import dev.flutter.plugins.integration_test.FlutterTestRunner;
                                           ^
/tmp/cirrus-ci-build/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/EmbeddingV1ActivityTest.java:9: error: package org.junit does not exist
import org.junit.Rule;
                ^
/tmp/cirrus-ci-build/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/EmbeddingV1ActivityTest.java:10: error: package org.junit.runner does not exist
import org.junit.runner.RunWith;
                       ^
/tmp/cirrus-ci-build/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/EmbeddingV1ActivityTest.java:12: error: cannot find symbol
@RunWith(FlutterTestRunner.class)
 ^
  symbol: class RunWith
/tmp/cirrus-ci-build/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/EmbeddingV1ActivityTest.java:16: error: cannot find symbol
  public ActivityTestRule<EmbeddingV1Activity> rule =
         ^
  symbol:   class ActivityTestRule
  location: class EmbeddingV1ActivityTest
/tmp/cirrus-ci-build/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/FlutterActivityTest.java:15: error: cannot find symbol
  @Rule
   ^
  symbol:   class Rule
  location: class FlutterActivityTest
/tmp/cirrus-ci-build/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/EmbeddingV1ActivityTest.java:15: error: cannot find symbol
  @Rule
   ^
  symbol:   class Rule
  location: class EmbeddingV1ActivityTest
/tmp/cirrus-ci-build/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/FlutterActivityTest.java:16: error: cannot find symbol
  public ActivityTestRule<FlutterActivity> rule = new ActivityTestRule<>(FlutterActivity.class);
                                                      ^
  symbol:   class ActivityTestRule
  location: class FlutterActivityTest
/tmp/cirrus-ci-build/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/EmbeddingV1ActivityTest.java:17: error: cannot find symbol
      new ActivityTestRule<>(EmbeddingV1Activity.class);
          ^
  symbol:   class ActivityTestRule
  location: class EmbeddingV1ActivityTest
Note: /tmp/cirrus-ci-build/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/EmbeddingV1Activity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
16 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 31s

Looks like maybe it's just some missing Gradle dependencies, and some legacy V1 references? I haven't dug into it yet; for now I'm going to just turn it off, but we should take a look at getting it running again.

(/cc @ditman, @blasten )

Activity

  1. added
    platform-androidAndroid applications specifically
    packageflutter/packages repository. See also p: labels.
    P1High-priority issues at the top of the work list
    on Sep 1, 2021
  2. ditman commented on Sep 1, 2021

    @ditman
    Member

    This is derived from the google_sign_in example, I'm sure it can be updated fairly easily to build on Android again. I'll take a look at this next.

  3. self-assigned this
    on Sep 1, 2021
  4. github-actions commented on Oct 7, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  5. locked as resolved and limited conversation to collaborators on Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listp: extension_google_sign_in_as_googleapis_authThe extension_google_sign_in_as_googleapis_auth pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specifically

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions