Closed RageshAntony closed 3 years ago
I am experiencing build errors
v : 1.1.3
/Users/radicalstart/.gradle/caches/transforms-2/files-2.1/8c719ab381347948d45fa88e7c0d384d/jetified-payments-core-16.10.0/res/values/values.xml:392:5-411:13: AAPT: error: style attribute 'attr/cardForegroundColor (aka com.zipcab.ziprider:attr/cardForegroundColor)' not found.
/Users/radicalstart/.gradle/caches/transforms-2/files-2.1/8c719ab381347948d45fa88e7c0d384d/jetified-payments-core-16.10.0/res/values/values.xml:431:5-435:13: AAPT: error: style attribute 'attr/colorOnSurface (aka com.zipcab.ziprider:attr/colorOnSurface)' not found.
/Users/radicalstart/.gradle/caches/transforms-2/files-2.1/8c719ab381347948d45fa88e7c0d384d/jetified-payments-core-16.10.0/res/values/values.xml:444:5-453:13: AAPT: error: style attribute 'attr/colorSurface (aka com.zipcab.ziprider:attr/colorSurface)' not found.
android app.gradle
def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { localPropertiesFile.withReader('UTF-8') { reader -> localProperties.load(reader) } } def flutterRoot = localProperties.getProperty('flutter.sdk') if (flutterRoot == null) { throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") } def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '2' } def flutterVersionName = localProperties.getProperty('flutter.versionName') if (flutterVersionName == null) { flutterVersionName = '1.0.1' } apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'com.google.gms.google-services' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" apply plugin: 'com.google.firebase.crashlytics' android { compileSdkVersion 29 sourceSets { main.java.srcDirs += 'src/main/kotlin' } lintOptions { disable 'InvalidPackage' } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.zipcab.ziprider" minSdkVersion 21 targetSdkVersion 29 multiDexEnabled true versionCode 1 versionName '1.0' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } 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 '../..' } configurations.all { resolutionStrategy.force "com.google.android.gms:play-services-ads:19.3.0" resolutionStrategy.force "com.google.android.gms:play-services-base:17.3.0" resolutionStrategy.force "com.google.android.gms:play-services-basement:17.3.0" resolutionStrategy.force "com.google.android.gms:play-services-location:17.0.0" resolutionStrategy.force "com.google.android.gms:play-services-maps:17.0.0" } dependencies { implementation 'androidx.appcompat:appcompat:1.2.0' implementation group: 'com.google.android.material', name: 'material', version: '1.2.0' implementation "androidx.core:core:1.5.0" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' implementation platform('com.google.firebase:firebase-bom:25.12.0') implementation 'com.google.android.gms:play-services-auth:18.1.0' implementation 'com.google.firebase:firebase-analytics:17.2.2' implementation 'com.google.firebase:firebase-messaging:20.0.1' } allprojects { repositories { google() jcenter() } configurations.all { resolutionStrategy.force "androidx.core:core:1.5.0" resolutionStrategy { force 'com.google.android.gms:play-services-basement:16.0.1' force 'com.google.android.gms:play-services-base:16.0.1' force 'androidx.fragment:fragment:1.0.0' force 'com.google.android.material:material:1.0.0' } } } rootProject.buildDir = '../build' subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } subprojects { project.evaluationDependsOn(':app') } task clean(type: Delete) { delete rootProject.buildDir }
please help me
You'll need to use the correct compileSdkVersion, compare it with https://github.com/jonasbark/flutter_stripe_payment/blob/master/example/android/app/build.gradle#L33
I am experiencing build errors
v : 1.1.3
/Users/radicalstart/.gradle/caches/transforms-2/files-2.1/8c719ab381347948d45fa88e7c0d384d/jetified-payments-core-16.10.0/res/values/values.xml:392:5-411:13: AAPT: error: style attribute 'attr/cardForegroundColor (aka com.zipcab.ziprider:attr/cardForegroundColor)' not found.
/Users/radicalstart/.gradle/caches/transforms-2/files-2.1/8c719ab381347948d45fa88e7c0d384d/jetified-payments-core-16.10.0/res/values/values.xml:431:5-435:13: AAPT: error: style attribute 'attr/colorOnSurface (aka com.zipcab.ziprider:attr/colorOnSurface)' not found.
/Users/radicalstart/.gradle/caches/transforms-2/files-2.1/8c719ab381347948d45fa88e7c0d384d/jetified-payments-core-16.10.0/res/values/values.xml:444:5-453:13: AAPT: error: style attribute 'attr/colorSurface (aka com.zipcab.ziprider:attr/colorSurface)' not found.
android app.gradle
please help me