我有一个为android构建和部署MFP应用程序的ant脚本(wlapp和apk)。我还把这个应用程序上传到AppCenter。
问题是,我无法(在设备上--华为P6)使用AppCenter应用程序从AppCenter安装apk --下载应用程序,但安装不成功。上传的应用程序没有签名。
从MFP Studio运行Android应用程序很好。
为了让AppCenter应用程序安装正常,我需要执行哪些步骤?在哪里可以看到AppCenter的日志?
谢谢!
蚂蚁目标:
<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>发布于 2015-12-09 05:01:43
正如维文在评论中指出的那样,AppCenter并不是谷歌的游戏,至少从设备的角度来看,它不是一个“可信的来源”,因此你可能确实需要在安卓的选项中启用这个选项。
第二个选项就像我提到的--签署.apk。当您直接从Eclipse构建时,默认情况下它使用调试签名并直接进入设备。
https://stackoverflow.com/questions/34157448
复制相似问题