unreal engine 4.25 android 编译问题

按照unreal engine 4.25的文档安装Android,配置sdk、ndk然后编译的时候一直报gradle的错误。

第一个是

download https://services.gradle.org/distributions/gradle-5.4.1-all.zip ,无法开始下载

第二个是

classpath com.android.tools.build:gradle:3.5.3 无法下载

配置了半天Android的proxy,还是不行,头大的不得了。

自动解决方式

搞了几天偶然发现问题出在gradle的代理配置上。。。
在 C:\Users[user].gradle 文件夹里边有个gradle.properties
其中的配置如下:

systemProp.https.proxyPort=1080
systemProp.http.proxyHost=127.0.0.1
systemProp.https.proxyHost=127.0.0.1
systemProp.http.proxyPort=1080

把其中的https的全部注释掉就能够正常使用代理下载了。。。尴尬
不过倒是也学了一下手动下载gradle跟gradle插件的方法。

手动解决方式(没有解决。。):

第一个问题,打开Androidstudio,gradle会开始尝试自动下载对应的gradle版本
在文件地址下自动生成一个hash的文件夹。

C:\Users\[user]\.gradle\wrapper\dists\gradle-5.4.1-all\[hash_file]

里边有两个文件

gradle-5.4.1-all.zip.lck
gradle-5.4.1-all.zip.part => gradle-5.4.1-all.zip.ok (代表已经下载好了)

同时把对应gradle版本的压缩包放到这个文件夹中,并且解压一下,在从新打开AndroidStudio完成这部分手动处理。

第二个问题,感觉手动创建成功的概率不大,因为需要下载的实在是太多了。。。相关路径大致如下

C:\Users\[user]\.gradle\caches\modules-2
C:\Users\[user]\.gradle\caches\modules-2\files-2.1\com.android.tools.build\gradle\3.5.3
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
Tap into the power of Unreal Engine 4 and create exciting games for the Android platform About This Book Dive straight into making fully functional Android games with this hands-on guide Learn about the entire Android pipeline, from game creation to game submission Use Unreal Engine 4 to create a first-person puzzle game Who This Book Is For If you are a game developer, designer, artist, or a beginner in the gaming industry and want to make Android games with Unreal Engine 4 efficiently, this book is ideal for you. In Detail Have you ever wanted to create games that will get users hooked to their phones? Unreal Engine 4, with all its tools and power, will help make your dreams come true! Designed to get you working with Unreal Engine 4 from the very first page, this book will quickly guide you through the basics in the first two chapters. Once you get the hang of things, we will start developing our game―Bloques! Bloques is a puzzle game with four rooms. Each room will be more challenging than the previous, and as you develop, you will graduate from movement and character control to AI and spawning. Once you've created the game, you will learn how to port and publish your game to the Google Play Store. In addition to building an Android game from start to finish, you will also discover how to generate revenue, and how to optimize game performance using the tools and functionalities the engine provides. With this book, you will be inspired to come up with your own great ideas for your future game development projects. Table of Contents Chapter 1. Getting Started with Unreal 4 Chapter 2. Launching Unreal Engine 4 Chapter 3. Building the Game – First Steps Chapter 4. Using Actors, Classes, and Volumes Chapter 4.X folders Chapter 5. Scripting with Blueprints Chapter 6. Using Unreal Matinee Chapter 7. Finishing, Packaging, and Publishing the Game
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

xyccstudio

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值