Android Studio: Add jar as library?

后端 未结 30 2390
天命终不由人
天命终不由人 2020-11-21 05:54

I\'m trying to use the new Android Studio but I can\'t seem to get it working correctly.

I\'m using the Gson library to serialize/deserialize JSON-o

30条回答
  •  孤独总比滥情好
    2020-11-21 06:47

    'compile files...' used to work for me, but not any more. after much pain, I found that using this instead works:

    compile fileTree(dir: 'libs', include: '*.jar')

    I have no idea why that made a difference, but, at least the damn thing is working now.

提交回复
热议问题