-
Notifications
You must be signed in to change notification settings - Fork 29.5k
Closed
Labels
p: path_providerPlugin that provides resolved paths to some platform directoriesPlugin that provides resolved paths to some platform directoriespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyt: gradle"flutter build" and "flutter run" on Android"flutter build" and "flutter run" on Android
Description
Steps to Reproduce
- I was able to add path_provider library to my pubspec.yaml file and I used its functionalities in my code.
- When I tried to
flutter run, I got an gradle build error. - I found a warning message in the build.gradle file for path_provider library
This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.'
See https://goo.gl/CP92wY for more information on the problem and how to fix it.'
This warning prints for all Android build failures. The real root cause of the error may be unrelated.'
But I am not using androidx.
Logs
Gradle build error:
Output of flutter run
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':path_provider:lintClassPath'.
> Could not find intellij-core.jar (com.android.tools.external.com-intellij:intellij-core:26.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/intellij-core/26.3.0/intellij-core-26.3.0.jar
> Could not find kotlin-compiler.jar (com.android.tools.external.com-intellij:kotlin-compiler:26.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/kotlin-compiler/26.3.0/kotlin-compiler-26.3.0.jar
> Could not find uast.jar (com.android.tools.external.org-jetbrains:uast:26.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/external/org-jetbrains/uast/26.3.0/uast-26.3.0.jar
Output of flutter run --verbose
verbose
[ +35 ms] executing: [/home/sameer/dev/flutter/flutter_linux_v1.7.8_hotfix_4_stable/] git log -n 1 --pretty=format:%H
[ +42 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[ ] 20e59316b8b8474554b38493b8ca888794b0234a
[ ] executing: [/home/sameer/dev/flutter/flutter_linux_v1.7.8_hotfix_4_stable/] git describe --match v*.*.*
--first-parent --long --tags
[ +15 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] v1.7.8+hotfix.4-0-g20e59316b
[ +13 ms] executing: [/home/sameer/dev/flutter/flutter_linux_v1.7.8_hotfix_4_stable/] git rev-parse --abbrev-ref
--symbolic @{u}
[ +15 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/stable
[ ] executing: [/home/sameer/dev/flutter/flutter_linux_v1.7.8_hotfix_4_stable/] git ls-remote --get-url origin
[ +13 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +59 ms] executing: [/home/sameer/dev/flutter/flutter_linux_v1.7.8_hotfix_4_stable/] git rev-parse --abbrev-ref HEAD
[ +17 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] stable
[ +65 ms] executing: /home/sameer/Android/Sdk/platform-tools/adb devices -l
[ +13 ms] Exit code 0 from: /home/sameer/Android/Sdk/platform-tools/adb devices -l
[ ] List of devices attached
emulator-5554 device product:sdk_gphone_x86 model:Android_SDK_built_for_x86 device:generic_x86
transport_id:1
[ +25 ms] /home/sameer/Android/Sdk/platform-tools/adb -s emulator-5554 shell getprop
[ +100 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +8 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ +103 ms] Found plugin path_provider at
/home/sameer/dev/flutter/flutter_linux_v1.7.8_hotfix_4_stable/.pub-cache/hosted/pub.dartlang.org/path_provider-1.2.0/
[ +64 ms] Found plugin path_provider at
/home/sameer/dev/flutter/flutter_linux_v1.7.8_hotfix_4_stable/.pub-cache/hosted/pub.dartlang.org/path_provider-1.2.0/
[ +98 ms] ro.hardware = ranchu
[ +2 ms] Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling
software
rendering with "--enable-software-rendering".
[ +16 ms] Launching lib/main.dart on Android SDK built for x86 in debug mode...
[ +15 ms] Initializing gradle...
[ +24 ms] Using gradle from /home/sameer/workspace/mobile-apps/flutter/flutter challenge/flutter-weekly-challenge/Week
1/Sameer/todo/android/gradlew.
[ +96 ms] executing: /home/sameer/workspace/mobile-apps/flutter/flutter challenge/flutter-weekly-challenge/Week
1/Sameer/todo/android/gradlew -v
[ +888 ms]
------------------------------------------------------------
Gradle 4.10.2
------------------------------------------------------------
Build time: 2018-09-19 18:10:15 UTC
Revision: b4d8d5d170bb4ba516e88d7fe5647e2323d791dd
Kotlin DSL: 1.0-rc-6
Kotlin: 1.2.61
Groovy: 2.4.15
Ant: Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM: 1.8.0_152-release (JetBrains s.r.o 25.152-b01)
OS: Linux 5.0.0-25-generic amd64
[ +10 ms] Initializing gradle... (completed in 1.0s)
[ +1 ms] Resolving dependencies...
[ ] executing: [/home/sameer/workspace/mobile-apps/flutter/flutter challenge/flutter-weekly-challenge/Week
1/Sameer/todo/android/] /home/sameer/workspace/mobile-apps/flutter/flutter challenge/flutter-weekly-challenge/Week
1/Sameer/todo/android/gradlew app:properties
[+1427 ms]
> Configure project :app
WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with
'variant.getMergeAssetsProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the
command line to display a stack trace.
WARNING: API 'variantOutput.getProcessResources()' is obsolete and has been replaced with
'variantOutput.getProcessResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessResources(), use -Pandroid.debug.obsoleteApi=true
on the command line to display a stack trace.
> Task :app:properties
------------------------------------------------------------
Project :app
------------------------------------------------------------
INTERNAL__CHECKED_MINIMUM_PLUGIN_VERSIONS: true
_internalAndroidGradlePluginDependencyCheckerRegistered: true
allprojects: [project ':app']
android: com.android.build.gradle.internal.dsl.BaseAppModuleExtension_Decorated@36eb7ab3
android.enableJetifier: true
android.useAndroidX: true
ant: org.gradle.api.internal.project.DefaultAntBuilder@6f80ea5f
antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@58681f40
archivesBaseName: app
artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@20f8160b
asDynamicObject: DynamicObject for project ':app'
assemble: task ':app:assemble'
baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@4d2bce45
buildDir: /home/sameer/workspace/mobile-apps/flutter/flutter challenge/flutter-weekly-challenge/Week
1/Sameer/todo/build/app
buildFile: /home/sameer/workspace/mobile-apps/flutter/flutter challenge/flutter-weekly-challenge/Week
1/Sameer/todo/android/app/build.gradle
buildOutputs: BaseVariantOutput container
buildPath: :
buildScriptSource: org.gradle.groovy.scripts.TextResourceScriptSource@259117ad
buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@3d9b8e40
childProjects: {}
class: class org.gradle.api.internal.project.DefaultProject_Decorated
classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@5d338fb6
compileflutterBuildDebugArm: task ':app:compileflutterBuildDebugArm'
compileflutterBuildDebugArm64: task ':app:compileflutterBuildDebugArm64'
compileflutterBuildProfileArm: task ':app:compileflutterBuildProfileArm'
compileflutterBuildProfileArm64: task ':app:compileflutterBuildProfileArm64'
compileflutterBuildReleaseArm: task ':app:compileflutterBuildReleaseArm'
compileflutterBuildReleaseArm64: task ':app:compileflutterBuildReleaseArm64'
components: SoftwareComponentInternal set
configurationActions:
org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@4ef92bb3
configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@63f871be
configurations: configuration container
convention: org.gradle.api.internal.plugins.DefaultConvention@2f01a0f
copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug'
copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile'
copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease'
createMockableJar: task ':app:createMockableJar'
defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@43ff7bd8
defaultTasks: []
deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@44dc74a7
dependencies:
org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@64098803
dependencyLocking: org.gradle.internal.locking.DefaultDependencyLockingHandler_Decorated@662bd6ef
depth: 1
description: null
displayName: project ':app'
distsDir: /home/sameer/workspace/mobile-apps/flutter/flutter challenge/flutter-weekly-challenge/Week
1/Sameer/todo/build/app/distributions
distsDirName: distributions
docsDir: /home/sameer/workspace/mobile-apps/flutter/flutter challenge/flutter-weekly-challenge/Week
1/Sameer/todo/build/app/docs
docsDirName: docs
ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@5e325049
extensions: org.gradle.api.internal.plugins.DefaultConvention@2f01a0f
fileOperations: org.gradle.api.internal.file.DefaultFileOperations@79ec7e64
fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@510da8ca
flutter: FlutterExtension_Decorated@692980aa
gradle: build 'android'
group: android
identityPath: :app
inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@25d525de
java: org.gradle.api.plugins.internal.DefaultJavaPluginExtension_Decorated@3fd0605e
layout: org.gradle.api.internal.file.DefaultProjectLayout@327d496
libsDir: /home/sameer/workspace/mobile-apps/flutter/flutter challenge/flutter-weekly-challenge/Week
1/Sameer/todo/build/app/libs
libsDirName: libs
listenerBuildOperationDecorator:
org.gradle.configuration.internal.DefaultListenerBuildOperationDecorator@262e3888
logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@42d9403b
logging: org.gradle.internal.logging.services.DefaultLoggingManager@2a590246
mergeDebugAssets: task ':app:mergeDebugAssets'
mergeProfileAssets: task ':app:mergeProfileAssets'
mergeReleaseAssets: task ':app:mergeReleaseAssets'
modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@163745c3
modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@1e11aab8
module: org.gradle.api.internal.artifacts.ProjectBackedModule@61ef1360
name: app
normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@2b09b0f7
objects: org.gradle.api.internal.model.DefaultObjectFactory@7c342766
org.gradle.jvmargs: -Xmx1536M
packLibsflutterBuildDebug: task ':app:packLibsflutterBuildDebug'
packLibsflutterBuildProfile: task ':app:packLibsflutterBuildProfile'
packLibsflutterBuildRelease: task ':app:packLibsflutterBuildRelease'
parent: root project 'android'
parentIdentifier: root project 'android'
path: :app
pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@1e9d4194
plugins: [org.gradle.api.plugins.HelpTasksPlugin@32a806d9,
com.android.build.gradle.api.AndroidBasePlugin@54408673,
org.gradle.language.base.plugins.LifecycleBasePlugin@912948a,
org.gradle.api.plugins.BasePlugin@7d77e5dd, org.gradle.api.plugins.ReportingBasePlugin@f9baa64,
org.gradle.api.plugins.JavaBasePlugin@5fb8d6fa, com.android.build.gradle.AppPlugin@4293bf43,
FlutterPlugin@88e3c1]
processDebugResources: task ':app:processDebugResources'
processOperations: org.gradle.api.internal.file.DefaultFileOperations@79ec7e64
processProfileResources: task ':app:processProfileResources'
processReleaseResources: task ':app:processReleaseResources'
project: project ':app'
projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@5212a13e
projectDir: /home/sameer/workspace/mobile-apps/flutter/flutter challenge/flutter-weekly-challenge/Week
1/Sameer/todo/android/app
projectEvaluationBroadcaster: ProjectEvaluationListener broadcast
projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@4b04a280
projectPath: :app
projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@14b26504
properties: {...}
providers: org.gradle.api.internal.provider.DefaultProviderFactory@70d67522
reporting: org.gradle.api.reporting.ReportingExtension_Decorated@53630ab8
reportsDir: /home/sameer/workspace/mobile-apps/flutter/flutter challenge/flutter-weekly-challenge/Week
1/Sameer/todo/build/app/reports
repositories: repository container
resourceLoader: org.gradle.internal.resource.transfer.DefaultUriTextResourceLoader@14bf5abb
resources: org.gradle.api.internal.resources.DefaultResourceHandler@7ac1ea0e
rootDir: /home/sameer/workspace/mobile-apps/flutter/flutter challenge/flutter-weekly-challenge/Week
1/Sameer/todo/android
rootProject: root project 'android'
script: false
scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@7d5c3a17
scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@36a1c9ce
serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@58253723
services: ProjectScopeServices
sourceCompatibility: 1.8
sourceSets: SourceSet container
standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@2a590246
state: project state 'EXECUTED'
status: integration
subprojects: []
targetCompatibility: 1.8
tasks: task set
testReportDir: /home/sameer/workspace/mobile-apps/flutter/flutter
challenge/flutter-weekly-challenge/Week 1/Sameer/todo/build/app/reports/tests
testReportDirName: tests
testResultsDir: /home/sameer/workspace/mobile-apps/flutter/flutter
challenge/flutter-weekly-challenge/Week 1/Sameer/todo/build/app/test-results
testResultsDirName: test-results
version: unspecified
1 actionable task: 1 executed
[ +8 ms] executing: [/home/sameer/workspace/mobile-apps/flutter/flutter challenge/flutter-weekly-challenge/Week
1/Sameer/todo/android/] /home/sameer/workspace/mobile-apps/flutter/flutter challenge/flutter-weekly-challenge/Week
1/Sameer/todo/android/gradlew app:tasks --all --console=auto
[+1201 ms]
> Configure project :app
WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with
'variant.getMergeAssetsProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the
command line to display a stack trace.
WARNING: API 'variantOutput.getProcessResources()' is obsolete and has been replaced with
'variantOutput.getProcessResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessResources(), use -Pandroid.debug.obsoleteApi=true
on the command line to display a stack trace.
> Task :app:tasks
------------------------------------------------------------
All tasks runnable from project :app
------------------------------------------------------------
Android tasks
-------------
androidDependencies - Displays the Android dependencies of the project.
signingReport - Displays the signing info for the base and test modules
sourceSets - Prints out all the source sets defined in this project.
Build tasks
-----------
assemble - Assemble main outputs for all the variants.
assembleAndroidTest - Assembles all the Test applications.
build - Assembles and tests this project.
buildDependents - Assembles and tests this project and all projects that depend on it.
buildNeeded - Assembles and tests this project and all projects it depends on.
bundle - Assemble bundles for all the variants.
clean - Deletes the build directory.
cleanBuildCache - Deletes the build cache directory.
compileDebugAndroidTestSources
compileDebugSources
compileDebugUnitTestSources
compileProfileSources
compileProfileUnitTestSources
compileReleaseSources
compileReleaseUnitTestSources
Cleanup tasks
-------------
lintFix - Runs lint on all variants and applies any safe suggestions to the source code.
Help tasks
----------
buildEnvironment - Displays all buildscript dependencies declared in project ':app'.
components - Displays the components produced by project ':app'. [incubating]
dependencies - Displays all dependencies declared in project ':app'.
dependencyInsight - Displays the insight into a specific dependency in project ':app'.
dependentComponents - Displays the dependent components of components in project ':app'. [incubating]
help - Displays a help message.
model - Displays the configuration model of project ':app'. [incubating]
projects - Displays the sub-projects of project ':app'.
properties - Displays the properties of project ':app'.
tasks - Displays the tasks runnable from project ':app'.
Install tasks
-------------
installDebug - Installs the Debug build.
installDebugAndroidTest - Installs the android (on device) tests for the Debug build.
installProfile - Installs the Profile build.
installRelease - Installs the Release build.
uninstallAll - Uninstall all applications.
uninstallDebug - Uninstalls the Debug build.
uninstallDebugAndroidTest - Uninstalls the android (on device) tests for the Debug build.
uninstallProfile - Uninstalls the Profile build.
uninstallRelease - Uninstalls the Release build.
Verification tasks
------------------
check - Runs all checks.
connectedAndroidTest - Installs and runs instrumentation tests for all flavors on connected devices.
connectedCheck - Runs all device checks on currently connected devices.
connectedDebugAndroidTest - Installs and runs the tests for debug on connected devices.
deviceAndroidTest - Installs and runs instrumentation tests using all Device Providers.
deviceCheck - Runs all device checks using Device Providers and Test Servers.
lint - Runs lint on all variants.
lintDebug - Runs lint on the Debug build.
lintProfile - Runs lint on the Profile build.
lintRelease - Runs lint on the Release build.
lintVitalRelease - Runs lint on just the fatal issues in the release build.
test - Run unit tests for all variants.
testDebugUnitTest - Run unit tests for the debug build.
testProfileUnitTest - Run unit tests for the profile build.
testReleaseUnitTest - Run unit tests for the release build.
Other tasks
-----------
assembleDebug - Assembles main output for variant debug
assembleDebugAndroidTest - Assembles main output for variant debugAndroidTest
assembleDebugUnitTest - Assembles main output for variant debugUnitTest
assembleProfile - Assembles main output for variant profile
assembleProfileUnitTest - Assembles main output for variant profileUnitTest
assembleRelease - Assembles main output for variant release
assembleReleaseUnitTest - Assembles main output for variant releaseUnitTest
buildDebugPreBundle
buildProfilePreBundle
buildReleasePreBundle
bundleDebug - Assembles bundle for variant debug
bundleDebugAndroidTestClasses
bundleDebugAndroidTestResources
bundleDebugClasses
bundleDebugResources
bundleDebugUnitTestClasses
bundleProfile - Assembles bundle for variant profile
bundleProfileClasses
bundleProfileResources
bundleProfileUnitTestClasses
bundleRelease - Assembles bundle for variant release
bundleReleaseClasses
bundleReleaseResources
bundleReleaseUnitTestClasses
checkDebugManifest
checkProfileManifest
checkReleaseManifest
compileDebugAidl
compileDebugAndroidTestAidl
compileDebugAndroidTestJavaWithJavac
compileDebugAndroidTestNdk
compileDebugAndroidTestRenderscript
compileDebugAndroidTestShaders
compileDebugJavaWithJavac
compileDebugNdk
compileDebugRenderscript
compileDebugShaders
compileDebugUnitTestJavaWithJavac
compileflutterBuildDebugArm
compileflutterBuildDebugArm64
compileflutterBuildProfileArm
compileflutterBuildProfileArm64
compileflutterBuildReleaseArm
compileflutterBuildReleaseArm64
compileLint
compileProfileAidl
compileProfileJavaWithJavac
compileProfileNdk
compileProfileRenderscript
compileProfileShaders
compileProfileUnitTestJavaWithJavac
compileReleaseAidl
compileReleaseJavaWithJavac
compileReleaseNdk
compileReleaseRenderscript
compileReleaseShaders
compileReleaseUnitTestJavaWithJavac
consumeConfigAttr
copyFlutterAssetsDebug
copyFlutterAssetsProfile
copyFlutterAssetsRelease
createDebugCompatibleScreenManifests
createMockableJar
createProfileCompatibleScreenManifests
createReleaseCompatibleScreenManifests
extractApksForDebug
extractApksForProfile
extractApksForRelease
extractProguardFiles
generateDebugAndroidTestAssets
generateDebugAndroidTestBuildConfig
generateDebugAndroidTestResources
generateDebugAndroidTestResValues
generateDebugAndroidTestSources
generateDebugAssets
generateDebugBuildConfig
generateDebugFeatureMetadata
generateDebugFeatureTransitiveDeps
generateDebugResources
generateDebugResValues
generateDebugSources
generateDebugUnitTestAssets
generateDebugUnitTestResources
generateDebugUnitTestSources
generateProfileAssets
generateProfileBuildConfig
generateProfileFeatureMetadata
generateProfileFeatureTransitiveDeps
generateProfileResources
generateProfileResValues
generateProfileSources
generateProfileUnitTestAssets
generateProfileUnitTestResources
generateProfileUnitTestSources
generateReleaseAssets
generateReleaseBuildConfig
generateReleaseFeatureMetadata
generateReleaseFeatureTransitiveDeps
generateReleaseResources
generateReleaseResValues
generateReleaseSources
generateReleaseUnitTestAssets
generateReleaseUnitTestResources
generateReleaseUnitTestSources
javaPreCompileDebug
javaPreCompileDebugAndroidTest
javaPreCompileDebugUnitTest
javaPreCompileProfile
javaPreCompileProfileUnitTest
javaPreCompileRelease
javaPreCompileReleaseUnitTest
mainApkListPersistenceDebug
mainApkListPersistenceDebugAndroidTest
mainApkListPersistenceProfile
mainApkListPersistenceRelease
makeApkFromBundleForDebug
makeApkFromBundleForProfile
makeApkFromBundleForRelease
mergeDebugAndroidTestAssets
mergeDebugAndroidTestJniLibFolders
mergeDebugAndroidTestResources
mergeDebugAndroidTestShaders
mergeDebugAssets
mergeDebugJniLibFolders
mergeDebugResources
mergeDebugShaders
mergeProfileAssets
mergeProfileJniLibFolders
mergeProfileResources
mergeProfileShaders
mergeReleaseAssets
mergeReleaseJniLibFolders
mergeReleaseResources
mergeReleaseShaders
packageDebug
packageDebugAndroidTest
packageDebugBundle
packageDebugUniversalApk
packageProfile
packageProfileBundle
packageProfileUniversalApk
packageRelease
packageReleaseBundle
packageReleaseUniversalApk
packLibsflutterBuildDebug
packLibsflutterBuildProfile
packLibsflutterBuildRelease
preBuild
preDebugAndroidTestBuild
preDebugBuild
preDebugUnitTestBuild
prepareLintJar
preProfileBuild
preProfileUnitTestBuild
preReleaseBuild
preReleaseUnitTestBuild
processDebugAndroidTestJavaRes
processDebugAndroidTestManifest
processDebugAndroidTestResources
processDebugJavaRes
processDebugManifest
processDebugResources
processDebugUnitTestJavaRes
processProfileJavaRes
processProfileManifest
processProfileResources
processProfileUnitTestJavaRes
processReleaseJavaRes
processReleaseManifest
processReleaseResources
processReleaseUnitTestJavaRes
reportBuildArtifactsDebug
reportBuildArtifactsProfile
reportBuildArtifactsRelease
reportSourceSetTransformAndroidTest
reportSourceSetTransformAndroidTestDebug
reportSourceSetTransformDebug
reportSourceSetTransformMain
reportSourceSetTransformProfile
reportSourceSetTransformRelease
reportSourceSetTransformTest
reportSourceSetTransformTestDebug
reportSourceSetTransformTestProfile
reportSourceSetTransformTestRelease
resolveConfigAttr
signingConfigWriterDebug
signingConfigWriterDebugAndroidTest
signingConfigWriterProfile
signingConfigWriterRelease
transformClassesWithDexBuilderForDebug
transformClassesWithDexBuilderForDebugAndroidTest
transformClassesWithDexBuilderForProfile
transformClassesWithDexBuilderForRelease
transformDexArchiveWithDexMergerForDebug
transformDexArchiveWithDexMergerForDebugAndroidTest
transformDexArchiveWithDexMergerForProfile
transformDexArchiveWithDexMergerForRelease
transformDexArchiveWithExternalLibsDexMergerForDebug
transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest
transformDexArchiveWithExternalLibsDexMergerForProfile
transformDexArchiveWithExternalLibsDexMergerForRelease
transformNativeLibsWithMergeJniLibsForDebug
transformNativeLibsWithMergeJniLibsForDebugAndroidTest
transformNativeLibsWithMergeJniLibsForProfile
transformNativeLibsWithMergeJniLibsForRelease
transformResourcesWithMergeJavaResForDebug
transformResourcesWithMergeJavaResForDebugAndroidTest
transformResourcesWithMergeJavaResForDebugUnitTest
transformResourcesWithMergeJavaResForProfile
transformResourcesWithMergeJavaResForProfileUnitTest
transformResourcesWithMergeJavaResForRelease
transformResourcesWithMergeJavaResForReleaseUnitTest
validateSigningDebug
validateSigningDebugAndroidTest
validateSigningProfile
validateSigningRelease
writeDebugApplicationId
writeDebugModuleMetadata
writeProfileApplicationId
writeProfileModuleMetadata
writeReleaseApplicationId
writeReleaseModuleMetadata
Rules
-----
Pattern: clean<TaskName>: Cleans the output files of a task.
Pattern: build<ConfigurationName>: Assembles the artifacts of a configuration.
Pattern: upload<ConfigurationName>: Assembles and uploads the artifacts belonging to a configuration.
1 actionable task: 1 executed
[ +14 ms] Resolving dependencies... (completed in 2.7s)
[ +71 ms] executing: /home/sameer/Android/Sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[ +39 ms] Exit code 0 from: /home/sameer/Android/Sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[ ] --------- beginning of main
09-04 13:56:01.076 I/DeviceStateChecker( 2101): DeviceStateChecker cancelled
[ +4 ms] executing: /home/sameer/Android/Sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time
[ +8 ms] executing: /home/sameer/Android/Sdk/platform-tools/adb version
[ +38 ms] Android Debug Bridge version 1.0.40
Version 28.0.2-5303910
Installed as /home/sameer/Android/Sdk/platform-tools/adb
[ +5 ms] executing: /home/sameer/Android/Sdk/platform-tools/adb start-server
[ +18 ms] Building APK
[ +62 ms] Running Gradle task 'assembleDebug'...
[ +4 ms] executing: [/home/sameer/workspace/mobile-apps/flutter/flutter challenge/flutter-weekly-challenge/Week
1/Sameer/todo/android/] /home/sameer/workspace/mobile-apps/flutter/flutter challenge/flutter-weekly-challenge/Week
1/Sameer/todo/android/gradlew -Pverbose=true -Ptarget=/home/sameer/workspace/mobile-apps/flutter/flutter
challenge/flutter-weekly-challenge/Week 1/Sameer/todo/lib/main.dart -Ptrack-widget-creation=false
-Pfilesystem-scheme=org-dartlang-root -Ptarget-platform=android-x86 assembleDebug
[+2528 ms] > Configure project :app
[ ] WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with
'variant.getMergeAssetsProvider()'.
[ +1 ms] It will be removed at the end of 2019.
[ ] For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
[ ] To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the command line
to display a stack trace.
[ ] WARNING: API 'variantOutput.getProcessResources()' is obsolete and has been replaced with
'variantOutput.getProcessResourcesProvider()'.
[ ] It will be removed at the end of 2019.
[ +1 ms] For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
[ ] To determine what is calling variantOutput.getProcessResources(), use -Pandroid.debug.obsoleteApi=true on the
command line to display a stack trace.
[+2057 ms] > Task :app:compileflutterBuildDebugX86
[ ] [ +28 ms] executing: [/home/sameer/dev/flutter/flutter_linux_v1.7.8_hotfix_4_stable/] git log -n 1
--pretty=format:%H
[ ] [ +32 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[ ] [ ] 20e59316b8b8474554b38493b8ca888794b0234a
[ ] [ ] executing: [/home/sameer/dev/flutter/flutter_linux_v1.7.8_hotfix_4_stable/] git describe --match
v*.*.* --first-parent --long --tags
[ ] [ +7 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] [ ] v1.7.8+hotfix.4-0-g20e59316b
[ ] [ +17 ms] executing: [/home/sameer/dev/flutter/flutter_linux_v1.7.8_hotfix_4_stable/] git rev-parse
--abbrev-ref --symbolic @{u}
[ ] [ +7 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] [ ] origin/stable
[ ] [ ] executing: [/home/sameer/dev/flutter/flutter_linux_v1.7.8_hotfix_4_stable/] git ls-remote --get-url
origin
[ ] [ +10 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] [ ] https://github.com/flutter/flutter.git
[ ] [ +40 ms] executing: [/home/sameer/dev/flutter/flutter_linux_v1.7.8_hotfix_4_stable/] git rev-parse
--abbrev-ref HEAD
[ ] [ +10 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] [ ] stable
[ ] [ +51 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ +5 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] [ +1 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ +2 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ +146 ms] Found plugin path_provider at
/home/sameer/dev/flutter/flutter_linux_v1.7.8_hotfix_4_stable/.pub-cache/hosted/pub.dartlang.org/path_provider-1.2.0/
[ ] [ +100 ms] Found plugin path_provider at
/home/sameer/dev/flutter/flutter_linux_v1.7.8_hotfix_4_stable/.pub-cache/hosted/pub.dartlang.org/path_provider-1.2.0/
[ ] [ +303 ms] Skipping kernel compilation. Fingerprint match.
[ ] [ +101 ms] Building bundle
[ ] [ +2 ms] Writing asset files to /home/sameer/workspace/mobile-apps/flutter/flutter
challenge/flutter-weekly-challenge/Week 1/Sameer/todo/build/app/intermediates/flutter/debug/android-x86/flutter_assets
[ +3 ms] [ +114 ms] Wrote /home/sameer/workspace/mobile-apps/flutter/flutter challenge/flutter-weekly-challenge/Week
1/Sameer/todo/build/app/intermediates/flutter/debug/android-x86/flutter_assets
[ ] [ +16 ms] "flutter bundle" took 832ms.
[ ] [ ] "flutter bundle" took 832ms.
[ +84 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[ ] > Task :app:preBuild UP-TO-DATE
[ ] > Task :path_provider:preBuild UP-TO-DATE
[ ] > Task :path_provider:preDebugBuild UP-TO-DATE
[ +3 ms] > Task :path_provider:checkDebugManifest UP-TO-DATE
[ ] > Task :path_provider:processDebugManifest UP-TO-DATE
[ ] > Task :app:preDebugBuild UP-TO-DATE
[ ] > Task :path_provider:compileDebugAidl NO-SOURCE
[ ] > Task :app:compileDebugAidl NO-SOURCE
[ ] > Task :path_provider:packageDebugRenderscript NO-SOURCE
[ ] > Task :app:compileDebugRenderscript UP-TO-DATE
[ ] > Task :app:checkDebugManifest UP-TO-DATE
[ ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[ ] > Task :app:prepareLintJar UP-TO-DATE
[ ] > Task :app:generateDebugSources UP-TO-DATE
[ ] > Task :path_provider:compileDebugRenderscript UP-TO-DATE
[ ] > Task :path_provider:generateDebugBuildConfig UP-TO-DATE
[ ] > Task :path_provider:generateDebugResValues UP-TO-DATE
[ ] > Task :path_provider:generateDebugResources UP-TO-DATE
[ ] > Task :path_provider:prepareLintJar UP-TO-DATE
[ ] > Task :path_provider:generateDebugSources UP-TO-DATE
[ ] > Transform aapt2-linux.jar (com.android.tools.build:aapt2:3.3.0-5013011) with Aapt2Extractor
[ ] > Task :path_provider:javaPreCompileDebug UP-TO-DATE
[ +5 ms] > Task :path_provider:packageDebugResources UP-TO-DATE
[ ] > Task :path_provider:generateDebugRFile UP-TO-DATE
[ +87 ms] > Task :path_provider:compileDebugJavaWithJavac UP-TO-DATE
[ ] > Task :path_provider:processDebugJavaRes NO-SOURCE
[ ] > Task :path_provider:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
[ ] > Task :app:javaPreCompileDebug UP-TO-DATE
[ ] > Task :app:cleanMergeDebugAssets
[ ] > Task :app:mergeDebugShaders UP-TO-DATE
[ ] > Task :app:compileDebugShaders UP-TO-DATE
[ ] > Task :app:generateDebugAssets UP-TO-DATE
[ ] > Task :path_provider:mergeDebugShaders UP-TO-DATE
[ ] > Task :path_provider:compileDebugShaders UP-TO-DATE
[ ] > Task :path_provider:generateDebugAssets UP-TO-DATE
[ ] > Task :path_provider:packageDebugAssets UP-TO-DATE
[ ] > Task :app:mergeDebugAssets
[ +195 ms] > Task :app:copyFlutterAssetsDebug
[ ] > Task :app:mainApkListPersistenceDebug UP-TO-DATE
[ ] > Task :app:generateDebugResValues UP-TO-DATE
[ ] > Task :app:generateDebugResources UP-TO-DATE
[ +5 ms] > Task :app:mergeDebugResources UP-TO-DATE
[ ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[ ] > Task :app:processDebugManifest UP-TO-DATE
[ +93 ms] > Task :app:processDebugResources UP-TO-DATE
[ +1 ms] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[ ] > Task :app:compileDebugNdk NO-SOURCE
[ ] > Task :app:compileDebugSources UP-TO-DATE
[ ] > Task :app:validateSigningDebug UP-TO-DATE
[ ] > Task :app:signingConfigWriterDebug UP-TO-DATE
[ +102 ms] > Task :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[ ] > Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug UP-TO-DATE
[ ] > Task :app:transformDexArchiveWithDexMergerForDebug UP-TO-DATE
[ ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[ ] > Task :path_provider:compileDebugNdk NO-SOURCE
[ ] > Task :path_provider:mergeDebugJniLibFolders UP-TO-DATE
[ ] > Task :path_provider:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[ ] > Task :path_provider:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[ ] > Task :app:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[ ] > Task :app:processDebugJavaRes NO-SOURCE
[ ] > Task :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[ ] > Task :app:packageDebug UP-TO-DATE
[ ] > Task :app:assembleDebug UP-TO-DATE
[ ] > Task :path_provider:extractDebugAnnotations FAILED
[ ] 47 actionable tasks: 5 executed, 42 up-to-date
[ +2 ms] *********************************************************
[ ] WARNING: This version of path_provider will break your Android build if it or its dependencies aren't compatible
with AndroidX.
[ +12 ms] See https://goo.gl/CP92wY for more information on the problem and how to fix it.
[ ] This warning prints for all Android build failures. The real root cause of the error may be unrelated.
[ ] *********************************************************
[ +1 ms] FAILURE: Build failed with an exception.
[ +6 ms] * What went wrong:
[ ] Could not resolve all files for configuration ':path_provider:lintClassPath'.
[ ] > Could not find intellij-core.jar (com.android.tools.external.com-intellij:intellij-core:26.3.0).
[ ] Searched in the following locations:
[ ]
https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/intellij-core/26.3.0/intellij-core-26.3.0.j
ar
[ ] > Could not find kotlin-compiler.jar (com.android.tools.external.com-intellij:kotlin-compiler:26.3.0).
[ ] Searched in the following locations:
[ ]
https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/kotlin-compiler/26.3.0/kotlin-compiler-26.3
.0.jar
[ ] > Could not find uast.jar (com.android.tools.external.org-jetbrains:uast:26.3.0).
[ ] Searched in the following locations:
[ ]
https://dl.google.com/dl/android/maven2/com/android/tools/external/org-jetbrains/uast/26.3.0/uast-26.3.0.jar
[ ] * 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 4s
[ +360 ms] Running Gradle task 'assembleDebug'... (completed in 5.6s)
[ +4 ms] "flutter run" took 10,031ms.
[ ] "flutter run" took 10,031ms.
Gradle task assembleDebug failed with exit code 1
#0 throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1 _buildGradleProjectV2 (package:flutter_tools/src/android/gradle.dart:507:5)
<asynchronous suspension>
#2 buildGradleProject (package:flutter_tools/src/android/gradle.dart:346:14)
<asynchronous suspension>
#3 buildApk (package:flutter_tools/src/android/apk.dart:34:9)
<asynchronous suspension>
#4 AndroidDevice.startApp (package:flutter_tools/src/android/android_device.dart:426:13)
<asynchronous suspension>
#5 FlutterDevice.runHot (package:flutter_tools/src/resident_runner.dart:371:54)
<asynchronous suspension>
#6 HotRunner.run (package:flutter_tools/src/run_hot.dart:251:39)
<asynchronous suspension>
#7 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:469:37)
<asynchronous suspension>
#8 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:478:18)
<asynchronous suspension>
#9 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:383:33)
<asynchronous suspension>
#10 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:29)
<asynchronous suspension>
#11 _rootRun (dart:async/zone.dart:1124:13)
#12 _CustomZone.run (dart:async/zone.dart:1021:19)
#13 _runZoned (dart:async/zone.dart:1516:10)
#14 runZoned (dart:async/zone.dart:1463:12)
#15 AppContext.run (package:flutter_tools/src/base/context.dart:152:18)
<asynchronous suspension>
#16 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:375:20)
#17 CommandRunner.runCommand (package:args/command_runner.dart:197:27)
<asynchronous suspension>
#18 FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:396:21)
<asynchronous suspension>
#19 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:29)
<asynchronous suspension>
#20 _rootRun (dart:async/zone.dart:1124:13)
#21 _CustomZone.run (dart:async/zone.dart:1021:19)
#22 _runZoned (dart:async/zone.dart:1516:10)
#23 runZoned (dart:async/zone.dart:1463:12)
#24 AppContext.run (package:flutter_tools/src/base/context.dart:152:18)
<asynchronous suspension>
#25 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:356:19)
<asynchronous suspension>
#26 CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:25)
#27 new Future.sync (dart:async/future.dart:224:31)
#28 CommandRunner.run (package:args/command_runner.dart:112:14)
#29 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:242:18)
#30 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:22)
<asynchronous suspension>
#31 _rootRun (dart:async/zone.dart:1124:13)
#32 _CustomZone.run (dart:async/zone.dart:1021:19)
#33 _runZoned (dart:async/zone.dart:1516:10)
#34 runZoned (dart:async/zone.dart:1500:12)
#35 run.<anonymous closure> (package:flutter_tools/runner.dart:60:18)
<asynchronous suspension>
#36 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:29)
<asynchronous suspension>
#37 _rootRun (dart:async/zone.dart:1124:13)
#38 _CustomZone.run (dart:async/zone.dart:1021:19)
#39 _runZoned (dart:async/zone.dart:1516:10)
#40 runZoned (dart:async/zone.dart:1463:12)
#41 AppContext.run (package:flutter_tools/src/base/context.dart:152:18)
<asynchronous suspension>
#42 runInContext (package:flutter_tools/src/context_runner.dart:56:24)
<asynchronous suspension>
#43 run (package:flutter_tools/runner.dart:51:10)
#44 main (package:flutter_tools/executable.dart:62:9)
<asynchronous suspension>
#45 main (file:///b/s/w/ir/k/archive/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
#46 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#47 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
Flutter Doctor
[✓] Flutter (Channel stable, v1.7.8+hotfix.4, on Linux, locale en_US.UTF-8)
• Flutter version 1.7.8+hotfix.4 at /home/sameer/dev/flutter/flutter_linux_v1.7.8_hotfix_4_stable
• Framework revision 20e59316b8 (7 weeks ago), 2019-07-18 20:04:33 -0700
• Engine revision fee001c93f
• Dart version 2.4.0
[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /home/sameer/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /home/sameer/android-studio-ide-182.5314842-linux/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
✗ Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed
instructions.
[✓] Android Studio (version 3.3)
• Android Studio at /home/sameer/android-studio-ide-182.5314842-linux/android-studio
• Flutter plugin version 34.0.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
[✓] VS Code (version 1.36.1)
• VS Code at /usr/share/code
• Flutter extension version 3.4.1
[✓] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)
! Doctor found issues in 1 category.
Metadata
Metadata
Assignees
Labels
p: path_providerPlugin that provides resolved paths to some platform directoriesPlugin that provides resolved paths to some platform directoriespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyt: gradle"flutter build" and "flutter run" on Android"flutter build" and "flutter run" on Android