Here I want build apk file for my flutter project. But a problem occurred when I build APK file with flutter build apk command. I already define flutter SDK path, android SDK path, JDK path in environment variable, but still this problem occurred. How to accomplish this?
Below I share the image of error which actually display in terminal.

How to build APK file from Flutter project?
1.9k views Asked by J M Bhikadiya At
1
There are 1 answers
Related Questions in ANDROID
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in FLUTTER
- Flutter + Dart: Editing name of a tab shows up a black screen
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- Way to get CustomPainter to track face in Camera Flutter MLKit
- flutter Null check error: did not show file and line number
- Creating multiple instances of a class with different initializing values in Flutter
- I want to paste stickers into to my TextField and to show the stickers beside the emojis
- Flutter plugin development android src not opening after opening example
- Module not found when building flutter app for IOS
- How to make barrier area interactive in flutter modal bottom sheet
- Can an RPC result be included in a Supabase select function in Flutter for Data Modeling?
- Why do I need to wait to reaccess to Firestore database even though it has already done before?
- Flutter web app on Windows -how to support mouse drag for horizontal and vertical scrolling as well as using mouse wheel
- I wrote this time displaying FLUTTER app, How can I improve it?
- Appwrite and / or Spring Boot Backend
- Flutter two_dimensional_scrollables Web app Chrome - cannot get horizontal scroll to work?
Related Questions in ANDROID-BUILD
- Duplicate class com.google.common.annotations.Beta found in modules jetified-guava-32.0.1-android and jetified-guava-jdk5-13.0
- Accessing a password in MacOS Keychain via Jenkins Execute shell
- android build failing as soon as react-native-pdf-lib is installed
- Renaming Android app Bundle and APK (.aab and .apk) files with app name, version and build type - build.gradle.kts
- How to configure build.gradle.kts file in android programming
- Flutter WooCommerce App Build Fails with permission_handler_android:extractDebugAnnotations Exception
- Can I enable native bridge on x86 cuttlefish
- Kotlin build task slowing build
- AOSP - how to get final contents of PRODUCT_PACKAGES while building
- Incorporating Prebuilt APK as Device Admin in AOSP Build with Pre-Granted Runtime Permissions for Android 14
- Cannot stat install-recovery.sh when building CM 13
- Facing problem as Android build failed in a react native expo app due to unknown error
- Execution failed for task ':app:createBundleReleaseJsAndAssets'. in expo
- What's the branch/tag for emualtor rom from google
- JavaMail for Android works for the debug version but not the release version
Related Questions in ANDROID-BUILDCONFIG
- How to retrieve the secrets from AWS Secrets manager and use in buildconfig.properties in android?
- What's the branch/tag for emualtor rom from google
- Is there any chance to keep global variable in global gradle which value can be updated in App modules and utilised in lib modules
- Can't set targetSdkVersion = 29
- Fixing the "Build Type contains custom BuildConfig fields, but the feature is disabled" error w/ buildConfigField
- Flutter cannot find build tools
- Android cannot find symbol BuildConfig
- buildConfigField not working after updating gradle to 7.0.3
- Reach the version code and name from a library module
- How to set applicationid for different flavor and buildtype?
- system error! on binary upload on Samung Seller Portal
- How disable dynatrace for debug builds android
- Android: Are there any methods to share a resource betwwen different falvors and sourceset?
- D8: Program type already present: androidx.renderscript.Allocation$1
- Replacement for BUILD_BROKEN_PHONY and phony-rebuild in android R
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)

You need to set the sdk dir for your project
Go to your Flutter Project -> Android if local.properties file was not there Create a file local.properties other wise open it Open the file paste your Android SDK path like below
Replace USERNAME with your user name
I will suggest to run
before creating the app file
example of how a local.properties file data look like
for Windows
for Mac
where sdk.dir is the sdk directory for android and flutter.sdk is sdk directory for flutter