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

':auth0_flutter:testDebugUnitTest'. Failing on Android gradle clean build #416

Open
6 tasks done
arc4randall opened this issue Mar 6, 2024 · 1 comment
Open
6 tasks done

Comments

@arc4randall
Copy link

Checklist

Description

  • What went wrong:
    Execution failed for task ':auth0_flutter:testDebugUnitTest'.

There were failing tests. See the report at: file:///home/runner/work/MyApp/MyApp/build/auth0_flutter/reports/tests/testDebugUnitTest/index.html

Reproduction

  1. Create a Flutter Project

  2. Install auth0_flutter: ^1.5.0

  3. Add manifestPlaceholders += [auth0Domain: auth0Domain, auth0Scheme: auth0Scheme, appAuthRedirectScheme: appAuthRedirectScheme] in android/app/build.gradle

  4. Add `

             <category android:name="android.intent.category.DEFAULT" />
             <category android:name="android.intent.category.BROWSABLE" />
    
             <!-- This line uses the placeholder defined in your build.gradle -->
             <data android:scheme="${appAuthRedirectScheme}" />
         </intent-filter>` to AndroidManifest.xml
    
  5. Run gradlew clean build

Additional context

"com.android.tools.build:gradle:8.3.0"
minSdkVersion 22
targetSdkVersion 34

auth0_flutter version

1.5.0

Flutter version

3.19.2

Platform

Android

Platform version(s)

No response

@arc4randall
Copy link
Author

I believe this is caused because shared_preferences_android is a transitive dependency and this is failing on shared_preferences_android:lintDebug. The only way I am able to get my gradlew clean build to pass is to use these flags: ./gradlew clean build -x lint -x test

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