Closed ir2pid closed 4 years ago
@ir2pid 👋
The stack trace does not mention any problem specific to our SDK, but rather things like resource android:attr/fontVariationSettings not found
.
Can you give us more info on how this error is related to our SDK?
I tried adding adjust as per the ionic instructions here https://ionicframework.com/docs/v3/native/adjust/
When added builds fail with the mentioned error. Removing the plugin fixes the build. I tried a few other plugins and all those I tested works fine.
I'm not sure why it's breaking but adding this plugin is giving compatibility issues with existing ones.
below is the list of plugins I use
ionic cordova plugin list
> cordova plugin ls
cordova-clipboard 1.2.1 "Clipboard"
cordova-plugin-add-swift-support 2.0.2 "AddSwiftSupport"
cordova-plugin-advanced-http 2.1.1 "Advanced HTTP plugin"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.1.0 "cordova-plugin-ionic-webview"
cordova-plugin-is-debug 1.0.0 "IsDebug"
cordova-plugin-secure-storage 3.0.2 "SecureStorage"
cordova-plugin-splashscreen 5.0.3 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.4.6 "SocialSharing"
es6-promise-plugin 4.2.2 "Promise"
phonegap-plugin-barcodescanner 8.1.0 "BarcodeScanner"
ionic info ionic info
Ionic:
ionic (Ionic CLI) : 4.12.0
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.4
Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.4, ios 4.5.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.0, (and 14 other plugins)
System:
Android SDK Tools : 26.1.1 (/Users/user/Library/Android/sdk)
ios-deploy : 1.9.4
ios-sim : 8.0.1
NodeJS : v10.14.0 (/Users/user/.nvm/versions/node/v10.14.0/bin/node)
npm : 6.5.0
OS : macOS Mojave
Xcode : Xcode 10.3 Build version 10G8
@ir2pid Thanks for additional info. Could you also share the info about compatibility issues you've mentioned when you add our plugin? We do not specialise in ionic or cordova frameworks, and thus it might take us some time to try and figure out what seems to be the issue in your case.
@ir2pid It seems the problem is not our SDK. Could you please try the solution described here: https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview/issues/207
So I found the issue. As the google services dependency is set as the latest with (+) instead of a specific version, it doesn't build with any previous versions of gsm versions where breaking changes were introduced by google; and there are a lot e.g. here June 17, 2019
To fix this either
add the gradle dependency cordova plugin which fixes the issue
https://github.com/dpa99c/cordova-android-firebase-gradle-release
or
lock the google services version, fork your repo and replaced the plugin.xml entry
`<framework src="com.google.android.gms:play-services-analytics:+" />`
with
<framework src="com.google.android.gms:play-services-analytics:15.0.2" />
the compatible version 15.0.2 was found in the maven repo here by finding a compatible version from the specified release date. I did the same with other conflicting Cordova plugins in my project; 1. fork and 2. match the gms:play-services version and now the project builds.
@ir2pid First of all, thanks for info, it helps us a lot 🍻
The first suggested option did not work for me, and the second one, instead of editing that info in plugin.xml
, it has to be edited in project.properties
(but - within the ionic
app). Then, build passes successfully.
Another fix to this issue, which seems to be related to ionic
and cordova
, not our SDK:
https://forum.ionicframework.com/t/aapt-error-resource-android-attr-fontvariationsettings-not-found/167113
Hey @ir2pid
Any update on this one?
In case issue is still there, feel free to comment/reopen. Cheers.
My current project runs android 7.1.4
error
requirements
plugin.xml