nizwar / openvpn_flutter

A package that allow you to connect OpenVPN service with Flutter
https://pub.dev/packages/openvpn_flutter
GNU General Public License v3.0
84 stars 95 forks source link

Build APK Error From gradle #87

Closed rnetis closed 1 year ago

rnetis commented 1 year ago

hey guys i tried multiple times to get the build but every time i have the same issue from gradle here's the output of it:

Running Gradle task 'assembleRelease'...                        
Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 1284 bytes (99.9% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':openvpn_flutter:generateReleaseRFile'.
> Could not resolve all files for configuration ':openvpn_flutter:releaseCompileClasspath'.
   > Failed to transform fragment-1.3.6.aar (androidx.fragment:fragment:1.3.6) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-api}.
      > Could not find fragment-1.3.6.aar (androidx.fragment:fragment:1.3.6).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/fragment/fragment/1.3.6/fragment-1.3.6.aar
   > Failed to transform activity-1.2.4.aar (androidx.activity:activity:1.2.4) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-api}.
      > Could not find activity-1.2.4.aar (androidx.activity:activity:1.2.4).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/activity/activity/1.2.4/activity-1.2.4.aar
   > Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-api}.
      > Could not find core-1.7.0.aar (androidx.core:core:1.7.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/core/core/1.7.0/core-1.7.0.aar
   > Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.status=release}.
      > Could not find core-1.7.0.aar (androidx.core:core:1.7.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/core/core/1.7.0/core-1.7.0.aar
   > Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.status=release}.
      > Could not find core-1.7.0.aar (androidx.core:core:1.7.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/core/core/1.7.0/core-1.7.0.aar
   > Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.status=release}.
      > Could not find core-1.7.0.aar (androidx.core:core:1.7.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/core/core/1.7.0/core-1.7.0.aar
   > Failed to transform lifecycle-runtime-2.4.0.aar (androidx.lifecycle:lifecycle-runtime:2.4.0) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-api}.
      > Could not find lifecycle-runtime-2.4.0.aar (androidx.lifecycle:lifecycle-runtime:2.4.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-runtime/2.4.0/lifecycle-runtime-2.4.0.aar
   > Failed to transform lifecycle-viewmodel-savedstate-2.3.1.aar (androidx.lifecycle:lifecycle-viewmodel-savedstate:2.3.1) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-api}.
      > Could not find lifecycle-viewmodel-savedstate-2.3.1.aar (androidx.lifecycle:lifecycle-viewmodel-savedstate:2.3.1).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-viewmodel-savedstate/2.3.1/lifecycle-viewmodel-savedstate-2.3.1.aar
   > Failed to transform lifecycle-livedata-core-2.3.1.aar (androidx.lifecycle:lifecycle-livedata-core:2.3.1) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-api}.
      > Could not find lifecycle-livedata-core-2.3.1.aar (androidx.lifecycle:lifecycle-livedata-core:2.3.1).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-livedata-core/2.3.1/lifecycle-livedata-core-2.3.1.aar
   > Failed to transform lifecycle-livedata-core-2.3.1.aar (androidx.lifecycle:lifecycle-livedata-core:2.3.1) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.status=release}.
      > Could not find lifecycle-livedata-core-2.3.1.aar (androidx.lifecycle:lifecycle-livedata-core:2.3.1).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-livedata-core/2.3.1/lifecycle-livedata-core-2.3.1.aar
   > Failed to transform core-runtime-2.1.0.aar (androidx.arch.core:core-runtime:2.1.0) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.status=release}.
      > Could not find core-runtime-2.1.0.aar (androidx.arch.core:core-runtime:2.1.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/arch/core/core-runtime/2.1.0/core-runtime-2.1.0.aar
   > Failed to transform lifecycle-viewmodel-2.3.1.aar (androidx.lifecycle:lifecycle-viewmodel:2.3.1) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-api}.
      > Could not find lifecycle-viewmodel-2.3.1.aar (androidx.lifecycle:lifecycle-viewmodel:2.3.1).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-viewmodel/2.3.1/lifecycle-viewmodel-2.3.1.aar
   > Failed to transform lifecycle-viewmodel-2.3.1.aar (androidx.lifecycle:lifecycle-viewmodel:2.3.1) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.status=release}.
      > Could not find lifecycle-viewmodel-2.3.1.aar (androidx.lifecycle:lifecycle-viewmodel:2.3.1).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-viewmodel/2.3.1/lifecycle-viewmodel-2.3.1.aar
   > Failed to transform savedstate-1.1.0.aar (androidx.savedstate:savedstate:1.1.0) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-api}.
      > Could not find savedstate-1.1.0.aar (androidx.savedstate:savedstate:1.1.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/savedstate/savedstate/1.1.0/savedstate-1.1.0.aar

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 36s
Running Gradle task 'assembleRelease'...                           39.2s
Gradle task assembleRelease failed with exit code 1
rnetis commented 1 year ago

i've solved the problem the problem was with my dns configurations