I am trying to create different APKs using flavors in an Android app written with React Native but I am getting the following error while running the
Код: Выделить всё
.gradlew assembleReleaseКод: Выделить всё
Could not find method applicationIdSuffix() for arguments [.free] on ProductFlavor_Decorated{name=free, dimension=null, minSdkVersion=null, targetSdkVersion=null, renderscriptTargetApi=null, renderscriptSupportModeEnabled=null, renderscriptNdkModeEnabled=null, versionCode=null, versionName=null, applicationId=null, testApplicationId=null, testInstrumentationRunner=null, testInstrumentationRunnerArguments={}, testHandleProfiling=null, testFunctionalTest=null, signingConfig=null, resConfig=null, mBuildConfigFields={}, mResValues={}, mProguardFiles=[], mConsumerProguardFiles=[], mManifestPlaceholders={}}. 
When I remove the
Код: Выделить всё
productFlavorsКод: Выделить всё
build.gradleКод: Выделить всё
android { compileSdkVersion 23 buildToolsVersion "23.0.1" defaultConfig { applicationId "com.myapp" minSdkVersion 16 targetSdkVersion 22 versionCode 27 versionName "3.3.1" ndk { abiFilters "armeabi-v7a", "x86" } } productFlavors { free { applicationIdSuffix ".free" } pro { applicationIdSuffix ".pro" } } ... } Код: Выделить всё
gradle-wrapper.propertiesКод: Выделить всё
distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip Код: Выделить всё
WebstormКод: Выделить всё
AndroidStudioThanks
Источник: https://stackoverflow.com/questions/418 ... nd-android
Мобильная версия