あなたは、それがアプリへ(リファクタリング経由)の名前を変更するだけで十分私のPC上で、現在の日付とバージョン
android {
def version = "2.4";
def milestone = "1";
def build = "0";
def name = getDate()+"APP NAME WHAT YOU WANT"+"v"+version
signingConfigs {
config {
….
}
}
compileSdkVersion Integer.parseInt(COMPILE_SDK)
buildToolsVersion BUILD_TOOLS_VERSION
defaultConfig {
applicationId "com.PACKAGENAME"
minSdkVersion Integer.parseInt(MIN_SDK_LIBRARY)
targetSdkVersion Integer.parseInt(TARGET_SDK)
versionCode 11
versionName "2.3"
multiDexEnabled true
}
buildTypes {
debug {
applicationVariants.all { variant ->
variant.outputs.each { output ->
def apk = output.outputFile;
def newName;
newName = apk.name.replace("-" + variant.buildType.name, "")
.replace(project.name, name);
newName = newName.replace("-", "-" + version + "-" + milestone +
"-" + build + "-");
output.outputFile = new File(apk.parentFile, newName);
}
}
}
エラー:プロジェクト」 app 'はルートプロジェクト' iPlanter 'に見つかりませんでした。私はこのエラーを取得しています@kgsharathkumar – PriyankaChauhan
@pcpriyanka、今すぐ確認、私は完全なステップを追加しました.. :) – kgsharathkumar
名前を変更するディレクトリまたはモジュールを選択できますか? – PriyankaChauhan