android project: process finished with non-zero exit value 2

前端 未结 5 822
孤城傲影
孤城傲影 2020-12-17 21:15

I\'m unable to compile my android project. Google and other SO posts tell me it (probably) has something to do with dependencies, but I can\'t find where. Here\'s the error:

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-17 21:43

    Android Studio suggests,

    Avoid using + in version numbers can lead to unpredictable and unrepeatable builds.

    + in dependencies lets you pick up automatically the latest available version rather than a specific one, however this is not recommended.

    You may have tested with a slightly different version than what build server used.

    After Removing Plus Sign and Adding a Specific Version problem was solved in my case.

提交回复
热议问题