I am currently working on an application with several build options, as well as multiple products, and in each build option, the package name suffix is ββdifferent. I want to use $ {applicationId}, so I can have several build options available on one device.
<provider android:name="${applicationId}.providers.LocatorSearchSuggestionProvider" android:authorities="${applicationId}.providers.LocatorSearchSuggestionProvider" />
I tried the following and it does not work. I also tried packageName. Also in the build.gradle files, I have the applicationId specified in defaultConfig.
Edit: currently in the AndroidManifest.xml file. I get the message "Cannot resolve the error" $ {applicationId} ". Also in my build.gradle file I included applicationId
android { compileSdkVersion 19 buildToolsVersion '20.0.0' useOldManifestMerger false defaultConfig { applicationId 'com.sample.android.login' minSdkVersion 14 targetSdkVersion 19 versionCode 1 versionName '1.0' } compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 }
Thank you for your help, thanks !!!
android manifest
ahmad
source share