RenPy中文空间

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 51|回复: 11

[求助] 安卓打包失败

[复制链接]
发表于 2019-2-9 15:18:44 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
Ren'Py 7.1.3.1092

正在更新工程。

正在创建资源目录。

正在打包内部数据。

正在使用 Gradle 构建应用包。
Starting a Gradle Daemon, 1 busy and 1 stopped Daemons could not be reused, use --status for details
:app:preBuild UP-TO-DATE
:renpyandroid:preBuild UP-TO-DATE
:renpyandroid:preDebugBuild UP-TO-DATE
:renpyandroid:checkDebugManifest
:renpyandroid:processDebugManifest
:app:preDebugBuild
:renpyandroid:compileDebugAidl
:app:compileDebugAidl
:renpyandroid:packageDebugRenderscript NO-SOURCE
:app:compileDebugRenderscript
:app:checkDebugManifest
:app:generateDebugBuildConfig
:app:prepareLintJar UP-TO-DATE
:app:mainApkListPersistenceDebug
:app:generateDebugResValues
:app:generateDebugResources
:renpyandroid:compileDebugRenderscript
:renpyandroid:generateDebugResValues
:renpyandroid:generateDebugResources
:renpyandroid:packageDebugResources
:app:mergeDebugResources
:app:createDebugCompatibleScreenManifests
:app:processDebugManifest
:app:splitsDiscoveryTaskDebug
:renpyandroid:platformAttrExtractor UP-TO-DATE
:renpyandroid:generateDebugRFile
:app:processDebugResources
:app:generateDebugSources
:renpyandroid:generateDebugBuildConfig
:renpyandroid:prepareLintJar UP-TO-DATE
:renpyandroid:generateDebugSources
:renpyandroid:javaPreCompileDebug
:renpyandroid:compileDebugJavaWithJavac注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。

:renpyandroid:processDebugJavaRes NO-SOURCE
:renpyandroid:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
:app:javaPreCompileDebug
:app:compileDebugJavaWithJavac
:app:compileDebugNdk NO-SOURCE
:app:compileDebugSources
:app:mergeDebugShaders
:app:compileDebugShaders
:app:generateDebugAssets
:renpyandroid:mergeDebugShaders
:renpyandroid:compileDebugShaders
:renpyandroid:generateDebugAssets
:renpyandroid:packageDebugAssets
:app:mergeDebugAssets
:app:transformClassesWithDexBuilderForDebug
:app:transformDexArchiveWithExternalLibsDexMergerForDebug
:app:transformDexArchiveWithDexMergerForDebug
:app:mergeDebugJniLibFolders
:renpyandroid:compileDebugNdk NO-SOURCE
:renpyandroid:mergeDebugJniLibFolders
:renpyandroid:transformNativeLibsWithMergeJniLibsForDebug
:renpyandroid:transformNativeLibsWithIntermediateJniLibsForDebug
:app:transformNativeLibsWithMergeJniLibsForDebug
:app:processDebugJavaRes NO-SOURCE
:app:transformResourcesWithMergeJavaResForDebug
:app:validateSigningDebug
:app:packageDebug
Expiring Daemon because JVM Tenured space is exhausted
Daemon will be stopped at the end of the build after running out of JVM memory
:app:packageDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:packageDebug'.
> org.gradle.tooling.BuildException (no error message)

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

* Get more help at https://help.gradle.org

BUILD FAILED in 9m 16s
45 actionable tasks: 42 executed, 3 up-to-date
Expiring Daemon because JVM Tenured space is exhausted




构建似乎已失败。

发表于 7 天前 | 显示全部楼层
用的是64位jdk8?
回复 支持 反对

使用道具 举报

发表于 7 天前 | 显示全部楼层
在renpy所在的下面两个目录里找到gradle.properties这文件。
rapt\project\gradle.properties
rapt\prototype\gradle.properties

将里面的org.gradle.jvmargs值更改为:
org.gradle.jvmargs = -Xms1024m -Xmx4096m

好像renpy7版本会出现这问题,是Android Studio 2.1 包含一个新的特性: Dex In Process ,可以提高重新编译的速度,需要增加 Gradle Daemon 虚拟机需要的内存,默认内存可能为 1GB, 无法支持 dexInProcess 运行,最少需要 2GB内存。

评分

参与人数 1干货 +1 收起 理由
龙氏 + 1 感谢解答!

查看全部评分

回复 支持 反对

使用道具 举报

 楼主| 发表于 4 天前 | 显示全部楼层
