Rajesh Byroju
Rajesh Byroju

Reputation: 63

Your project requires a newer version of the Kotlin Gradle plugin. │

when I am trying to generate apk with command flutter build apk. I am getting the following error. FAILURE: Build failed with an exception.

A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable SigningConfig "release" is missing required property "storeFile".

│ [!] Your project requires a newer version of the Kotlin Gradle plugin.

My kotlin version is 1.8.0, Flutter version is 3.7.8 and Dart version is 2.19.5

I am unable to fix this.

Upvotes: 1

Views: 179

Answers (1)

Firas AT
Firas AT

Reputation: 508

SigningConfig "release" is missing required property "storeFile".

From your exception, it seems like you haven't generated an upload-keystore.jks (storeFile) for your project. Follow Flutter's guidelines here to find the command to generate the file.

Tip, move your generated key file to your flutterapp\android\app folder and simply reference it like so in your key.properties file.

storePassword=<password from previous step>
keyPassword=<password from previous step
keyAlias=upload
storeFile=upload-keystore.jks

And after doing so, make sure git doesn't upload your files by modifying your gitignore like so:

/android/app/*.jks

/android/key.properties

Upvotes: 0

Related Questions