无法编译apk使用Game Maker Studio [英] cant compile apk using Game Maker Studio

查看:1583
本文介绍了无法编译apk使用Game Maker Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚使用Android SDK管理器更新了构建工具。



现在我无法使用游戏制作工具编译apk。



这是从控制台输出的错误。



我认为我没有改变任何东西,除了Windows更新。我有窗口10,64位

 统计:GMA:Elapsed = 6821.0873 
统计:GMA:sp = au = 0,bk = 3,pt = 0,sc = 11,sh = 0,fo = 4,tl = 0,ob = 41,ro = 3,da = 0,ex = 1,ma = 29,fm = 0x49E50A39
cmd / cC:\Users\pc\AppData\Roaming\GameMaker-Studio\Android\runner\gradle\gradlewbuild -x assembleDebug

:com.mysite.myapp:preBuild UP-TO-DATE
:com.mysite.myapp:preReleaseBuild UP-TO-DATE
:com.mysite.myapp:checkReleaseManifest
:com.mysite.myapp:preDebugBuild UP-TO-DATE
:com.mysite.myapp:prepareComAndroidSupportMultidex101Library
:com.mysite.myapp:prepareComAndroidSupportSupportV42311Library
:com.mysite.myapp:prepareReleaseDependencies
:com.mysite.myapp:compileReleaseAidl
:com.mysite.myapp:compileReleaseRenderscript
:com.mysite.myapp:generateReleaseBuildConfig
:com.mysite.myapp:generateReleaseAssets UP- TO-DATE
:com.mysite.myapp:mergeReleaseAssets
:com.mysite.myapp:generateReleaseResValues
:com.mysite.myapp:generateReleaseResources
:com.mysite.myapp: mergeReleaseResources
:com.mysite.myapp:processArmeabi-v7aReleaseManifest
警告:C:\Users\pc\Documents\GameMaker\Cache\MobiPC_App\Android\Default\com .mysite.myapp\src\main\AndroidManifest.xml:28:3-182:17警告:
应用程序@ android:label被标记在AndroidManifest.xml:28以替换其他声明,但没有其他声明present
警告:C:\Users\pc\Documents\GameMaker\Cache\MobiPC_App\Android\Default\com.mysite.myapp\src\main\AndroidManifest。 xml:29:5-35:16警告:
activity#com.mysite.myapp.RunnerActivity@android:label被标记在AndroidManifest.xml:29中以替换其他声明,但没有其他声明
C :\Users\pc\Documents\GameMaker\Cache\MobiPC_App\Android\Default\com.mysite.myapp\src\main\AndroidManifest.xml:28:3-182: 17警告:
应用程序@ android:label被标记在AndroidManifest.xml:28以替换其他声明,但没有其他声明存在
C:\Users\pc\Documents\GameMaker\Cache \MobiPC_App\Android\Default\com.mysite.myapp\src\main\AndroidManifest.xml:29:5-35:16警告:
activity#com.mysite.myapp.RunnerActivity @android:label被标记在AndroidManifest.xml:29以替换其他声明,但没有其他声明存在
:com.mysite.myapp:processArmeabi-v7aReleaseResourcesC:\Users\pc\Documents\GameMaker\ Cache\MobiPC_App\Android\Default\com.mysite.myapp\build\intermediates\manifests\full\armeabi-v7a\release\AndroidManifest.xml:78:28-65:否找到与给定名称匹配的资源(value的值为@ integer / google_play_services_version)。

FAILED

FAILURE:构建失败,出现异常。

*出错:
任务':com.mysite.myapp:processArmeabi-v7aReleaseResources'的执行失败。
> com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:Process'command'F:\Android\android-sdk\build-tools\23.0.1\aapt。 exe''以非零退出值完成1

* Try:
使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。

BUILD FAILED

总时间:12.612秒
创建完成:01:33:39


解决方案