BuErShen 发表于 2019-2-10 19:17
在renpy所在的下面两个目录里找到gradle.properties这文件。
rapt\project\gradle.properties
rapt\prototy ...

谢谢我去试试
回复 支持 反对

使用道具 举报

 楼主| 发表于 4 天前 | 显示全部楼层
BuErShen 发表于 2019-2-10 19:17
在renpy所在的下面两个目录里找到gradle.properties这文件。
rapt\project\gradle.properties
rapt\prototy ...

是改为-Xms4096m么???
你发的是-Xmx4096m
回复 支持 反对

使用道具 举报

 楼主| 发表于 4 天前 | 显示全部楼层
BuErShen 发表于 2019-2-10 19:17
在renpy所在的下面两个目录里找到gradle.properties这文件。
rapt\project\gradle.properties
rapt\prototy ...

改成你发的还是报错。。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 4 天前 | 显示全部楼层
BuErShen 发表于 2019-2-10 19:17
在renpy所在的下面两个目录里找到gradle.properties这文件。
rapt\project\gradle.properties
rapt\prototy ...

Ren'Py 7.1.3.1092

正在更新工程。

正在创建资源目录。

正在打包内部数据。

正在使用 Gradle 构建应用包。
Starting a Gradle Daemon, 1 busy and 1 stopped Daemons could not be reused, use --status for details
:app:preBuild UP-TO-DATE
:renpyandroid:preBuild UP-TO-DATE
:renpyandroid:preReleaseBuild UP-TO-DATE
:renpyandroid:checkReleaseManifest UP-TO-DATE
:renpyandroid:processReleaseManifest UP-TO-DATE
:app:preReleaseBuild UP-TO-DATE
:renpyandroid:compileReleaseAidl UP-TO-DATE
:app:compileReleaseAidl UP-TO-DATE
:renpyandroid:packageReleaseRenderscript NO-SOURCE
:app:compileReleaseRenderscript UP-TO-DATE
:app:checkReleaseManifest UP-TO-DATE
:app:generateReleaseBuildConfig UP-TO-DATE
:app:prepareLintJar UP-TO-DATE
:app:mainApkListPersistenceRelease UP-TO-DATE
:app:generateReleaseResValues UP-TO-DATE
:app:generateReleaseResources UP-TO-DATE
:renpyandroid:compileReleaseRenderscript UP-TO-DATE
:renpyandroid:generateReleaseResValues UP-TO-DATE
:renpyandroid:generateReleaseResources UP-TO-DATE
:renpyandroid:packageReleaseResources UP-TO-DATE
:app:mergeReleaseResources
:app:createReleaseCompatibleScreenManifests UP-TO-DATE
:app:processReleaseManifest UP-TO-DATE
:app:splitsDiscoveryTaskRelease UP-TO-DATE
:renpyandroid:platformAttrExtractor UP-TO-DATE
:renpyandroid:generateReleaseRFile UP-TO-DATE
:app:processReleaseResources
:app:generateReleaseSources
:renpyandroid:generateReleaseBuildConfig UP-TO-DATE
:renpyandroid:prepareLintJar UP-TO-DATE
:renpyandroid:generateReleaseSources UP-TO-DATE
:renpyandroid:javaPreCompileRelease UP-TO-DATE
:renpyandroid:compileReleaseJavaWithJavac UP-TO-DATE
:renpyandroid:processReleaseJavaRes NO-SOURCE
:renpyandroid:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease UP-TO-DATE
:app:javaPreCompileRelease UP-TO-DATE
:app:compileReleaseJavaWithJavac UP-TO-DATE
:app:compileReleaseNdk NO-SOURCE
:app:compileReleaseSources UP-TO-DATE
:app:lintVitalRelease
:app:mergeReleaseShaders UP-TO-DATE
:app:compileReleaseShaders UP-TO-DATE
:app:generateReleaseAssets UP-TO-DATE
:renpyandroid:mergeReleaseShaders UP-TO-DATE
:renpyandroid:compileReleaseShaders UP-TO-DATE
:renpyandroid:generateReleaseAssets UP-TO-DATE
:renpyandroid:packageReleaseAssets UP-TO-DATE
:app:mergeReleaseAssets
:app:transformClassesWithDexBuilderForRelease UP-TO-DATE
:app:transformDexArchiveWithExternalLibsDexMergerForRelease UP-TO-DATE
:app:transformDexArchiveWithDexMergerForRelease UP-TO-DATE
:app:mergeReleaseJniLibFolders UP-TO-DATE
:renpyandroid:compileReleaseNdk NO-SOURCE
:renpyandroid:mergeReleaseJniLibFolders UP-TO-DATE
:renpyandroid:transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE
:renpyandroid:transformNativeLibsWithIntermediateJniLibsForRelease UP-TO-DATE
:app:transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE
:app:processReleaseJavaRes NO-SOURCE
:app:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:app:validateSigningRelease UP-TO-DATE
:app:packageRelease
Expiring Daemon because JVM Tenured space is exhausted
Daemon will be stopped at the end of the build after running out of JVM memory
Expiring Daemon because JVM Tenured space is exhausted
Daemon is stopping immediately JVM garbage collector thrashing and after running out of JVM memory

