首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法从AppCenter安装Android

无法从AppCenter安装Android
EN

Stack Overflow用户
提问于 2015-12-08 13:43:06
回答 1查看 2.1K关注 0票数 1

我有一个为android构建和部署MFP应用程序的ant脚本(wlapp和apk)。我还把这个应用程序上传到AppCenter。

问题是,我无法(在设备上--华为P6)使用AppCenter应用程序从AppCenter安装apk --下载应用程序,但安装不成功。上传的应用程序没有签名。

从MFP Studio运行Android应用程序很好。

为了让AppCenter应用程序安装正常,我需要执行哪些步骤?在哪里可以看到AppCenter的日志?

谢谢!

蚂蚁目标:

代码语言:javascript
复制
    <target name="build-android-windows" if="isWindows" description="Build the Android .apk" depends="">
    <!-- These must be set in your local.properties file in the root of the android project.
         This is sensitive information and is not checked into the repository
    <fail unless="android.store" message="Property android.store missing" />
    <fail unless="android.alias" message="Property android.alias missing" />
    <fail unless="android.store.password" message="Property android.store.password missing" />
    <fail unless="android.alias.password" message="Property android.alias.password missing" />
    -->
    <!-- use android.release_target if defined, otherwise default to 'release' -->
    <property name="android.release_target" value="release"/>

    <!-- call the project's build.xml to clean -->
    <ant antfile="${src.dir}/apps/${curBrand}/android/native/build.xml" inheritAll="false" useNativeBasedir="true" target="clean"/>

    <!-- call the project's build.xml to make a build -->
    <ant antfile="${src.dir}/apps/${curBrand}/android/native/build.xml" inheritAll="false" useNativeBasedir="true" target="${android.release_target}" />
    <!-- copy the file to build.dir -->
    <copy file="${src.dir}/apps/${curBrand}/android/native/bin/${curBrand}-${android.release_target}-unsigned.apk" tofile="${build.dir}/android/${build.apk}" overwrite="true" failonerror="true"/>

</target>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-12-09 05:01:43

正如维文在评论中指出的那样,AppCenter并不是谷歌的游戏,至少从设备的角度来看,它不是一个“可信的来源”,因此你可能确实需要在安卓的选项中启用这个选项。

第二个选项就像我提到的--签署.apk。当您直接从Eclipse构建时,默认情况下它使用调试签名并直接进入设备。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34157448

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档