Android studio 2.1.2 gradle aapt Syntax error: Unterminated quoted string

前端 未结 2 521
天命终不由人
天命终不由人 2020-12-06 19:40

I am trying to run Android Studio 2.1.2 on 32bit linux Mint 17.3. Android studio is freshly installed. When I rebuild a project or create a new one, I get errors like this i

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-06 20:16

    It might be the case the newest Android Studio does not run on 32bit only system. On AndroidStudio download page the requirements for Linux are:

    64-bit distribution capable of running 32-bit applications

    There are also other StackOverflow questions regarding this:

    • Android Studio 64-bit ERROR: 32-bit Linux Android emulator binaries are DEPRECATED
    • ERROR: 32-bit Linux Android emulator binaries are DEPRECATED

    The former one states:

    Either one will allow you to use the 32-bit binaries,but please be aware that these will disappear in a future Android SDK release. Consider moving to a 64-bit Linux system before that happens.

    So it might be the case the newest version does not support 32bit anymore. Please try suggestions mentioned in the related answers (updating kernel/system). For Linux Mint there is mentioned [1]:

    1. Go to terminal
    2. type gedit .profile
    3. paste the below line at end of the page
    4. export ANDROID_EMULATOR_FORCE_32BIT=true
    5. type source .profile in terminal or restart system

    But it also might be the case the newest Android Studio version does not support 32bit-only system anymore. In that case try to use an older version.

提交回复
热议问题