草庐IT

build-environment

全部标签

flutter - 在 Flutter 中完成 "build"函数时是否有任何回调告诉我?

我的屏幕上有一个listView。我已将Controller连接到它。我可以调用我的端点,接收响应,解析它并插入行。ListView应该自动滚动。确实如此,但不是以完美的方式。我总是落后。这是我的代码:@overrideWidgetbuild(BuildContextcontext){//Scrolltothemostrecentitemif(equationList.length>0){_toEnd();}returnnewScaffold(appBar:newAppBar(title:newText(widget.title),),body:EquList(equationList

Android studio gradle build 更新失败

我最近将androidstudio更新到了3.2版。当我尝试运行我的旧项目时,我在运行等级构建时收到了我的旧项目的以下消息:"TheAndroidGradlepluginsupportsonlyKotlinGradlepluginversion1.2.51andhigher.Project'4thtry'使用的是1.2.50版本。”如何纠正? 最佳答案 转到您的根Build.gradle并更新Kotlin。(Betteridea):添加最新版本:ext.kotlin_version='1.2.71'(或1.2.50以上)而不是1.2

android - Kotlin 编译 "ERROR: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher."但 build.gradle 中没有 kotlin_version?

我尝试克隆和构建这个项目,https://github.com/mitrejcevski/ui-testing,但在AndroidStudio中打开它时,出现以下构建错误:ERROR:TheAndroidGradlepluginsupportsonlyKotlinGradlepluginversion1.3.0andhigher.Thefollowingdependenciesdonotsatisfytherequiredversion:rootproject'ui-testing'->org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.21Af

android - IllegalAccessException : can not access a member of class com. android.build.gradle.tasks.ManifestProcessorTask

AndroidStudio一直告诉我构建失败。我没有使用Kotlin,我所有的代码都在JAVA中。仅当我想构建/运行项目时,我才会不断收到此错误。我总是需要删除.gradle文件夹并重新启动AndroidStudio才能让它再次工作。我觉得这不是IDE问题,因为我同时使用了IDE版本3.1和3.3。我还将Kotlin更新到了当前1.2.70的最新版本*Whatwentwrong:Aproblemoccurredconfiguringproject':app'.>Couldnotcreatetask':app:processProdDebugManifest'.>java.lang.Il

gradle - 如何将 ext.* 变量放入 build.gradle.kts 中的插件 block 中

我的构建文件如下所示:valnexusBaseUri:Stringbyextravalgradle_version:Stringbyextravalkotlin_version:Stringbyextrabuildscript{valnexusBaseUribyextra{"https://mynexusserver/nexus"}valgradle_versionbyextra{"4.1"}valkotlin_versionbyextra{"1.1.4-3"}valspringBoot_versionbyextra{"2.0.0.M3"}repositories{maven{url=

android - 目前不支持 Gradle 项目的自动库版本更新。请手动更新您的 build.gradle

我的building.gradle中有这个buildscript{ext.kotlin_version='1.1.2-4'ext.kotlin_version='1.1.2'repositories{jcenter()}dependencies{classpath'com.android.tools.build:gradle:2.3.3'classpath"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"}总是给我看这个OutdatedKotlinRuntimeYourversionofKotlinruntimein'

environment-variables - 如何在 Kotlin 中读取环境变量?

我想从我的Kotlin应用程序中的环境变量中获取某个值,但是我在corelibraries中找不到任何有关读取环境变量的信息文档。我希望它低于kotlin.system但真的没有那么多。 最佳答案 通过在kotlin中使用elvis操作符,很容易得到一个环境值(如果存在的话)或者一个默认值:varenvVar:String=System.getenv("varname")?:"default_value" 关于environment-variables-如何在Kotlin中读取环境变量?

gradle - 如何使用 kotlinscript DSL (build.gradle.kts) 通过 url 添加 maven 存储库

build.gradle.kts版本中的build.gradle中的以下代码片段的等价物是什么?repositories{mavenCentral()maven{url''}} 最佳答案 作为其他答案的补充,在#kotlin-dsl/256中快捷方法被添加到各种存储库方法中,以执行以下操作:repositories{mavenCentral()maven(url="")}根据问题,这是在KotlinDSL版本0.11.1中添加的。0.11.x版本包含在Gradle4.2release中.在使用Gradlewrapper时查看与构建一

android - build.gradle 文件中的 compileKotlin block 抛出错误 "Could not find method compileKotlin() for arguments [...]"

我正在尝试将Kotlin配置为在我的Android项目中使用Java1.8。我尝试在build.gradle文件的底部添加compileKotlinblock,但如果这样做会出现错误。发生的错误如下:Error:(38,0)CouldnotfindmethodcompileKotlin()forarguments[build_dvcqiof5pov8xt8flfud06cm3$_run_closure4@66047120]onproject':core'oftypeorg.gradle.api.Project.没有这个block,项目运行良好。我错过了什么?这是完整的build.gra

Android Studio : Gradle Refresh Failed - Could not find com. android.tools.build :gradle:2. 2.0-alpha6

我刚刚从git中下载了一个Android项目,每当我尝试打开它时,AndroidStudio都会给我以下错误;Error:Couldnotfindcom.android.tools.build:gradle:2.2.0-alpha6.Searchedinthefollowinglocations:https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.2.0-alpha6/gradle-2.2.0-alpha6.pomhttps://repo1.maven.org/maven2/com/android/tools/