magnumrocha
01/28/2021, 6:37 PMFAILURE: Build failed with an exception.
* What went wrong:
lateinit property variantName has not been initialized
John O'Reilly
01/28/2021, 6:38 PMmagnumrocha
01/28/2021, 6:40 PMJohn O'Reilly
01/28/2021, 6:41 PMmagnumrocha
01/28/2021, 6:42 PMJohn O'Reilly
01/28/2021, 6:42 PMmagnumrocha
01/28/2021, 7:49 PM19:43:55: Executing task 'build'...
Executing tasks: [build] in project /Users/[my_user]/MyApplication/app
FAILURE: Build failed with an exception.
* What went wrong:
lateinit property variantName has not been initialized
Android Studio Arctic Fox Canary 5 (2020.3.1.5)
Android Gradle Plugin 7.0.0-alpha05
Gradle 6.8Sean Keane
01/29/2021, 12:00 AMdarkmoon_uk
01/29/2021, 5:55 AM--stacktrace
shows that the error is coming from Android Lint. I tried to disable Lint, but it's still being queried, apparently during Gradle's setup of its build logging/analytics.Sean Keane
01/29/2021, 12:17 PMmagnumrocha
01/29/2021, 12:23 PMSean Keane
01/29/2021, 12:26 PM//ROOT GRADLE
ext.android_gradle = '7.0.0-alpha05'
//GRADLE WRAPPER PROPERTIES
distributionUrl=<https://services.gradle.org/distributions/gradle-6.8-bin.zip>
This works for me. Just updated a test project. Zero issues.magnumrocha
01/29/2021, 12:37 PMSean Keane
01/29/2021, 12:37 PMmagnumrocha
01/29/2021, 12:37 PM#Thu Jan 28 19:43:08 WET 2021
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Sean Keane
01/29/2021, 12:38 PMTask apppreBuild UP-TO-DATE
Task apppreDebugBuild UP-TO-DATE
Task appcompileDebugAidl NO-SOURCE
Task appcompileDebugRenderscript NO-SOURCE
Task appgenerateDebugBuildConfig
Task appgenerateDebugResValues
Task appgenerateDebugResources
Task appcheckDebugAarMetadata
Task appcreateDebugCompatibleScreenManifests
Task appextractDeepLinksDebug
Task appprocessDebugMainManifest
Task appprocessDebugManifest
Task appmergeDebugNativeDebugMetadata NO-SOURCE
Task appjavaPreCompileDebug
Task appmergeDebugShaders
Task appcompileDebugShaders NO-SOURCE
Task appgenerateDebugAssets UP-TO-DATE
Task appmergeDebugAssets
Task appcompressDebugAssets
Task appprocessDebugJavaRes NO-SOURCE
Task appmergeDebugResources
Task appcheckDebugDuplicateClasses
Task appdesugarDebugFileDependencies
Task appmergeDebugJniLibFolders
Task appmergeLibDexDebug
Task appmergeDebugNativeLibs NO-SOURCE
Task appstripDebugDebugSymbols NO-SOURCE
Task appvalidateSigningDebug
Task appwriteDebugAppMetadata
Task appwriteDebugSigningConfigVersions
Task appprocessDebugManifestForPackage
Task appprocessDebugResources
Task appmergeExtDexDebug
Task appcompileDebugKotlin
Task appcompileDebugJavaWithJavac
Task appcompileDebugSources
Task appdexBuilderDebug
Task appmergeProjectDexDebug
Task appmergeDebugJavaResource
Task apppackageDebug
Task appassembleDebugDeprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.8/userguide/command_line_interface.html#sec:command_line_warnings BUILD SUCCESSFUL in 13s 28 actionable tasks: 28 executed Build Analyzer results available
magnumrocha
01/29/2021, 12:40 PMSean Keane
01/29/2021, 12:43 PMmagnumrocha
01/29/2021, 12:43 PMSean Keane
01/29/2021, 12:45 PMmagnumrocha
01/29/2021, 12:45 PMdarkmoon_uk
01/29/2021, 12:46 PM.gradle
folder and got the same (bugged) result so keen to hear how this goes...Sean Keane
01/29/2021, 12:47 PMmagnumrocha
01/29/2021, 12:48 PMSean Keane
01/29/2021, 12:49 PM12:49:50: Executing task 'compileLintChecks'...
Executing tasks: [compileLintChecks] in project /Users/sean/StudioProjects/guineaGram/app
> Configure project :app
Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (<https://goo.gle/kotlin-android-extensions-deprecation>) to start working with View Binding (<https://developer.android.com/topic/libraries/view-binding>) and the 'kotlin-parcelize' plugin.
WARNING: API 'BaseVariant.getApplicationIdTextResource' is obsolete and has been replaced with 'VariantProperties.applicationId'.
It will be removed in version 7.0 of the Android Gradle plugin.
For more information, see TBD.
To determine what is calling BaseVariant.getApplicationIdTextResource, use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
> Task :app:compileLintChecks UP-TO-DATE
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See <https://docs.gradle.org/6.8/userguide/command_line_interface.html#sec:command_line_warnings>
BUILD SUCCESSFUL in 150ms
12:49:51: Task execution finished 'compileLintChecks'.
lateinit property variantName has not been initialized
* 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.
darkmoon_uk
01/29/2021, 12:52 PMSean Keane
01/29/2021, 12:54 PMdarkmoon_uk
01/29/2021, 12:55 PMSean Keane
01/29/2021, 12:55 PMdarkmoon_uk
01/29/2021, 1:04 PMSean Keane
01/29/2021, 1:06 PMmagnumrocha
01/29/2021, 1:08 PMdarkmoon_uk
01/29/2021, 1:08 PM.gradle
.idea
should be irrelevant to a command line buildmagnumrocha
01/29/2021, 1:09 PMSean Keane
01/29/2021, 1:10 PMdarkmoon_uk
01/29/2021, 1:11 PMmagnumrocha
01/29/2021, 1:11 PMSean Keane
01/29/2021, 1:13 PMdarkmoon_uk
01/29/2021, 1:15 PMSean Keane
01/29/2021, 1:15 PMdarkmoon_uk
01/29/2021, 1:15 PMSean Keane
01/29/2021, 1:16 PMdarkmoon_uk
01/29/2021, 1:17 PMSean Keane
01/29/2021, 1:18 PMdarkmoon_uk
01/29/2021, 1:19 PMcheck
Sean Keane
01/29/2021, 1:20 PMdarkmoon_uk
01/29/2021, 1:20 PMalpha05
Sean Keane
01/29/2021, 1:20 PMdarkmoon_uk
01/29/2021, 1:22 PMSean Keane
01/29/2021, 1:22 PMdarkmoon_uk
01/29/2021, 1:31 PMmagnumrocha
01/29/2021, 1:56 PMIan Arbuckle
01/31/2021, 2:37 PMUmit AYDIN
02/03/2021, 12:03 AMdarkmoon_uk
02/03/2021, 9:14 AMmagnumrocha
02/03/2021, 9:50 AM7.0.0-alpha06
and 7.0.0-alpha07
together….