record
record copied to clipboard
A problem occurred configuring project ':record'. > Failed to notify project evaluation listener. > Could not get unknown property 'android' for project ':record' of type org.gradle.api.Project.
Package version record: ^4.4.4
Environment
- OS: Windows
- JAVA: 17
- Android API 35
Describe the bug when building my app in android studio, the error below persists. (everything was just fine until I included the package "record")
A problem occurred configuring project ':record'.
> Failed to notify project evaluation listener.
> Could not get unknown property 'android' for project ':record' of type org.gradle.api.Project.
To Reproduce Steps to reproduce the behavior:
- run
./gradlew clean
or just run the app on any android device
Expected behavior run the app on device and build normally.
Additional context
android/setttings.gradle
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
}
ext {
// Update these versions as per documentation
compileSdkVersion = 34
minSdkVersion = 23 // or 26 for amrNb/amrWb, 29 for Opus
targetSdkVersion = 34
}
}
allprojects {
repositories {
google()
mavenCentral()
}
tasks.withType(JavaCompile) {
options.release = 17
}
}
rootProject.buildDir = "../build"
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(":app")
}
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
android build.gradle
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
}
ext {
// Update these versions as per documentation
compileSdkVersion = 34
minSdkVersion = 23 // or 26 for amrNb/amrWb, 29 for Opus
targetSdkVersion = 34
}
}
allprojects {
repositories {
google()
mavenCentral()
}
tasks.withType(JavaCompile) {
options.release = 17
}
}
rootProject.buildDir = "../build"
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(":app")
}
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
android/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
android/app/build.gradle
plugins {
id "com.android.application"
id "kotlin-android"
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
}
android {
compileSdkVersion 34 // Use appropriate version
namespace = "com.example.app" // This is not the actual name
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.example.app" // This is not the actual name
minSdkVersion 23 // record package needs minimum SDK 23, https://pub.dev/packages/record
targetSdkVersion 34
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.debug
}
}
}
flutter {
source = "../.."
}