You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searching for a week for this solution, I have try many things still and looking in this forum, also youtube ,I cant build any apk/appbundle for release my app update. My app currently live on appstore and google play need to be update. I need urgent help for this.
WARNING: This version of flutter_inappbrowser will break your Android build if it or its dependencies
aren't compatible with AndroidX.
[ ] See https://goo.gl/CP92wY for more information on the problem and how to fix it.
[ ] This warning prints for all Android build failures. The real root cause of the error may be
unrelated.
[ ] *********************************************************
[ ] 1 actionable task: 1 executed
[ +422 ms] Running Gradle task 'bundleRelease'... (completed in 38.0s)
[ +3 ms] "flutter appbundle" took 44,966ms.
Using latest version of build gradle/android studio/dart/flutter
I cant migrate to androidx , because flutter button is gray out. Following official guideline doest help.
Downgrading to mac os mojave, flutter version, seems doest help
Using latest plugin for all modules/library /plugin
Both apk/appbundle build release is failed, the apps run without problem in debug mode simulator and phone both working.
Flutter doctor:
[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.15 19A603, locale en-MY)
• Flutter version 1.9.1+hotfix.6 at /Users/macuser/flutter
• Framework revision 68587a0 (9 weeks ago), 2019-09-13 19:46:58 -0700
• Engine revision b863200c37
• Dart version 2.5.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/macuser/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.0, Build version 11A420a
• CocoaPods version 1.8.4
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 41.1.2
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
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.")
}
This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.
Hi ,
I have searching for a week for this solution, I have try many things still and looking in this forum, also youtube ,I cant build any apk/appbundle for release my app update. My app currently live on appstore and google play need to be update. I need urgent help for this.
WARNING: This version of flutter_inappbrowser will break your Android build if it or its dependencies
aren't compatible with AndroidX.
[ ] See https://goo.gl/CP92wY for more information on the problem and how to fix it.
[ ] This warning prints for all Android build failures. The real root cause of the error may be
unrelated.
[ ] *********************************************************
[ ] 1 actionable task: 1 executed
[ +422 ms] Running Gradle task 'bundleRelease'... (completed in 38.0s)
[ +3 ms] "flutter appbundle" took 44,966ms.
Gradle task bundleRelease failed with exit code 1
#0 throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1 _buildGradleProjectV2 (package:flutter_tools/src/android/gradle.dart:751:5)
#2 buildGradleProject (package:flutter_tools/src/android/gradle.dart:494:14)
#3 buildAppBundle (package:flutter_tools/src/android/app_bundle.dart:43:10)
#4 BuildAppBundleCommand.runCommand (package:flutter_tools/src/commands/build_appbundle.dart:47:11)
#5 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:490:18)
#6 _asyncThenWrapperHelper. (dart:async-patch/async_patch.dart:71:64)
#7 _rootRunUnary (dart:async/zone.dart:1132:38)
#8 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#9 _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#10 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#11 Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#12 Future._completeWithValue (dart:async/future_impl.dart:522:5)
#13 Future._asyncComplete. (dart:async/future_impl.dart:552:7)
#14 _rootRun (dart:async/zone.dart:1124:13)
#15 _CustomZone.run (dart:async/zone.dart:1021:19)
#16 _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#17 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:963:23)
#18 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#19 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#20 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:116:13)
#21 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:173:5)
What I have done is
Update gradle properties ->
org.gradle.jvmargs=-Xmx1536M
android.enableJetifier=true
android.useAndroidX=true
Using latest version of build gradle/android studio/dart/flutter
I cant migrate to androidx , because flutter button is gray out. Following official guideline doest help.
Downgrading to mac os mojave, flutter version, seems doest help
Using latest plugin for all modules/library /plugin
Both apk/appbundle build release is failed, the apps run without problem in debug mode simulator and phone both working.
Flutter doctor:
[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.15 19A603, locale en-MY)
• Flutter version 1.9.1+hotfix.6 at /Users/macuser/flutter
• Framework revision 68587a0 (9 weeks ago), 2019-09-13 19:46:58 -0700
• Engine revision b863200c37
• Dart version 2.5.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/macuser/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.0, Build version 11A420a
• CocoaPods version 1.8.4
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 41.1.2
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] Connected device (1 available)
• SM A505F • R58M24T353L • android-arm64 • Android 9 (API 28)
• No issues found!
Pubspec:
name: pkc
description:
version: 1.0.0+1
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
#flutter_inappbrowser: ^1.1.3
#carousel_pro: ^0.0.13
#share: ^0.6.0+1
#http: ^0.12.0
#flutter_staggered_grid_view: ^0.2.7
#cached_network_image: ^0.8.0
#intl: ^0.15.7
#shared_preferences: ^0.5.3+2
#webview_flutter: ^0.3.9+1
#native_widgets: ^1.0.1
#local_auth: ^0.4.0+1
#json_annotation: ^2.0.0
flutter_inappbrowser: ^1.2.1
carousel_pro: ^1.0.0
share: ^0.6.3+1
http: ^0.12.0+2
flutter_webview_plugin: ^0.3.8
flutter_staggered_grid_view: ^0.3.0
fluttertoast: ^3.1.3
cached_network_image: ^1.1.3
intl: ^0.15.8
shared_preferences: ^0.5.4+5
webview_flutter: ^0.3.15+1
native_widgets: ^1.3.2
local_auth: ^0.5.2+4
scoped_model: ^1.0.1
json_annotation: ^2.0.0
photo_view: ^0.8.0
url_launcher: ^5.2.5
cupertino_icons: ^0.1.2
dev_dependencies:
#flutter_launcher_icons: ^0.7.2
flutter_launcher_icons: ^0.7.2+1
json_serializable: ^2.0.0
flutter_icons:
android: "launcher_icon"
ios: true
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
assets:
fonts:
family: fira
fonts:
asset: assets/FiraSans-Regular.ttf
gradle:
buildscript {
ext.kotlin_version = '1.3.21'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.google.gms:google-services:4.3.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}
gradle wrapper:
#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-5.4.1-all.zip
app build 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 = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
//def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android {
compileSdkVersion 29
lintOptions {
disable 'InvalidPackage'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.pkc"
minSdkVersion 19
targetSdkVersion 29
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
flutter {
source '../..'
}
dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
}
The text was updated successfully, but these errors were encountered: