Open sanjeevinnobit opened 1 month ago
Update android/app/build.gradle:
Find the android section in your android/app/build.gradle file. Set multiDexEnabled to true in the defaultConfig section. Add the multiDex dependency in the dependencies section. Use flutter pub upgrade to update the dependencies.
Update Android Gradle Plugin and Wrapper:
Open android/build.gradle and update the classpath for com.android.tools.build:gradle : —> Example :- classpath "com.android.tools.build:gradle:7.1.3"
Open android/build.gradle and update the kotlin version : —> Example :- ext.kotlin_version = '1.9.0'
Open android/gradle/wrapper/gradle-wrapper.properties and update Wrapper properties —> Example :- distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
Clean and Rebuild:
flutter clean flutter pub get flutter build apk flutter run
I have fixed it for the latest flutter version
https://github.com/Faiyyaz/opensource-ecommerce-mobile-app
If you are okay with accepting PR then I will fork and raise a PR but for now sharing the link for my personal repository here
I have fixed it for the latest flutter version
https://github.com/Faiyyaz/opensource-ecommerce-mobile-app
If you are okay with accepting PR then I will fork and raise a PR but for now sharing the link for my personal repository here
I'm sorry to say, you have disappointed me. After failing so many times, I got hope seeing your link. But it's 404. I'm disappointed.
@bdsumon4u Can you check now? Sorry it was a private repo I made it public
@Faiyyaz, yes. It's now public and thanks for that. But can you please tell me which version of flutter did you use?
The flutter release I used was latest one as of that date and I think there are no major new version after that.
Getting error in Flutter run
When we are running
flutter run
we are facing some errors.These are the tasks that are failing: 1) Task :app:processDebugResources FAILED 2) Task :flutter_share:checkDebugAndroidTestAarMetadata FAILED 3) Task :just_audio:mergeDexDebugAndroidTest FAILED AGPBI: {"kind":"error","text":"Cannot fit requested classes in a single dex file (# methods: 68452 > 65536)","sources":[{}],"tool":"D8"} 4) Task :video_player_android:mergeDexDebugAndroidTest FAILED AGPBI: {"kind":"error","text":"Cannot fit requested classes in a single dex file (# methods: 67057 > 65536)","sources":[{}],"tool":"D8"} 5) AAPT2 process unexpectedly exit.
Expected behavior App should running.
Tools that are using