帖子
帖子
用户
博客
课程
显示全部楼层
2
帖子
0
勋章
4
Y币

[其他] 编译失败

[复制链接]
发表于 2018-3-26 17:46:14
编译始终失败,官方提示如下:2018-03-26 12:13:40Error: Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one [HardcodedDebugMode]

    <application android:allowBackup="false" android:debuggable="false" android:hardwareAccelerated="true" android:icon="@drawable/uz_icon" android:label="@string/app_name" android:largeHeap="true" android:name="com.uzmap.pkg.uzapp.UZApplication" tools:replace="android:icon,android:debuggable,android:allowBackup">
                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~

   Explanation for issues of type "HardcodedDebugMode":

   It's best to leave out the android:debuggable attribute from the manifest.
   If you do, then the tools will automatically insert android:debuggable=true
   when building an APK to debug on an emulator or device. And when you
   perform a release build, such as Exporting APK, it will automatically set
   it to false.

   If on the other hand you specify a specific value in the manifest file,
   then the tools will always use it. This can lead to accidentally publishing
   your app with debug information.

1 errors, 0 warnings

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:packageRelease'.
> com.android**.**mon.signing.KeytoolException: Failed to read key 20180325 from store "/uzmap/temp/xzsM3KAEIS91WzU/uzmap.keystore": Cannot recover key

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

同时,我发现在上传代码的时候,有如右图的提示: 捕获.PNG
请问为何我编译失败?怎样解决啊,是否是因为我这个代码分支地址不对呢?
谢谢!





4
帖子
0
勋章
3946
Y币
有上传证书吗,先清证书再编译一下
2
帖子
0
勋章
4
Y币
在用你这个方法前,编译通过了,也不知道是什么原因通过的。但是出现下图的提示:
222.png
2
帖子
0
勋章
4
Y币
我想是不是因为代码上传的时候路径无意中被重命名了,没有helloapp这个项目名导致的。但是又不知道怎么更改这个名字,好烦。
3
帖子
0
勋章
4582
Y币
汪精卫 发表于 2018-3-26 19:20
我想是不是因为代码上传的时候路径无意中被重命名了,没有helloapp这个项目名导致的。但是又不知道怎么更改 ...

你同步一下,就没有问题了
您需要登录后才可以回帖 登录

本版积分规则