Android, Missing airship_config.xml error message

Hello,

From our game's Android build from Unity 2020, we are seeing the following error for a while.

2021-11-15 14:30:35.934 23153-23153/? E/UALib-Unity: airship_config.xml not found. Make sure Urban Airship is configured Window => Urban Airship => Settings.

 

If I build an empty project only with Airship 8.1.0, built apk includes airship_config.xml in res/xml folder, but not our game.

 

I verified that urbanairship-resources.androidlib folder is properly generated & updated in our game's Unity project. Also the folder includes AndroidManifest.xml and proeject.properties. But the airship_config.xml couldn't be placed in the Android build.

 

The only thing I can verify is that airshipconfig.properties in assets folder in the Android build. Perhaps, is that only one Airship needs to launch? 

After the error, I am seeing the following log, too.

2021-11-15 14:44:03.847 24290-24328/? I/JW Alive - UALib: Airship taking off!
2021-11-15 14:44:03.847 24290-24328/? I/JW Alive - UALib: Airship log level: 3
2021-11-15 14:44:03.847 24290-24328/? I/JW Alive - UALib: UA Version: 14.1.1 / App key = sEAEucXWSdukLtCFDQoBxg Production = false
2021-11-15 14:44:03.876 24290-24328/? I/JW Alive - UALib: Setting platform to android for push provider: FCM Push Provider 14.1.1
2021-11-15 14:44:03.878 24290-24328/? I/JW Alive - UALib: Using push provider: FCM Push Provider 14.1.1
2021-11-15 14:44:03.883 24290-24336/? I/FA: App measurement initialized, version: 27000
2021-11-15 14:44:03.883 24290-24336/? I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
2021-11-15 14:44:03.883 24290-24336/? I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.ludia.jw2
2021-11-15 14:44:03.900 24290-24326/? D/FBAudienceNetwork: SDK dex loading time: 151
2021-11-15 14:44:03.975 1552-3584/? D/CompatibilityChangeReporter: Compat change id reported: 136274596; UID 10630; state: ENABLED
2021-11-15 14:44:03.986 24290-24328/? D/JW Alive - UALib: Migrating push enabled preferences
2021-11-15 14:44:03.989 24290-24328/? D/JW Alive - UALib: Setting user notifications enabled to false
2021-11-15 14:44:03.991 24290-24328/? I/JW Alive - UALib: Push is now enabled. You can continue to toggle the opt-in state by enabling or disabling user notifications
2021-11-15 14:44:04.003 1972-1972/? W/Choreographer: Frame time is 0.168162 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase.
2021-11-15 14:44:04.009 24290-24350/? D/JW Alive - UALib: NotificationChannelRegistryDataManager - Creating database
2021-11-15 14:44:04.031 30867-30867/? D/BoundBrokerSvc: onBind: Intent { act=com.google.android.gms.measurement.START pkg=com.google.android.gms }
2021-11-15 14:44:04.031 30867-30867/? D/BoundBrokerSvc: Loading bound service for intent: Intent { act=com.google.android.gms.measurement.START pkg=com.google.android.gms }
2021-11-15 14:44:04.070 24290-24336/? I/FA: Tag Manager is not found and thus will not be used
2021-11-15 14:44:04.076 24290-24328/? D/JW Alive - UALib: RemoteDataStore - Creating database
2021-11-15 14:44:04.119 21677-21695/? I/PermissionControllerServiceImpl: Updating user sensitive for uid 10630
2021-11-15 14:44:04.140 24290-24290/? I/IL2CPP: JNI_OnLoad
2021-11-15 14:44:04.154 24290-24328/? D/JW Alive - UALib: Airship - Setting data collection enabled to true
2021-11-15 14:44:04.157 24290-24290/? D/JW Alive - UALib: Analytics - New session: 052612f6-9586-42ae-b34f-8649ac71be59
2021-11-15 14:44:04.166 24290-24328/? I/JW Alive - UALib: Airship ready!
2021-11-15 14:44:04.174 24290-24360/? D/JW Alive - UALib: Automation - Updating triggers with type: 8
2021-11-15 14:44:04.179 24290-24360/? D/JW Alive - UALib: Automation - Updating triggers with type: 1

 

Please clear my confusion from Airship.

Thank you,

Danny

Didn't find what you were looking for?

New post

Comments

7 comments

  • Hi Danny,

    Thanks for reaching out to Airship Technical Support! We need the airshipconfig.properties file configured appropriately for our SDK to work as intended and the logs clearly show the app taking off. Could you please try reconfiguring the setup and let us know if the issue persists?

    Reference Documentation: https://docs.airship.com/platform/android/getting-started/

    Regards,

    Arushi S.
    Technical Support Engineer
    Airship | San Francisco, CA

    Comment actions Permalink
  • Hello Arushi,

    I tried to regenerate Airship configuration, however it doesn't affect any for not having airship_config.xml in built apk files.

    By the way, I am using Unity Airship sdk of yours and not being able to find airshipconfig.properties in there.

    Our game first integrated Airship 4 years ago and we keep using airshipconfig.properties until now and Airship seems to work fine.

    Perhaps, even Unity Airship SDK only require to have airshipconfig.properties in the assets folder of Android build? And the following is just mere warning?

    2021-11-15 14:30:35.934 23153-23153/? E/UALib-Unity: airship_config.xml not found. Make sure Urban Airship is configured Window => Urban Airship => Settings.

    Or if the Android build contains airshipconfig.properties in its assets folder, we don't need airship_config.xml to be placed in the res/xml folder of the Android build.

    Thank you,

    Danny

    Comment actions Permalink
    0
  • Hi Danny,

    Thanks for your reply! So, to understand correctly your Airship integration is working as expected without any issues? In order to avoid any unforeseen issues, we would advise you to also try configuring from scratch in a sample test project and see if the issue persists. 

    Reference Documentation:
    https://docs.airship.com/platform/unity/getting-started/
    https://docs.airship.com/platform/android/getting-started/

    Let us know if you have any additional questions or concerns.

    Comment actions Permalink
    0
  • Hello,

    I finally fixed the issue by adding 

    implementation project('urbanairship-resources.androidlib') in dependencies of gradle file.

    Now it could have proper setting and the error can't be seen.

    But there is one more issue regarding your UADependencies.xml. 

    <repository>https://urbanairship.bintray.com/android</repository>

    You are still using bintray which has been deprecated. Can you address it? 

    Thank you,

    Danny

     

    Comment actions Permalink
    0
  • Hello,

    I finally resolved the problem. It was resolved by putting

    implementation project('urbanairship-resources.androidlib')

    in the mainTemplate.gradle file.

    Thank you,

    Danny

    Comment actions Permalink
    0
  • If you're encountering the "Android, Missing airship_config.xml error message," it typically means the configuration file for the Airship SDK is missing. Ensure that the airship_config.xml file is correctly placed in the res/xml directory. For developers working on this, printed tote bags with tech-themed designs can be practical for carrying laptops and coding materials. These bags also showcase your dedication to solving technical challenges in style.

    Comment actions Permalink
    0
  • Driving is not just an art, it is a passion - Be the Drift Boss.

    Comment actions Permalink
    0

Please sign in to leave a comment.