FAILURE: Build failed with an exception.

* What went wrong:
Gradle build daemon has been stopped: JVM garbage collector thrashing and after running out of JVM memory

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

* Get more help at https://help.gradle.org




构建似乎已失败。
回复 支持 反对

使用道具 举报

 楼主| 发表于 3 天前 | 显示全部楼层
BuErShen 发表于 2019-2-10 19:17
在renpy所在的下面两个目录里找到gradle.properties这文件。
rapt\project\gradle.properties
rapt\prototy ...

我重新换了个win7 64系统 错误变了哈哈哈麻烦你再看下
Ren'Py 7.1.3.1092

正在更新工程。

正在创建资源目录。

正在创建扩展文件。

正在打包内部数据。

正在使用 Gradle 构建应用包。
:app:preBuild UP-TO-DATE
:renpyandroid:preBuild UP-TO-DATE
:renpyandroid:preReleaseBuild UP-TO-DATE
:renpyandroid:checkReleaseManifest UP-TO-DATE
:renpyandroid:processReleaseManifest UP-TO-DATE
:app:preReleaseBuild UP-TO-DATE
:renpyandroid:compileReleaseAidl UP-TO-DATE
:app:compileReleaseAidl UP-TO-DATE
:renpyandroid:packageReleaseRenderscript NO-SOURCE
:app:compileReleaseRenderscript UP-TO-DATE
:app:checkReleaseManifest UP-TO-DATE
:app:generateReleaseBuildConfig UP-TO-DATE
:app:prepareLintJar UP-TO-DATE
:app:mainApkListPersistenceRelease UP-TO-DATE
:app:generateReleaseResValues UP-TO-DATE
:app:generateReleaseResources UP-TO-DATE
:renpyandroid:compileReleaseRenderscript UP-TO-DATE
:renpyandroid:generateReleaseResValues UP-TO-DATE
:renpyandroid:generateReleaseResources UP-TO-DATE
:renpyandroid:packageReleaseResources UP-TO-DATE
:app:mergeReleaseResources
:app:createReleaseCompatibleScreenManifests UP-TO-DATE
:app:processReleaseManifest UP-TO-DATE
:app:splitsDiscoveryTaskRelease UP-TO-DATE
:renpyandroid:platformAttrExtractor UP-TO-DATE
:renpyandroid:generateReleaseRFile UP-TO-DATE
:app:processReleaseResources
:app:generateReleaseSources
:renpyandroid:generateReleaseBuildConfig UP-TO-DATE
:renpyandroid:prepareLintJar UP-TO-DATE
:renpyandroid:generateReleaseSources UP-TO-DATE
:renpyandroid:javaPreCompileRelease UP-TO-DATE
:renpyandroid:compileReleaseJavaWithJavacC:\Users\Administrator\Desktop\renpy-7.1.3-sdk\rapt\project\renpyandroid\src\main\java\org\renpy\android\Constants.java:10: 错误: 过大的整数: 2149229962
    public static int fileSize = 2149229962;
                                 ^
1 个错误
FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':renpyandroid:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

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

* Get more help at https://help.gradle.org

BUILD FAILED in 5s
25 actionable tasks: 3 executed, 22 up-to-date




构建似乎已失败。
回复 支持 反对

使用道具 举报

发表于 3 天前 | 显示全部楼层
确定改为:
  1. org.gradle.jvmargs = -Xms1024m -Xmx4096m
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 3 天前 | 显示全部楼层

成功了谢谢谢谢,我换了6.9的版本找到了原因是因为素材太大了我压缩了所有的图片就可以了,谢谢
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|RenPy中文空间 ( 苏ICP备17067825号 | 苏公网安备 32092302000068号 )

GMT+8, 2019-2-17 07:23 , Processed in 0.085816 second(s), 21 queries , File On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表