Search Unity

Feedback Everything wrong with building to device!!

Discussion in 'Android' started by andyz, Aug 4, 2020.

  1. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,269
    This is 2018.4 LTS, maybe it has improved since? Let me know

    So trying to build an app to an android device seems to be really painful at times
    - first it always seems to rebuild the binary each time even if you made no changes which takes ages...
    - only after that long wait does it tell you there is some issue so you have to repeat the whole slow build...
    - errors are often a bit hidden in the console or log and some make no sense, e.g:
    Code (CSharp):
    1. CommandInvokationFailure: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details.
    2. C:\Users\user\AppData\Local\Android\sdk\platform-tools\adb.exe -s "XXXXX" install -r "D:\[folder]\[appname].aab"
    3.  
    4. stderr[
    5. adb.exe: filename doesn't end .apk or .apex: D:\[folder]\[appname].aab
    6. ]
    Now I unticked build to .aab so why is it mentioning this?? Is it still trying to build to old file name including extension?! (Edit: this is exactly what it does - it should force the correct extension)

    This could definitely be faster and less time wasting for the developer and just a nicer experience by checking things up front and not doing so much rebuilding each time and popping up a message with the key issue & what to do, rather than putting an error in the console among all other messages.
     
    Last edited: Aug 5, 2020