我将buils工具版本设置为最新版本。
在首选项中我设置缓存路径为一个更短的



我也卸载了一个扩展名为APPODEAL,我认为这也造成问题。 p>

现在我设法让apk编译


I just updated the build tools using android SDK manager.

Now I cant compile apk using game maker studio.

Here is the error output from the console.

I dont think i have changed anything except windows update. I have windows 10, 64 bit

Stats : GMA : Elapsed=6821.0873
Stats : GMA : sp=32,au=0,bk=3,pt=0,sc=11,sh=0,fo=4,tl=0,ob=41,ro=3,da=0,ex=1,ma=29,fm=0x49E50A39
cmd /c ""C:\Users\pc\AppData\Roaming\GameMaker-Studio\Android\runner\gradle\gradlew"" build -x assembleDebug

:com.mysite.myapp:preBuild UP-TO-DATE
:com.mysite.myapp:preReleaseBuild UP-TO-DATE
:com.mysite.myapp:checkReleaseManifest
:com.mysite.myapp:preDebugBuild UP-TO-DATE
:com.mysite.myapp:prepareComAndroidSupportMultidex101Library
:com.mysite.myapp:prepareComAndroidSupportSupportV42311Library
:com.mysite.myapp:prepareReleaseDependencies
:com.mysite.myapp:compileReleaseAidl
:com.mysite.myapp:compileReleaseRenderscript
:com.mysite.myapp:generateReleaseBuildConfig
:com.mysite.myapp:generateReleaseAssets UP-TO-DATE
:com.mysite.myapp:mergeReleaseAssets
:com.mysite.myapp:generateReleaseResValues
:com.mysite.myapp:generateReleaseResources
:com.mysite.myapp:mergeReleaseResources
:com.mysite.myapp:processArmeabi-v7aReleaseManifest
Warning: C:\Users\pc\Documents\GameMaker\Cache\MobiPC_App\Android\Default\com.mysite.myapp\src\main\AndroidManifest.xml:28:3-182:17 Warning:
    application@android:label was tagged at AndroidManifest.xml:28 to replace other declarations but no other declaration present
Warning: C:\Users\pc\Documents\GameMaker\Cache\MobiPC_App\Android\Default\com.mysite.myapp\src\main\AndroidManifest.xml:29:5-35:16 Warning:
    activity#com.mysite.myapp.RunnerActivity@android:label was tagged at AndroidManifest.xml:29 to replace other declarations but no other declaration present
C:\Users\pc\Documents\GameMaker\Cache\MobiPC_App\Android\Default\com.mysite.myapp\src\main\AndroidManifest.xml:28:3-182:17 Warning:
    application@android:label was tagged at AndroidManifest.xml:28 to replace other declarations but no other declaration present
C:\Users\pc\Documents\GameMaker\Cache\MobiPC_App\Android\Default\com.mysite.myapp\src\main\AndroidManifest.xml:29:5-35:16 Warning:
    activity#com.mysite.myapp.RunnerActivity@android:label was tagged at AndroidManifest.xml:29 to replace other declarations but no other declaration present
:com.mysite.myapp:processArmeabi-v7aReleaseResourcesC:\Users\pc\Documents\GameMaker\Cache\MobiPC_App\Android\Default\com.mysite.myapp\build\intermediates\manifests\full\armeabi-v7a\release\AndroidManifest.xml:78:28-65 : No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').

 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':com.mysite.myapp:processArmeabi-v7aReleaseResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'F:\Android\android-sdk\build-tools\23.0.1\aapt.exe'' finished with non-zero exit value 1

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

BUILD FAILED

Total time: 12.612 secs
Create finished: 01:33:39

解决方案

I set the buils tools version to the latest version. In preferences I set the cache path to a shorter one

I also uninstalled an extension called "APPODEAL", i think this was causing problems too.

Now I managed to get apk compiled

这篇关于无法编译apk使用Game Maker Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