android - gradle placeholder can not solve the ${com.nssb.zssb} -


gradle placeholder support problem :

my placeholder looks ${com.nssb.zssb}

how can gradle deal situation, tried following command:

manifestplaceholders = [com.nssb.zssb:"djdssb"] 

but didnt worked. suggestion? many thanks~~~~~

my mainifest.xml:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="differentbuild.com.mike.differentbuild" >      <application         android:allowbackup="true"         android:icon="@mipmap/ic_launcher"         android:label="${com.nssb.zssb}"         android:theme="@style/apptheme" >         <activity             android:name=".mainactivity"             android:label="${com.nssb.zssb}" >             <intent-filter>                 <action android:name="android.intent.action.main" />                  <category android:name="android.intent.category.launcher" />             </intent-filter>         </activity>         <activity             android:name=".secondactivity"             android:label="${com.nssb.zssb}" >         </activity>     </application>  </manifest> 

my build gradle:

apply plugin: 'com.android.application'  android {     compilesdkversion 21     buildtoolsversion "22.0.1"      defaultconfig {         applicationid "differentbuild.com.mike.differentbuild"         minsdkversion 19         targetsdkversion 21         versioncode 1         versionname "1.0"      }      buildtypes {          release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }      }      productflavors {         production {             applicationid "differentbuild.com.mike.differentbuild"             manifestplaceholders = [com.nssb.zssb:"secondactivity"]             versionname "1.0-pro"          }         pros {             applicationid "differentbuild.com.mike.differentbuild"             manifestplaceholders = [com.nssb.zssb:"secondactivity111"]             versionname "1.0.1-pro"          }      } }    dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     compile 'com.android.support:appcompat-v7:22.0.0' } 


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -