wymsee / cordova-imagePicker

Cordova Plugin For Multiple Image Selection
MIT License
407 stars 853 forks source link

values-v24.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored' #247

Open Bubelbub opened 6 years ago

Bubelbub commented 6 years ago

Hey guys,

I have a problem with newest SDK 26 and this plugin. If I remove it then the error will not occur.

> cordova build android --release
✖ Running command - failed!
[ERROR] An error occurred while running cordova build android --release (exit code 1):

        (truncated) ... PI.
        Note: Recompile with -Xlint:deprecation for details.
        :CordovaLib:processReleaseJavaRes UP-TO-DATE
        :CordovaLib:transformResourcesWithMergeJavaResForRelease
        :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
        :CordovaLib:mergeReleaseJniLibFolders
        :CordovaLib:transformNative_libsWithMergeJniLibsForRelease
        :CordovaLib:transformNative_libsWithSyncJniLibsForRelease
        :CordovaLib:bundleRelease
        :prepareComAndroidSupportAnimatedVectorDrawable2540Library
        :prepareComAndroidSupportAppcompatV72540Library
        :prepareComAndroidSupportCustomtabs2540Library
        :prepareComAndroidSupportSupportCompat2540Library
        :prepareComAndroidSupportSupportCoreUi2540Library
        :prepareComAndroidSupportSupportCoreUtils2540Library
        :prepareComAndroidSupportSupportFragment2540Library
        :prepareComAndroidSupportSupportMediaCompat2540Library
        :prepareComAndroidSupportSupportV42540Library
        :prepareComAndroidSupportSupportVectorDrawable2540Library
        :prepareComCommit451PhotoView124Library
        :prepareComGithubErgoviaMobileAndroidTranscoderV0110R_ergoviaLibrary
        :prepareComGoogleAndroidGmsPlayServicesAnalytics1122Library
        :prepareComGoogleAndroidGmsPlayServicesAnalyticsImpl1122Library
        :prepareComGoogleAndroidGmsPlayServicesBase1122Library
        :prepareComGoogleAndroidGmsPlayServicesBasement1122Library
        :prepareComGoogleAndroidGmsPlayServicesGcm1122Library
        :prepareComGoogleAndroidGmsPlayServicesIid1122Library
        :prepareComGoogleAndroidGmsPlayServicesLocation1122Library
        :prepareComGoogleAndroidGmsPlayServicesTagmanagerV4Impl1122Library
        :prepareComGoogleAndroidGmsPlayServicesTasks1122Library
        :prepareComOnesignalOneSignal362Library
        :prepareComPaypalSdkPaypalAndroidSdk2153Library
        :prepareIoCardAndroidSdk540Library
        :prepareMeLeolinShortcutBadger1118Library
        :prepareOrgApacheCordovaCordovaLib630ReleaseLibrary
        :prepareReleaseDependencies
        :compileReleaseAidl
        :compileReleaseRenderscript
        :generateReleaseBuildConfig
        :generateReleaseResValues
        :generateReleaseResources
        :mergeReleaseResources
        :processReleaseManifest
        :processReleaseResources/bitrise/src/platforms/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

        /bitrise/src/platforms/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

        /bitrise/src/platforms/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

        /bitrise/src/platforms/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

          FAILED

        FAILURE: Build failed with an exception.

        * What went wrong:
        Execution failed for task ':processReleaseResources'.
        > com.android.ide.common.process.ProcessException: Failed to execute aapt

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

        BUILD FAILED

        Total time: 1 mins 50.102 secs
        Error: /bitrise/src/platforms/android/gradlew: Command failed with exit code 1 Error output:
        Note: Some input files use or override a deprecated API.
        Note: Recompile with -Xlint:deprecation for details.
        Note: Some input files use or override a deprecated API.
        Note: Recompile with -Xlint:deprecation for details.
        /bitrise/src/platforms/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

        /bitrise/src/platforms/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

        /bitrise/src/platforms/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

        /bitrise/src/platforms/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

        FAILURE: Build failed with an exception.

        * What went wrong:
        Execution failed for task ':processReleaseResources'.
        > com.android.ide.common.process.ProcessException: Failed to execute aapt

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

Do you know how to fix? Thanks in Advance!

matthieu80 commented 6 years ago

hi there, I am having this problem, have you found a solution? I understand it comes from different version of SDK builds and support... but I am not able to find exactly where to change them. Any help is welcome. thanks