An exact sequence of
Pimsner for KK-groups of crossed products of C∗-algebras by locally compact groups
acting on trees is generalized to the case of crossed products twisted by a
circle-valued cocycle. The exact sequence is applied to the case of free products of
twisted group C∗-algebras. In particular, the K-groups of the free product of two
matrix algebras is computed.