diff --git a/.gitignore b/.gitignore index 4785e08370..008e17a40f 100644 --- a/.gitignore +++ b/.gitignore @@ -113,6 +113,10 @@ build/build/ cocos/scripting/lua-bindings/proj.ios_mac/build/ tests/*/runtime/ tests/*/publish/ +tests/*/project/proj.android-studio/app/build.xml +tests/*/project/proj.android-studio/app/proguard-project.txt +tests/*/proj.android-studio/app/build.xml +tests/*/proj.android-studio/app/proguard-project.txt # Android project.properties diff --git a/templates/cpp-template-default/cocos-project-template.json b/templates/cpp-template-default/cocos-project-template.json index 727f296ed7..37da10163d 100644 --- a/templates/cpp-template-default/cocos-project-template.json +++ b/templates/cpp-template-default/cocos-project-template.json @@ -42,6 +42,7 @@ "proj.android/AndroidManifest.xml", "proj.android/build.xml", "proj.android/res/values/strings.xml", + "proj.android-studio/settings.gradle", "proj.ios_mac/ios/main.m", "proj.ios_mac/ios/Prefix.pch", "proj.ios_mac/PROJECT_NAME.xcodeproj/project.pbxproj", @@ -51,7 +52,9 @@ "project_replace_package_name":{ "src_package_name":"org.cocos2dx.hellocpp", "files":[ - "proj.android/AndroidManifest.xml" + "proj.android/AndroidManifest.xml", + "proj.android-studio/app/build.gradle", + "proj.android-studio/app/AndroidManifest.xml" ] }, "project_replace_mac_bundleid": { diff --git a/templates/cpp-template-default/proj.android-studio/app/AndroidManifest.xml b/templates/cpp-template-default/proj.android-studio/app/AndroidManifest.xml index 2bc0113bdd..57ed2fb242 100644 --- a/templates/cpp-template-default/proj.android-studio/app/AndroidManifest.xml +++ b/templates/cpp-template-default/proj.android-studio/app/AndroidManifest.xml @@ -14,7 +14,7 @@ android:value="cocos2dcpp" />