草庐IT

multiple-versions

全部标签

ios - flutter IOS : CocoaPods could not find compatible versions for pod "simple_permissions":

我是Flutter的新手,并在Flutter中开发Permission演示。我使用了simple_permission插件,这个插件在android中工作,但在ios中它给了我以下错误:CocoaPodscouldnotfindcompatibleversionsforpod"simple_permissions":Insnapshot(Podfile.lock):simple_permissions(from`.symlinks/plugins/simple_permissions/ios`)InPodfile:simple_permissions(from`.symlinks/pl

mongodb - mongorestore 时出错 - 发现断言 : 17370 Restoring users and roles is only supported for clusters with auth schema versions 1 or 3,:5

我正在尝试恢复使用mongodump创建的文件夹,并且我正在使用mongorestore。但是有一个错误:断言:17370恢复用户和角色仅支持具有身份验证架构版本1或3的集群,发现:5如何解决此错误并成功恢复? 最佳答案 我能够使用--db参数一次恢复单个数据库。 关于mongodb-mongorestore时出错-发现断言:17370Restoringusersandrolesisonlysupportedforclusterswithauthschemaversions1or3,:5

mongodb - mongorestore 时出错 - 发现断言 : 17370 Restoring users and roles is only supported for clusters with auth schema versions 1 or 3,:5

我正在尝试恢复使用mongodump创建的文件夹,并且我正在使用mongorestore。但是有一个错误:断言:17370恢复用户和角色仅支持具有身份验证架构版本1或3的集群,发现:5如何解决此错误并成功恢复? 最佳答案 我能够使用--db参数一次恢复单个数据库。 关于mongodb-mongorestore时出错-发现断言:17370Restoringusersandrolesisonlysupportedforclusterswithauthschemaversions1or3,:5

dart - flutter 错误 : The current Flutter SDK version is 2. 1.0-dev.0.0.flutter-be6309690f

我刚刚升级了我的flutter,升级后我无法在我的AndroidStudio上运行任何flutter项目。我收到此错误消息。ThecurrentDartSDKversionis2.1.0-dev.0.0.flutter-be6309690f.Becausebuddydependsonflutter_built_redux0.4.5whichrequiresSDKversion>=1.19.0如何降级Dart或如何解决此问题,我在mac上运行androidstudio。我已经尝试通过更改flutterchanneldev和master但它没有任何区别。flutter医生-v结果:[✓]F

ios - Flutter - SWIFT_VERSION 必须设置为支持的值

尝试库simple_permission,修复了pod错误,但出现了这个问题,不知道如何继续。BuildSettings里面没有设置swift版本,我试过加了,还是不行。Launchinglib/main.dartoniPhoneXindebugmode...Skippingcompilation.Fingerprintmatch.RunningXcodeclean...StartingXcodebuild...Xcodebuilddone.FailedtobuildiOSappErroroutputfromXcodebuild:↳**BUILDFAILED**Xcode'soutpu

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

multiple-inheritance - Kotlin 中的部分类委托(delegate)

如何在Kotlin中部分委托(delegate)方法/字段?具体来说:这里我试图从接口(interface)TraitA继承类User并在包装器中实现字段marked:Boolean>状态A。这将清理User实现,因为marked只是一个状态字段。请注意,TraitA不能是一个类,因为我想使用几个这样的接口(interface):User():TraitAbyStateA,TraitBbyStateB,../*doesnotcompile(KotlinM12)*/interfaceTraitA{varmarked:BooleanfundoStaffWithMarked()//mustb

java - 错误 : The Android Gradle plugin supports only Kotlin Gradle plugin version 1. 3.0 及更高版本

请问我该如何解决这个错误?ERROR:TheAndroidGradlepluginsupportsonlyKotlinGradlepluginversion1.3.0andhigher.Thefollowingdependenciesdonotsatisfytherequiredversion:rootproject'android'->org.jetbrains.kotlin:kotlin-gradle-plugin:1.0.6AffectedModules:android-appWARNING:Configuration'compile'isobsoleteandhasbeenre

Gradle Kotlin DSL : Define Kotlin version in unique place

为了描述Gradle构建脚本,我们可以通过build.gradle.kts使用Kotlin文件。在dependencies中全局定义要使用的Kotlin版本是一个常见问题。以及构建plugin部分(在给定的情况下使用不同的版本是相当少见的)。考虑以下代码(Gradle4.3.1):plugins{varpluginVersion="1.2.30"kotlin("jvm").version(kotlinVersion)//more}vardependencyVersion="1.2.30"dependencies{compile(kotlin("stdlib",kotlinVersion

android - 警告 : warning: Supported source version 'RELEASE_7' from annotation processor 'android.arch.lifecycle.LifecycleProcessor' less than -source '1.8'

尝试使用带有架构组件和Kotlin的AndroidStudio3Canary5构建示例会出现此警告。谁能告诉我原因?谢谢,欧维编辑#1:这是DanLew不久前制作的样本https://github.com/dlew/android-architecture-counter-samplebuild.gradle:applyplugin:'com.android.application'applyplugin:'kotlin-android'applyplugin:'kotlin-kapt'android{compileSdkVersion25buildToolsVersionrootPr