Could not findproperty 'packageApplication'
来源:互联网 发布:mac官网海淘 编辑:程序博客网 时间:2024/05/18 03:07
由于gradle 升级导致兼容问题解决方法
Error:Could not findproperty 'packageApplication' oncom.android.build.gradle.internal.api.ApplicationVariantImpl_Decorated@5fc07ff0.
Couldnot find property 'zipAlign' on com.android.build.gradle
(1)
def apk = variant.packageApplication.outputFile;
def newName = "";
修改为:
def apk = variant.outputs[0].outputFile;
def newName = "";
(2)
variant.packageApplication.outputFile = new File(apk.parentFile, newName);
if (variant.zipAlign) {
newName = newName.replace("-unaligned", "")
log.info "$newName"
variant.zipAlign.outputFile = new File(apk.parentFile, newName);
}
修改为:
variant.outputs[0].outputFile= new File(apk.parentFile, newName);
if (variant.outputs[0].zipAlign) {
newName = newName.replace("-unaligned", "")
log.info "$newName"
variant.outputs[0].zipAlign.outputFile= new File(apk.parentFile, newName);
}
- Could not findproperty 'packageApplication'
- xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
- xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
- Terminal错误: unable to find utility "PackageApplication", not a developer tool or in PATH
- xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
- xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
- xcode9打包报错:xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PAT
- could not execute query
- could not initialize proxy
- could not retrieve snapshot
- Could not execute PROPPATCH
- Could not create JarEntryRevision
- Could not launch “XXXX”
- could not find class
- Could not find gem
- could not create /tmp
- Could not find/open
- could not get wglGetExtensionsStringARB
- C#listview
- UVa 1374 Power Calculus
- 在Maven仓库中添加Oracle JDBC驱动(11g)
- 重定位绝对引用(absolute reference relocation)
- TCP的三次握手(建立连接)和四次挥手(关闭连接)
- Could not findproperty 'packageApplication'
- 实战Java虚拟机之三“G1的新生代GC”
- Linux缓存机制之页缓存
- android开发环境搭建
- 关于在Hibernate、Struts2中使用Clob数据类型
- 字体的大小不跟随系统DPI的更改而改变的解决方案
- 【算法之高效求素数】浅析求素数算法
- 解决ScrollView嵌套ListView和GridView冲突的方法
- 响应式设计的十个技巧