Closed JAicewizard closed 4 years ago
Wrapp your CustomPainter in a Container() and set width and height size. And try if it work.
That does work, as in the size is no longer (0,0), but its still not the same size as the full canvas. I can draw outside the given Size and calling canvas.drawPaint, for example, also fils the area outside the given Size
Why is this a stack overflow question? Its not even a question. The documentation says that the given Size is the size of the canvas, but it is not.
Hi @JAicewizard
does this code represent the issue you are describing?
What do you mean with the size of the canvas?
I imagine it more as a "cartesian plane" rather than a Container
thank you
I do not have the container around the custom painter, but directly inside the scaffold. caanvas.DrawPaint should fill the canvas, canvas.DrawPaint covers the entire screen (meaning the canvas stretches the entire screen) while the Size passed into the draw function gives size (0,0).
I just realized that DrawPaint could be painting outside the canvas boundaries, but it according to the documentation it just fills the canvas and doesn't make it bigger.
Edit: Maybe if its more like a cartesian plane the DrawPaint function just covers the entire screen? That could be a reason, that's not clear from the documentation.
If you're worried about painting outside the bounds, you can wrap your Container
in a ClipRect
. Or you can just use the size that is given and make sure not to draw outside of those bounds.
If you add en empty Container as a child to CustomPaint, then width and height is calculated properly with widget tree.
child: CustomPaint(
child: Container(),
painter: MyPainter(),
),
Hi @JAicewizard does @fpv999 solution solves the issue for you? thank you
I can no longer reproduce this issue in 1.12.13, and downgrading to 1.9 fails to build due to gradle issues. For me this issue is solved. I can imagine it wouldn't have solved the issue but I cant test it.
This will do the trick.
CustomPaint(
foregroundPainter: CustomPainter(),
child: Container(),
);
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.
Target Platform: Android Target OS version/browser: 9 Devices: Oneplus 5t
Logs
``` [ +11 ms] executing: [/opt/flutter/] git log -n 1 --pretty=format:%H [ +19 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] 68587a0916366e9512a78df22c44163d041dd5f3 [ ] executing: [/opt/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +6 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v1.9.1+hotfix.6-0-g68587a091 [ +4 ms] executing: [/opt/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +6 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/stable [ ] executing: [/opt/flutter/] git ls-remote --get-url origin [ +4 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ +25 ms] executing: [/opt/flutter/] git rev-parse --abbrev-ref HEAD [ +6 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] stable [ +43 ms] executing: /home/jaap/Android/Sdk/platform-tools/adb devices -l [ +7 ms] Exit code 0 from: /home/jaap/Android/Sdk/platform-tools/adb devices -l [ ] List of devices attached 192.168.2.48:5555 device product:OnePlus5T model:ONEPLUS_A5010 device:OnePlus5T transport_id:1 [ +13 ms] /home/jaap/Android/Sdk/platform-tools/adb -s 192.168.2.48:5555 shell getprop [ +185 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ +51 ms] ro.hardware = qcom [ +26 ms] Launching lib/main.dart on ONEPLUS A5010 in debug mode... [ +5 ms] Initializing gradle... [ +9 ms] Using gradle from /home/jaap/Projects/clock_flutter/android/gradlew. [ +43 ms] executing: /home/jaap/Projects/clock_flutter/android/gradlew -v [ +351 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_202-release (JetBrains s.r.o 25.202-b49-5587405) OS: Linux 5.4.5-arch1-1 amd64 [ +5 ms] Initializing gradle... (completed in 0.4s) [ ] Resolving dependencies... [ ] executing: [/home/jaap/Projects/clock_flutter/android/] /home/jaap/Projects/clock_flutter/android/gradlew app:properties [ +362 ms] > Task :app:properties ------------------------------------------------------------ Project :app ------------------------------------------------------------ INTERNAL__CHECKED_MINIMUM_PLUGIN_VERSIONS: true allprojects: [project ':app'] android: com.android.build.gradle.internal.dsl.BaseAppModuleExtension_Decorated@3f929575 androidDependencies: task ':app:androidDependencies' ant: org.gradle.api.internal.project.DefaultAntBuilder@44b40789 antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@370ca7c1 archivesBaseName: app artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@f04e970 asDynamicObject: DynamicObject for project ':app' assemble: task ':app:assemble' assembleAndroidTest: task ':app:assembleAndroidTest' assembleDebug: task ':app:assembleDebug' assembleDebugAndroidTest: task ':app:assembleDebugAndroidTest' assembleDebugUnitTest: task ':app:assembleDebugUnitTest' assembleProfile: task ':app:assembleProfile' assembleProfileUnitTest: task ':app:assembleProfileUnitTest' assembleRelease: task ':app:assembleRelease' assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest' baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@2496fcd8 buildDebugPreBundle: task ':app:buildDebugPreBundle' buildDir: /home/jaap/Projects/clock_flutter/build/app buildFile: /home/jaap/Projects/clock_flutter/android/app/build.gradle buildOutputs: BaseVariantOutput container buildPath: : buildProfilePreBundle: task ':app:buildProfilePreBundle' buildReleasePreBundle: task ':app:buildReleasePreBundle' buildScriptSource: org.gradle.groovy.scripts.TextResourceScriptSource@40fa3f8c buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@129abafd bundle: task ':app:bundle' bundleDebug: task ':app:bundleDebug' bundleDebugAndroidTestResources: task ':app:bundleDebugAndroidTestResources' bundleDebugResources: task ':app:bundleDebugResources' bundleProfile: task ':app:bundleProfile' bundleProfileResources: task ':app:bundleProfileResources' bundleRelease: task ':app:bundleRelease' bundleReleaseResources: task ':app:bundleReleaseResources' check: task ':app:check' checkDebugAndroidTestClasspath: task ':app:checkDebugAndroidTestClasspath' checkDebugClasspath: task ':app:checkDebugClasspath' checkDebugLibraries: task ':app:checkDebugLibraries' checkDebugManifest: task ':app:checkDebugManifest' checkProfileClasspath: task ':app:checkProfileClasspath' checkProfileLibraries: task ':app:checkProfileLibraries' checkProfileManifest: task ':app:checkProfileManifest' checkReleaseClasspath: task ':app:checkReleaseClasspath' checkReleaseLibraries: task ':app:checkReleaseLibraries' checkReleaseManifest: task ':app:checkReleaseManifest' childProjects: {} class: class org.gradle.api.internal.project.DefaultProject_Decorated classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@3a7d8eb7 cleanBuildCache: task ':app:cleanBuildCache' compileDebugAidl: task ':app:compileDebugAidl' compileDebugAndroidTestAidl: task ':app:compileDebugAndroidTestAidl' compileDebugAndroidTestJavaWithJavac: task ':app:compileDebugAndroidTestJavaWithJavac' compileDebugAndroidTestKotlin: task ':app:compileDebugAndroidTestKotlin' compileDebugAndroidTestNdk: task ':app:compileDebugAndroidTestNdk' compileDebugAndroidTestRenderscript: task ':app:compileDebugAndroidTestRenderscript' compileDebugAndroidTestShaders: task ':app:compileDebugAndroidTestShaders' compileDebugAndroidTestSources: task ':app:compileDebugAndroidTestSources' compileDebugJavaWithJavac: task ':app:compileDebugJavaWithJavac' compileDebugKotlin: task ':app:compileDebugKotlin' compileDebugNdk: task ':app:compileDebugNdk' compileDebugRenderscript: task ':app:compileDebugRenderscript' compileDebugShaders: task ':app:compileDebugShaders' compileDebugSources: task ':app:compileDebugSources' compileDebugUnitTestJavaWithJavac: task ':app:compileDebugUnitTestJavaWithJavac' compileDebugUnitTestKotlin: task ':app:compileDebugUnitTestKotlin' compileDebugUnitTestSources: task ':app:compileDebugUnitTestSources' compileFlutterBuildDebugArm: task ':app:compileFlutterBuildDebugArm' compileFlutterBuildDebugArm64: task ':app:compileFlutterBuildDebugArm64' compileFlutterBuildProfileArm: task ':app:compileFlutterBuildProfileArm' compileFlutterBuildProfileArm64: task ':app:compileFlutterBuildProfileArm64' compileFlutterBuildReleaseArm: task ':app:compileFlutterBuildReleaseArm' compileFlutterBuildReleaseArm64: task ':app:compileFlutterBuildReleaseArm64' compileLint: task ':app:compileLint' compileProfileAidl: task ':app:compileProfileAidl' compileProfileJavaWithJavac: task ':app:compileProfileJavaWithJavac' compileProfileKotlin: task ':app:compileProfileKotlin' compileProfileNdk: task ':app:compileProfileNdk' compileProfileRenderscript: task ':app:compileProfileRenderscript' compileProfileShaders: task ':app:compileProfileShaders' compileProfileSources: task ':app:compileProfileSources' compileProfileUnitTestJavaWithJavac: task ':app:compileProfileUnitTestJavaWithJavac' compileProfileUnitTestKotlin: task ':app:compileProfileUnitTestKotlin' compileProfileUnitTestSources: task ':app:compileProfileUnitTestSources' compileReleaseAidl: task ':app:compileReleaseAidl' compileReleaseJavaWithJavac: task ':app:compileReleaseJavaWithJavac' compileReleaseKotlin: task ':app:compileReleaseKotlin' compileReleaseNdk: task ':app:compileReleaseNdk' compileReleaseRenderscript: task ':app:compileReleaseRenderscript' compileReleaseShaders: task ':app:compileReleaseShaders' compileReleaseSources: task ':app:compileReleaseSources' compileReleaseUnitTestJavaWithJavac: task ':app:compileReleaseUnitTestJavaWithJavac' compileReleaseUnitTestKotlin: task ':app:compileReleaseUnitTestKotlin' compileReleaseUnitTestSources: task ':app:compileReleaseUnitTestSources' components: SoftwareComponentInternal set configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@299ec51c configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@388989fc configurations: configuration container connectedAndroidTest: task ':app:connectedAndroidTest' connectedCheck: task ':app:connectedCheck' connectedDebugAndroidTest: task ':app:connectedDebugAndroidTest' consumeConfigAttr: task ':app:consumeConfigAttr' convention: org.gradle.api.internal.plugins.DefaultConvention@7f838142 copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug' copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile' copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease' createDebugCompatibleScreenManifests: task ':app:createDebugCompatibleScreenManifests' createMockableJar: task ':app:createMockableJar' createProfileCompatibleScreenManifests: task ':app:createProfileCompatibleScreenManifests' createReleaseCompatibleScreenManifests: task ':app:createReleaseCompatibleScreenManifests' defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@295da033 defaultTasks: [] deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@76b43621 dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@2869762 dependencyLocking: org.gradle.internal.locking.DefaultDependencyLockingHandler_Decorated@61ec9fe1 depth: 1 description: null deviceAndroidTest: task ':app:deviceAndroidTest' deviceCheck: task ':app:deviceCheck' displayName: project ':app' distsDir: /home/jaap/Projects/clock_flutter/build/app/distributions distsDirName: distributions docsDir: /home/jaap/Projects/clock_flutter/build/app/docs docsDirName: docs ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@2574f7d7 extensions: org.gradle.api.internal.plugins.DefaultConvention@7f838142 extractApksForDebug: task ':app:extractApksForDebug' extractApksForProfile: task ':app:extractApksForProfile' extractApksForRelease: task ':app:extractApksForRelease' extractProguardFiles: task ':app:extractProguardFiles' fileOperations: org.gradle.api.internal.file.DefaultFileOperations@72a6d866 fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@442d6cd7 flutter: FlutterExtension_Decorated@413bf024 generateDebugAndroidTestAssets: task ':app:generateDebugAndroidTestAssets' generateDebugAndroidTestBuildConfig: task ':app:generateDebugAndroidTestBuildConfig' generateDebugAndroidTestResValues: task ':app:generateDebugAndroidTestResValues' generateDebugAndroidTestResources: task ':app:generateDebugAndroidTestResources' generateDebugAndroidTestSources: task ':app:generateDebugAndroidTestSources' generateDebugAssets: task ':app:generateDebugAssets' generateDebugBuildConfig: task ':app:generateDebugBuildConfig' generateDebugFeatureMetadata: task ':app:generateDebugFeatureMetadata' generateDebugFeatureTransitiveDeps: task ':app:generateDebugFeatureTransitiveDeps' generateDebugResValues: task ':app:generateDebugResValues' generateDebugResources: task ':app:generateDebugResources' generateDebugSources: task ':app:generateDebugSources' generateDebugUnitTestAssets: task ':app:generateDebugUnitTestAssets' generateDebugUnitTestResources: task ':app:generateDebugUnitTestResources' generateDebugUnitTestSources: task ':app:generateDebugUnitTestSources' generateProfileAssets: task ':app:generateProfileAssets' generateProfileBuildConfig: task ':app:generateProfileBuildConfig' generateProfileFeatureMetadata: task ':app:generateProfileFeatureMetadata' generateProfileFeatureTransitiveDeps: task ':app:generateProfileFeatureTransitiveDeps' generateProfileResValues: task ':app:generateProfileResValues' generateProfileResources: task ':app:generateProfileResources' generateProfileSources: task ':app:generateProfileSources' generateProfileUnitTestAssets: task ':app:generateProfileUnitTestAssets' generateProfileUnitTestResources: task ':app:generateProfileUnitTestResources' generateProfileUnitTestSources: task ':app:generateProfileUnitTestSources' generateReleaseAssets: task ':app:generateReleaseAssets' generateReleaseBuildConfig: task ':app:generateReleaseBuildConfig' generateReleaseFeatureMetadata: task ':app:generateReleaseFeatureMetadata' generateReleaseFeatureTransitiveDeps: task ':app:generateReleaseFeatureTransitiveDeps' generateReleaseResValues: task ':app:generateReleaseResValues' generateReleaseResources: task ':app:generateReleaseResources' generateReleaseSources: task ':app:generateReleaseSources' generateReleaseUnitTestAssets: task ':app:generateReleaseUnitTestAssets' generateReleaseUnitTestResources: task ':app:generateReleaseUnitTestResources' generateReleaseUnitTestSources: task ':app:generateReleaseUnitTestSources' gradle: build 'android' group: android identityPath: :app inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@43f36d9b installDebug: task ':app:installDebug' installDebugAndroidTest: task ':app:installDebugAndroidTest' installProfile: task ':app:installProfile' installRelease: task ':app:installRelease' java: org.gradle.api.plugins.internal.DefaultJavaPluginExtension_Decorated@7d2f86b javaPreCompileDebug: task ':app:javaPreCompileDebug' javaPreCompileDebugAndroidTest: task ':app:javaPreCompileDebugAndroidTest' javaPreCompileDebugUnitTest: task ':app:javaPreCompileDebugUnitTest' javaPreCompileProfile: task ':app:javaPreCompileProfile' javaPreCompileProfileUnitTest: task ':app:javaPreCompileProfileUnitTest' javaPreCompileRelease: task ':app:javaPreCompileRelease' javaPreCompileReleaseUnitTest: task ':app:javaPreCompileReleaseUnitTest' kotlin: org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension_Decorated@28367792 kotlin_version: 1.2.71 layout: org.gradle.api.internal.file.DefaultProjectLayout@36921860 libsDir: /home/jaap/Projects/clock_flutter/build/app/libs libsDirName: libs lint: task ':app:lint' lintDebug: task ':app:lintDebug' lintFix: task ':app:lintFix' lintProfile: task ':app:lintProfile' lintRelease: task ':app:lintRelease' lintVitalRelease: task ':app:lintVitalRelease' listenerBuildOperationDecorator: org.gradle.configuration.internal.DefaultListenerBuildOperationDecorator@6e55349c logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@7b9e2b15 logging: org.gradle.internal.logging.services.DefaultLoggingManager@7e54889d mainApkListPersistenceDebug: task ':app:mainApkListPersistenceDebug' mainApkListPersistenceDebugAndroidTest: task ':app:mainApkListPersistenceDebugAndroidTest' mainApkListPersistenceProfile: task ':app:mainApkListPersistenceProfile' mainApkListPersistenceRelease: task ':app:mainApkListPersistenceRelease' makeApkFromBundleForDebug: task ':app:makeApkFromBundleForDebug' makeApkFromBundleForProfile: task ':app:makeApkFromBundleForProfile' makeApkFromBundleForRelease: task ':app:makeApkFromBundleForRelease' mergeDebugAndroidTestAssets: task ':app:mergeDebugAndroidTestAssets' mergeDebugAndroidTestJniLibFolders: task ':app:mergeDebugAndroidTestJniLibFolders' mergeDebugAndroidTestResources: task ':app:mergeDebugAndroidTestResources' mergeDebugAndroidTestShaders: task ':app:mergeDebugAndroidTestShaders' mergeDebugAssets: task ':app:mergeDebugAssets' mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders' mergeDebugResources: task ':app:mergeDebugResources' mergeDebugShaders: task ':app:mergeDebugShaders' mergeProfileAssets: task ':app:mergeProfileAssets' mergeProfileJniLibFolders: task ':app:mergeProfileJniLibFolders' mergeProfileResources: task ':app:mergeProfileResources' mergeProfileShaders: task ':app:mergeProfileShaders' mergeReleaseAssets: task ':app:mergeReleaseAssets' mergeReleaseJniLibFolders: task ':app:mergeReleaseJniLibFolders' mergeReleaseResources: task ':app:mergeReleaseResources' mergeReleaseShaders: task ':app:mergeReleaseShaders' modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@6545ea22 modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@40dd87b module: org.gradle.api.internal.artifacts.ProjectBackedModule@2919d358 name: app normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@43b2bff2 objects: org.gradle.api.internal.model.DefaultObjectFactory@48492cc org.gradle.jvmargs: -Xmx1536M packLibsflutterBuildDebug: task ':app:packLibsflutterBuildDebug' packLibsflutterBuildProfile: task ':app:packLibsflutterBuildProfile' packLibsflutterBuildRelease: task ':app:packLibsflutterBuildRelease' packageAppClassesDebug: task ':app:packageAppClassesDebug' packageAppClassesDebugAndroidTest: task ':app:packageAppClassesDebugAndroidTest' packageAppClassesDebugUnitTest: task ':app:packageAppClassesDebugUnitTest' packageAppClassesProfile: task ':app:packageAppClassesProfile' packageAppClassesProfileUnitTest: task ':app:packageAppClassesProfileUnitTest' packageAppClassesRelease: task ':app:packageAppClassesRelease' packageAppClassesReleaseUnitTest: task ':app:packageAppClassesReleaseUnitTest' packageDebug: task ':app:packageDebug' packageDebugAndroidTest: task ':app:packageDebugAndroidTest' packageDebugBundle: task ':app:packageDebugBundle' packageDebugUniversalApk: task ':app:packageDebugUniversalApk' packageProfile: task ':app:packageProfile' packageProfileBundle: task ':app:packageProfileBundle' packageProfileUniversalApk: task ':app:packageProfileUniversalApk' packageRelease: task ':app:packageRelease' packageReleaseBundle: task ':app:packageReleaseBundle' packageReleaseUniversalApk: task ':app:packageReleaseUniversalApk' parent: root project 'android' parentIdentifier: root project 'android' path: :app pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@5e4ef2a1 plugins: [org.gradle.api.plugins.HelpTasksPlugin@149017b0, com.android.build.gradle.api.AndroidBasePlugin@420b67ff, org.gradle.language.base.plugins.LifecycleBasePlugin@62b98f80, org.gradle.api.plugins.BasePlugin@4b4bb28c, org.gradle.api.plugins.ReportingBasePlugin@5f7211c2, org.gradle.api.plugins.JavaBasePlugin@465fa14c, com.android.build.gradle.AppPlugin@68b4f388, org.jetbrains.kotlin.gradle.plugin.KotlinAndroidPluginWrapper@7efde3c0, FlutterPlugin@314e11dc] preBuild: task ':app:preBuild' preDebugAndroidTestBuild: task ':app:preDebugAndroidTestBuild' preDebugBuild: task ':app:preDebugBuild' preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild' preProfileBuild: task ':app:preProfileBuild' preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild' preReleaseBuild: task ':app:preReleaseBuild' preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild' prepareLintJar: task ':app:prepareLintJar' processDebugAndroidTestJavaRes: task ':app:processDebugAndroidTestJavaRes' processDebugAndroidTestManifest: task ':app:processDebugAndroidTestManifest' processDebugAndroidTestResources: task ':app:processDebugAndroidTestResources' processDebugJavaRes: task ':app:processDebugJavaRes' processDebugManifest: task ':app:processDebugManifest' processDebugResources: task ':app:processDebugResources' processDebugUnitTestJavaRes: task ':app:processDebugUnitTestJavaRes' processOperations: org.gradle.api.internal.file.DefaultFileOperations@72a6d866 processProfileJavaRes: task ':app:processProfileJavaRes' processProfileManifest: task ':app:processProfileManifest' processProfileResources: task ':app:processProfileResources' processProfileUnitTestJavaRes: task ':app:processProfileUnitTestJavaRes' processReleaseJavaRes: task ':app:processReleaseJavaRes' processReleaseManifest: task ':app:processReleaseManifest' processReleaseResources: task ':app:processReleaseResources' processReleaseUnitTestJavaRes: task ':app:processReleaseUnitTestJavaRes' project: project ':app' projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@a208378 projectDir: /home/jaap/Projects/clock_flutter/android/app projectEvaluationBroadcaster: ProjectEvaluationListener broadcast projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@45471907 projectPath: :app projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@5435118c properties: {...} providers: org.gradle.api.internal.provider.DefaultProviderFactory@7cb5a79f reportBuildArtifactsDebug: task ':app:reportBuildArtifactsDebug' reportBuildArtifactsProfile: task ':app:reportBuildArtifactsProfile' reportBuildArtifactsRelease: task ':app:reportBuildArtifactsRelease' reportSourceSetTransformAndroidTest: task ':app:reportSourceSetTransformAndroidTest' reportSourceSetTransformAndroidTestDebug: task ':app:reportSourceSetTransformAndroidTestDebug' reportSourceSetTransformDebug: task ':app:reportSourceSetTransformDebug' reportSourceSetTransformMain: task ':app:reportSourceSetTransformMain' reportSourceSetTransformProfile: task ':app:reportSourceSetTransformProfile' reportSourceSetTransformRelease: task ':app:reportSourceSetTransformRelease' reportSourceSetTransformTest: task ':app:reportSourceSetTransformTest' reportSourceSetTransformTestDebug: task ':app:reportSourceSetTransformTestDebug' reportSourceSetTransformTestProfile: task ':app:reportSourceSetTransformTestProfile' reportSourceSetTransformTestRelease: task ':app:reportSourceSetTransformTestRelease' reporting: org.gradle.api.reporting.ReportingExtension_Decorated@15b43a27 reportsDir: /home/jaap/Projects/clock_flutter/build/app/reports repositories: repository container resolveConfigAttr: task ':app:resolveConfigAttr' resourceLoader: org.gradle.internal.resource.transfer.DefaultUriTextResourceLoader@1b8150aa resources: org.gradle.api.internal.resources.DefaultResourceHandler@6673edfc rootDir: /home/jaap/Projects/clock_flutter/android rootProject: root project 'android' script: false scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@1ab639cf scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@2ee74dbc serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@3f725cca services: ProjectScopeServices signingReport: task ':app:signingReport' sourceCompatibility: 1.8 sourceSets: SourceSet container splitsDiscoveryTaskDebug: task ':app:splitsDiscoveryTaskDebug' splitsDiscoveryTaskProfile: task ':app:splitsDiscoveryTaskProfile' splitsDiscoveryTaskRelease: task ':app:splitsDiscoveryTaskRelease' standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@7e54889d state: project state 'EXECUTED' status: integration subprojects: [] targetCompatibility: 1.8 tasks: task set test: task ':app:test' testDebugUnitTest: task ':app:testDebugUnitTest' testProfileUnitTest: task ':app:testProfileUnitTest' testReleaseUnitTest: task ':app:testReleaseUnitTest' testReportDir: /home/jaap/Projects/clock_flutter/build/app/reports/tests testReportDirName: tests testResultsDir: /home/jaap/Projects/clock_flutter/build/app/test-results testResultsDirName: test-results transformClassesWithDexBuilderForDebug: task ':app:transformClassesWithDexBuilderForDebug' transformClassesWithDexBuilderForDebugAndroidTest: task ':app:transformClassesWithDexBuilderForDebugAndroidTest' transformClassesWithDexBuilderForProfile: task ':app:transformClassesWithDexBuilderForProfile' transformClassesWithDexBuilderForRelease: task ':app:transformClassesWithDexBuilderForRelease' transformDexArchiveWithDexMergerForDebug: task ':app:transformDexArchiveWithDexMergerForDebug' transformDexArchiveWithDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithDexMergerForDebugAndroidTest' transformDexArchiveWithDexMergerForProfile: task ':app:transformDexArchiveWithDexMergerForProfile' transformDexArchiveWithDexMergerForRelease: task ':app:transformDexArchiveWithDexMergerForRelease' transformDexArchiveWithExternalLibsDexMergerForDebug: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug' transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest' transformDexArchiveWithExternalLibsDexMergerForProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForProfile' transformDexArchiveWithExternalLibsDexMergerForRelease: task ':app:transformDexArchiveWithExternalLibsDexMergerForRelease' transformNativeLibsWithMergeJniLibsForDebug: task ':app:transformNativeLibsWithMergeJniLibsForDebug' transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task ':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest' transformNativeLibsWithMergeJniLibsForProfile: task ':app:transformNativeLibsWithMergeJniLibsForProfile' transformNativeLibsWithMergeJniLibsForRelease: task ':app:transformNativeLibsWithMergeJniLibsForRelease' transformNativeLibsWithStripDebugSymbolForDebug: task ':app:transformNativeLibsWithStripDebugSymbolForDebug' transformNativeLibsWithStripDebugSymbolForProfile: task ':app:transformNativeLibsWithStripDebugSymbolForProfile' transformNativeLibsWithStripDebugSymbolForRelease: task ':app:transformNativeLibsWithStripDebugSymbolForRelease' transformResourcesWithMergeJavaResForDebug: task ':app:transformResourcesWithMergeJavaResForDebug' transformResourcesWithMergeJavaResForDebugAndroidTest: task ':app:transformResourcesWithMergeJavaResForDebugAndroidTest' transformResourcesWithMergeJavaResForDebugUnitTest: task ':app:transformResourcesWithMergeJavaResForDebugUnitTest' transformResourcesWithMergeJavaResForProfile: task ':app:transformResourcesWithMergeJavaResForProfile' transformResourcesWithMergeJavaResForProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForProfileUnitTest' transformResourcesWithMergeJavaResForRelease: task ':app:transformResourcesWithMergeJavaResForRelease' transformResourcesWithMergeJavaResForReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForReleaseUnitTest' uninstallAll: task ':app:uninstallAll' uninstallDebug: task ':app:uninstallDebug' uninstallDebugAndroidTest: task ':app:uninstallDebugAndroidTest' uninstallProfile: task ':app:uninstallProfile' uninstallRelease: task ':app:uninstallRelease' validateSigningDebug: task ':app:validateSigningDebug' validateSigningDebugAndroidTest: task ':app:validateSigningDebugAndroidTest' validateSigningProfile: task ':app:validateSigningProfile' validateSigningRelease: task ':app:validateSigningRelease' version: unspecified writeDebugApplicationId: task ':app:writeDebugApplicationId' writeProfileApplicationId: task ':app:writeProfileApplicationId' writeReleaseApplicationId: task ':app:writeReleaseApplicationId' 1 actionable task: 1 executed [ +4 ms] executing: [/home/jaap/Projects/clock_flutter/android/] /home/jaap/Projects/clock_flutter/android/gradlew app:tasks --all --console=auto [ +358 ms] > 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 each variant. sourceSets - Prints out all the source sets defined in this project. Build tasks ----------- assemble - Assembles all variants of all applications and secondary packages. assembleAndroidTest - Assembles all the Test applications. assembleDebug - Assembles all Debug builds. assembleProfile - Assembles all Profile builds. assembleRelease - Assembles all Release builds. 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. bundleDebug - Creates all Debug bundles. bundleProfile - Creates all Profile bundles. bundleRelease - Creates all Release bundles. 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 ----------- assembleDebugAndroidTest assembleDebugUnitTest assembleProfileUnitTest assembleReleaseUnitTest buildDebugPreBundle buildProfilePreBundle buildReleasePreBundle bundle bundleDebugAndroidTestResources bundleDebugResources bundleProfileResources bundleReleaseResources checkDebugAndroidTestClasspath checkDebugClasspath checkDebugLibraries checkDebugManifest checkProfileClasspath checkProfileLibraries checkProfileManifest checkReleaseClasspath checkReleaseLibraries checkReleaseManifest compileDebugAidl compileDebugAndroidTestAidl compileDebugAndroidTestJavaWithJavac compileDebugAndroidTestKotlin - Compiles the debugAndroidTest kotlin. compileDebugAndroidTestNdk compileDebugAndroidTestRenderscript compileDebugAndroidTestShaders compileDebugJavaWithJavac compileDebugKotlin - Compiles the debug kotlin. compileDebugNdk compileDebugRenderscript compileDebugShaders compileDebugUnitTestJavaWithJavac compileDebugUnitTestKotlin - Compiles the debugUnitTest kotlin. compileFlutterBuildDebugArm compileFlutterBuildDebugArm64 compileFlutterBuildProfileArm compileFlutterBuildProfileArm64 compileFlutterBuildReleaseArm compileFlutterBuildReleaseArm64 compileLint compileProfileAidl compileProfileJavaWithJavac compileProfileKotlin - Compiles the profile kotlin. compileProfileNdk compileProfileRenderscript compileProfileShaders compileProfileUnitTestJavaWithJavac compileProfileUnitTestKotlin - Compiles the profileUnitTest kotlin. compileReleaseAidl compileReleaseJavaWithJavac compileReleaseKotlin - Compiles the release kotlin. compileReleaseNdk compileReleaseRenderscript compileReleaseShaders compileReleaseUnitTestJavaWithJavac compileReleaseUnitTestKotlin - Compiles the releaseUnitTest kotlin. 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 packageAppClassesDebug packageAppClassesDebugAndroidTest packageAppClassesDebugUnitTest packageAppClassesProfile packageAppClassesProfileUnitTest packageAppClassesRelease packageAppClassesReleaseUnitTest 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 splitsDiscoveryTaskDebug splitsDiscoveryTaskProfile splitsDiscoveryTaskRelease transformClassesWithDexBuilderForDebug transformClassesWithDexBuilderForDebugAndroidTest transformClassesWithDexBuilderForProfile transformClassesWithDexBuilderForRelease transformDexArchiveWithDexMergerForDebug transformDexArchiveWithDexMergerForDebugAndroidTest transformDexArchiveWithDexMergerForProfile transformDexArchiveWithDexMergerForRelease transformDexArchiveWithExternalLibsDexMergerForDebug transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest transformDexArchiveWithExternalLibsDexMergerForProfile transformDexArchiveWithExternalLibsDexMergerForRelease transformNativeLibsWithMergeJniLibsForDebug transformNativeLibsWithMergeJniLibsForDebugAndroidTest transformNativeLibsWithMergeJniLibsForProfile transformNativeLibsWithMergeJniLibsForRelease transformNativeLibsWithStripDebugSymbolForDebug transformNativeLibsWithStripDebugSymbolForProfile transformNativeLibsWithStripDebugSymbolForRelease transformResourcesWithMergeJavaResForDebug transformResourcesWithMergeJavaResForDebugAndroidTest transformResourcesWithMergeJavaResForDebugUnitTest transformResourcesWithMergeJavaResForProfile transformResourcesWithMergeJavaResForProfileUnitTest transformResourcesWithMergeJavaResForRelease transformResourcesWithMergeJavaResForReleaseUnitTest validateSigningDebug validateSigningDebugAndroidTest validateSigningProfile validateSigningRelease writeDebugApplicationId writeProfileApplicationId writeReleaseApplicationId Rules ----- Pattern: clean`flutter doctor -v`
``` [ā] Flutter (Channel stable, v1.9.1+hotfix.6, on Linux, locale en_US.UTF-8) ā¢ Flutter version 1.9.1+hotfix.6 at /opt/flutter ā¢ Framework revision 68587a0916 (3 months ago), 2019-09-13 19:46:58 -0700 ā¢ Engine revision b863200c37 ā¢ Dart version 2.5.0 [!] Android toolchain - develop for Android devices (Android SDK version 28.0.3) ā¢ Android SDK at /home/jaap/Android/Sdk ā¢ Android NDK location not configured (optional; useful for native profiling support) ā¢ Platform android-28, build-tools 28.0.3 ā¢ Java binary at: /opt/android-studio/jre/bin/java ā¢ Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [!] Android Studio (version 3.5) ā¢ Android Studio at /opt/android-studio ā Flutter plugin not installed; this adds Flutter specific functionality. ā Dart plugin not installed; this adds Dart specific functionality. ā¢ Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405) [ā] Connected device (1 available) ā¢ ONEPLUS A5010 ā¢ 192.168.2.48:5555 ā¢ android-arm64 ā¢ Android 9 (API 28) ! Doctor found issues in 2 categories. ```