Skip to content

Commit

Permalink
update AGP fix 「Failed to transform appcompat-resources-1.7.0.aar Can…
Browse files Browse the repository at this point in the history
…not invoke "String.length()" because "<parameter1>" is null」
  • Loading branch information
CarGuo committed Sep 25, 2024
1 parent 1295583 commit a757606
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
3 changes: 2 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ android {
configurations.all {
resolutionStrategy {
///为了 https://github.com/pichillilorenzo/flutter_inappwebview/issues/2150
force 'androidx.webkit:webkit:1.8.0'
///force 'androidx.webkit:webkit:1.8.0'
///为了 Failed to transform appcompat-resources-1.7.0.aar
///这玩意导致的 Failed to transform appcompat-resources-1.7.0.aar Cannot invoke "String.length()" because "<parameter1>" is null 居然要升级 AGP 8.6.1 才能适配,有毒
//force "androidx.appcompat:appcompat:1.6.1"
}
}
Expand Down
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.0.1" apply false
id "com.android.application" version "8.6.1" apply false
id "org.jetbrains.kotlin.android" version "1.8.10" apply false
}

Expand Down
13 changes: 6 additions & 7 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -325,14 +325,13 @@ packages:
source: hosted
version: "6.1.0+1"
flutter_inappwebview_android:
dependency: "direct overridden"
dependency: transitive
description:
path: flutter_inappwebview_android
ref: d89b1d32638b49dfc58c4b7c84153be0c269d057
resolved-ref: d89b1d32638b49dfc58c4b7c84153be0c269d057
url: "https://github.com/holzgeist/flutter_inappwebview"
source: git
version: "1.0.13"
name: flutter_inappwebview_android
sha256: "3556d47c28369162b92c53243fa1f3e6672fc6c0b180d06d482f62c93fc87d56"
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.1.0"
flutter_inappwebview_internal_annotations:
dependency: transitive
description:
Expand Down
10 changes: 5 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ dependency_overrides:
#gql_http_link: 0.3.2
#http_parser: 4.0.0
# fix inappwebview R8 issue https://github.com/pichillilorenzo/flutter_inappwebview/issues/2193
flutter_inappwebview_android:
git:
url: https://github.com/holzgeist/flutter_inappwebview
path: flutter_inappwebview_android
ref: d89b1d32638b49dfc58c4b7c84153be0c269d057
# flutter_inappwebview_android:
# git:
# url: https://github.com/holzgeist/flutter_inappwebview
# path: flutter_inappwebview_android
# ref: d89b1d32638b49dfc58c4b7c84153be0c269d057

dependencies:
flutter:
Expand Down

0 comments on commit a757606

Please sign in to comment.