gpt4 book ai didi

android-studio - Android Studio 0.6.1 中 project.properties 文件的位置

转载 作者:行者123 更新时间:2023-12-03 16:55:25 25 4
gpt4 key购买 nike

我正在研究如何使用 ProGuard,但在我的项目中找不到 project.properties 文件。那是换了吗?我可以看到一个 proguard-rules.pro。但是我找不到必须删除注释 # 的行。

到目前为止,这就是我所做的。我在 runProguard 中将 false 更改为 true 并将 proguardFiles 更改为“proguard-android-optimize”。

  apply plugin: 'android'

android {
compileSdkVersion 19
buildToolsVersion "19.1.0"

defaultConfig {
applicationId "tok.advertisement"
minSdkVersion 11
targetSdkVersion 19

}
buildTypes {
release {
runProguard true
proguardFiles getDefaultProguardFile('proguard-android-optimize'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:19.+'
}

最佳答案

在过渡到 Gradle 系统时,项目属性已被替换。
Gradle 中的 ProGuard:
http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Running-ProGuard

关于android-studio - Android Studio 0.6.1 中 project.properties 文件的位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24482878/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com