已经有的项目run时白屏问题

Android项目更新后运行白屏问题及解决方案
本文主要描述了在更新Android Gradle插件至3.2.0和Gradle至4.6后,遇到项目运行时白屏的问题。问题与配置过时有关,包括'androidTestCompile'、'compile'、'androidTestApi'、'testCompile'和'testApi'等。尽管更新后出现警告,但点击Run按钮仍能运行,只是项目显示为白屏。解决方法是删除原有项目,通过Android Studio重新打开并导入项目。

1.andriod 安装项目出现白屏和黑屏(猜测:版本问题,我做了如下操作导致)
To take advantage of the latest features, improvements, and security fixes, we strongly recommend that you update the Android Gradle plugin to version 3.2.0 and Gradle to version 4.6. Release notes  Android plugin 3.2.0 and higher now support building the Android App Bundle—a new upload format that defers APK generation and signing to compatible app stores, such as Google Play. With app bundles, you no longer have to build, sign, and manage multiple APKs, and users get smaller, more optimized downloads

为了利用最新的功能、改进和安全修复,我们强烈建议您将Android Gradle插件更新到3.2.0版,并将Gradle更新到4.6版。发行说明android plugin 3.2.0及更高版本现在支持构建android app bundle,这是一种新的上传格式,可以推迟apk的生成并登录到兼容的app stores,如google play。使用应用程序包,您不再需要构建、签署和管理多个apk,用户可以获得更小、更优化的下载。

更新之后出现如下问题
Configuration 'androidTestCompile' is obsolete and has been replaced with 'androidTestImplementation' and 'androidTestApi'.
It will be removed at the end of 2018. For more information se

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值