Gradle Error: 'buildConfigPackageName' property not specified

When I try to create my android project after updating to the latest version of android tools for Android developers, I get the following errors:

[Fatal Error]: 1: 38: expected pseudo-language attribute name.

FAILED

FAILURE: build failed with exception.

  • What went wrong: A problem was found with the task configuration: apoAppAndroid: generatePharmoreDebugBuildConfig. The value of the buildConfigPackageName property is not specified.

I, although the package name was deprecated, what am I doing wrong?

Here is a shortened version of my gradle file

apply plugin: 'android' android { compileSdkVersion 18 buildToolsVersion "20" defaultConfig { applicationId "com.bluechilli.apoappandroid" minSdkVersion 16 targetSdkVersion 19 versionCode 19 } signingConfigs { debug { storeFile file("../../../.android/debug.keystore") storePassword "android" keyAlias "androiddebugkey" keyPassword "android" } } buildTypes { release { runProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } productFlavors{ basic{ applicationId "com.bluechilli.basic" } pharmore{ applicationId "com.bluechilli.pharmore" } } } 
+6
source share
1 answer

you donโ€™t really need to determine the package name in AndroidManifest, just add it to build.gradle.

0
source

Source: https://habr.com/ru/post/971517/


All Articles