草庐IT

install-configuration

全部标签

python - 为什么easy_install找不到MySQLdb?

这是我尝试过的:$easy_install-2.6-d/home/user/lib/python2.6MySQLdbSearchingforMySQLdbReadinghttp://pypi.python.org/simple/MySQLdb/Couldn'tfindindexpagefor'MySQLdb'(maybemisspelled?)Scanningindexofallpackages(thismaytakeawhile)Readinghttp://pypi.python.org/simple/NolocalpackagesordownloadlinksfoundforMyS

java - MongoDB Java 插入抛出 org.bson.codecs.configuration.CodecConfigurationException : Can't find a codec for class io. github.ilkgunel.mongodb.Pojo

我正在使用Java学习MongoDB。我正在尝试使用Java驱动程序将数据插入MongoDB。我正在像MongoDB教程中一样进行插入,而且一切都很好。但是如果我想插入一个变量,当我运行代码时,驱动程序会抛出这样的错误:org.bson.codecs.configuration.CodecConfigurationException:Can'tfindacodecforclassio.github.ilkgunel.mongodb.Pojo.我在StackOverflow中搜索过这样的问题,但我什么都不懂,也找不到任何东西可以解决这个错误。我的代码如下。如何解决这个问题?我正在使用此代

java - MongoDB Java 插入抛出 org.bson.codecs.configuration.CodecConfigurationException : Can't find a codec for class io. github.ilkgunel.mongodb.Pojo

我正在使用Java学习MongoDB。我正在尝试使用Java驱动程序将数据插入MongoDB。我正在像MongoDB教程中一样进行插入,而且一切都很好。但是如果我想插入一个变量,当我运行代码时,驱动程序会抛出这样的错误:org.bson.codecs.configuration.CodecConfigurationException:Can'tfindacodecforclassio.github.ilkgunel.mongodb.Pojo.我在StackOverflow中搜索过这样的问题,但我什么都不懂,也找不到任何东西可以解决这个错误。我的代码如下。如何解决这个问题?我正在使用此代

在 IntelliJ Idea 中未为 Kotlin @ConfigurationProperties 类生成 spring-configuration-metadata.json 文件

我正在尝试为我的Spring启动项目生成Spring配置-metadata.json文件。如果我使用java@configurationproperties类,它是正确和自动生成的:@ConfigurationProperties("myprops")publicclassMyProps{privateStringhello;publicStringgetHello(){returnhello;}publicvoidsetHello(Stringhello){this.hello=hello;}}但是,如果我使用kotlin类,则未生成spring-configuration-meta

spring - IntelliJ Idea 2017.3 无法启动 Kotlin Spring Boot 应用程序 - @Configuration 类可能不是最终的

我能够从IntelliJ2017.3启动SpringBootKotlin应用程序。上次IntelliJ修复更新后,我无法从IDE启动该应用程序,出现此异常:org.springframework.beans.factory.parsing.BeanDefinitionParsingException:Configurationproblem:@Configurationclass'AccessConfig'maynotbefinal我可以像往常一样从终端启动它:java-jarxxxx.jar这没有任何意义,因为我在Gradle配置中使用了必要的KotlinSpring插件:build

android - 更新至 Android Studio 3.0。收到 "Kotlin not configured"错误

我刚刚更新到AndroidStudio3.0,但现有项目出现此错误:Kotlinnotconfigured当我转到Tools>Kotlin>在项目中配置Kotlin时,我收到一条错误消息“没有可用的配置器”。用红色的java也会得到下面的错误:我也试过了:正在重新启动清理和重建使缓存无效/重新启动。 最佳答案 我首先尝试使用无效缓存/重新启动选项,但它对我没有帮助。当我在项目的gradle文件中将Kotlin更新为1.1.60时,问题就解决了。另外,在应用程序的gradle中使用它用于stdlibimplementation"org

android - 为什么 adb install <same-packagename-always-release> 失败?

这个问题在这里已经有了答案:Failure[INSTALL_FAILED_ALREADY_EXISTS]whenItriedtoupdatemyapplication(7个回答)关闭9年前。我知道adbinstall不会替换现有的包,如果它是不同的构建type(即调试与发布)。每当我运行调试session时,Eclipse也会成功替换调试apk。但是当我尝试adbinstall将现有的releaseapk替换为另一个发布apk(相同的包名!)时,我收到一条失败消息:adbinstallmyapp-release.apkpkg:/data/local/tmp/myapp-release.

安卓工作室 : Application Installation Failed

我一直在尝试学习如何使用AndroidStudio,但是当我尝试运行其中一个示例程序时,我收到了以下错误消息:Installationfailedwithmessagenull.Itispossiblethatthisissueisresolvedbyuninstallinganexistingversionoftheapkifitispresent,andthenre-installing.WARNING:Uninstallingwillremovetheapplicationdata!Doyouwanttouninstalltheexistingapplication?我已经尝试在

android - 手动安装更新的 APK 失败并显示 "signatures do not match the previously installed version"

我创建了一个愚蠢的应用程序来与几个friend分享。无需在应用商店上架。我构建了第一个apk(已签名),将其上传到网络服务器,一切正常。出现了一个小问题,我修复了它,重新构建,使用相同的keystore签名并再次上传。现在看来我无法从新的apk安装。调试器告诉我:signaturesdonotmatchthepreviouslyinstalledversion所以我通过打开应用程序抽屉并将其拖到“卸载”按钮上来卸载旧版本。打开“设置->应用程序”时,我再也看不到它了。我在我的设备上没有看到任何应用程序的痕迹。但我仍然收到上述错误消息。是否有可能一些信息仍然在设备的某个地方徘徊?有什么方

android - 静默安装应用程序,并授予 INSTALL_PACKAGES 权限

我正在尝试以静默方式将apk安装到系统中。我的应用位于/system/app并成功授予权限“android.permission.INSTALL_PACKAGES”但是我在任何地方都找不到如何使用此权限。我试图将文件复制到/data/app并没有成功。我也尝试使用此代码Intentintent=newIntent(Intent.ACTION_VIEW);intent.setDataAndType(Uri.parse("file:///sdcard/app.apk"),"application/vnd.android.package-archive");startActivity(int