Collins Chinese Dictionary Plus (3rd edition), 2011:
挨
āi 动
1
(=靠近) be next to
- 网(網)吧挨着(著)一家礼(禮)品店。 Wǎngbā āizhe yī jiā lǐpǐndiàn. The Internet café is next to a gift shop.
- 两(兩)个(個)孩子挨着(著)门(門)坐。 Liǎng gè háizi āizhe mén zuò. The two children sat by the door.
2 (=逐个)
- 挨个(個)儿(兒) āigèr one by one
- 警察挨门(門)搜查。 Jǐngchá āi mén sōuchá. The police conducted a house-to-house search.
挨
ái 动
1
(=遭受) suffer
- 挨饿(餓) ái'è suffer from hunger
- 挨骂(罵) áimà get told off
2 (=艰难度过) endure
- 那么(麼)困难(難)的年代我们(們)都挨过(過)来(來)了,这(這)不算什么(麼)。 Nàme kùnnan de niándài wǒmen dōu ái guòlái le,zhè bù suàn shénme. We have all endured such difficult times that this seems insignificant.