cocos 编译 apk 出错 resove to a path with no project.properties
来源:互联网 发布:淘宝汽车配件保证金 编辑:程序博客网 时间:2024/06/05 19:11
打包andriod 时,出现编译错误,现象如下:
找到D:\Cgywin\home\game_proj\client_buer\cocos2d\cocos\platform\android\java 目录,发现没有project.properties文件,替换 编译目录(D:\Cgywin\home\game_proj\client_buer\proj.android)下的project.properties文件,
内容如下
# This file is automatically generated by Android Tools.# Do not modify this file -- YOUR CHANGES WILL BE ERASED!## This file must be checked in Version Control Systems.## To customize properties used by the Ant build system use,# "ant.properties", and override values to adapt the script to your# project structure.# Project target.target=android-19android.library.reference.1=../cocos2d/cocos/platform/android/java
顺便替换local.properties文件,内容如下:
# This file is automatically generated by Android Tools.# Do not modify this file -- YOUR CHANGES WILL BE ERASED!## This file must *NOT* be checked into Version Control Systems,# as it contains information specific to your local configuration.# location of the SDK. This is only used by Ant# For customization when using a Version Control System, please read the# header note.sdk.dir=C:\\Program Files (x86)\\Android\\android-sdk
接着开始编译,发现还是错误, 咳咳,好多java xxx 啥的错误,晕倒,应该是有问题,
上网找了 resove to a path with no project.properties file for project ,
1、 把project.properties 文件修改下 把 android.library.reference.1=../cocos2d/cocos/platform/android/java 替换成android.library=false
# This file is automatically generated by Android Tools.# Do not modify this file -- YOUR CHANGES WILL BE ERASED!## This file must be checked in Version Control Systems.## To customize properties used by the Ant build system use,# "ant.properties", and override values to adapt the script to your# project structure.# Project target.target=android-19#android.library.reference.1=../cocos2d/cocos/platform/android/javaandroid.library=false
2、 Stackoverflow 上说 可能是因为 android.library路径和project路径不是在同一盘符(window)!,我这个貌似是在同一目录下,pass
3、 有的网友说要把obj目录删除在试试,结果还是不行;
4、 没法了,去原先能编译的目录拷贝这两个文件试试,结果,就,就可以了,咳咳
如下,其实就是把project.properties改成android.library=true
# This file is automatically generated by Android Tools.# Do not modify this file -- YOUR CHANGES WILL BE ERASED!## This file must be checked in Version Control Systems.## To customize properties used by the Ant build system edit# "ant.properties", and override values to adapt the script to your# project structure.## To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt# Project target.target=android-19android.library=true
local.properties改成如下(事实证明其实这个文件没有也没关系)
# This file is automatically generated by Android Tools.# Do not modify this file -- YOUR CHANGES WILL BE ERASED!## This file must *NOT* be checked into Version Control Systems,# as it contains information specific to your local configuration.# location of the SDK. This is only used by Ant# For customization when using a Version Control System, please read the# header note.sdk.dir=D:\\workspace\\android\\android-sdk-windows
- cocos 编译 apk 出错 resove to a path with no project.properties
- resolve to a path with no project.properties file for project
- Ant编译问题三:Build Falied ***resolve ro a path with no project.properties file for ***
- Eclipse导入Android文件出错!Project has no default.properties file! Edit the project properties to set one
- cocos打包apk,编译.so文件出错解决
- Project has no project.properties file! Edit the project properties to set one!
- eclipse:"Project has no project.properties file! Edit the project properties to set one."
- cocos js 打包apk出错
- Project has no default.properties file! Edit the project properties to set one.错误解决方法
- Project has no default.properties file! Edit the project properties to set one.错误解决方法
- Project has no default.properties file! Edit the project properties to set one.错误解决方法
- 问题1:Project has no default.properties file! Edit the project properties to set one.
- Project has no default.properties file! Edit the project properties to set one.错误解决方法
- Project has no default.properties file! Edit the project properties to set one.错误解决方案
- Project has no default.properties file! Edit the project properties to set one.错误解决方案
- Project has no default.properties file! Edit the project properties to set one
- Project has no default.properties file! Edit the project properties to set one.错误解决方案
- Project has no default.properties file! Edit the project properties to set one.
- 狭义相对论的洛伦兹变换几何推导
- Weblogic服务器安装
- 机器学习实战读书笔记(二) K-近邻算法
- JVM 年轻代 老年代 持久代 GC
- day11多线程
- cocos 编译 apk 出错 resove to a path with no project.properties
- ASP.NET中二进制图片的存储与读取
- 2017年10月23日提高组T1 摆书
- iOS多线程——你要知道的GCD都在这里
- 人工智能创业,你需要知道的 6 大核心问题
- 判断整型数字是否是回文
- 浅谈 STL中的 nth_element() 使用方法
- NOIP模拟(20171023)T3 拆网线
- day09File类