Solution:
Let x be a configuration and x~ be another configuration obtained from x by removing two pebbles from a box and depositing them in another box.
Claim 1: x~ is solvable if and only if x is solvable.
Let us call two configurations equivalent if they have the same total number of pebbles and parities of the number of pebbles in the corresponding boxes are the same. (It does not matter whether we consider this equivalence for a fixed ordering of the boxes or up to permutation.) From Claim 1 it follows that two equivalent configurations are both solvable or both unsolvable. In particular, any configuration with 2n−1 or more pebbles is solvable, because it is equivalent to a configuration with no empty boxes.
Let us call a configuration with all boxes containing two or fewer pebbles scant. Every unsolvable configuration is equivalent to a scant configuration.
Claim 2: A scant configuration is solvable if and only if it contains no empty boxes.
By Claim 1 and Claim 2, addition of a pebble to a scant unsolvable configuration makes it solvable if and only if the configuration has exactly one empty box and the pebble is added to the empty box or to a box containing two pebbles. Hence, the addition of a pebble makes an unsolvable scant configuration into a solvable configuration irrespective of where it is added if and only if all boxes have even numbers of pebbles and exactly one of them is empty. Therefore, the addition of a pebble makes an unsolvable configuration into a solvable one irrespective of where the pebble is added if and only if the configuration has 2n−2 pebbles and all boxes have even numbers of pebbles.
Proof of Claim 1: Suppose that the two pebbles were moved from box B in x to box B~ in x~, and x is solvable. Then we perform exactly the same sequence of moves for x~ as we did for x except that instead of the first move that is made out of B we make a move from B~ (into the same box), and if there was no move from B, then at the end we make a move from B~ to B in case B is now empty.
Proof of Claim 2: Any move from a scant configuration either leaves the number of empty boxes the same and the resulting configuration is also scant (if it is made into an empty box), or increases the number of empty boxes by one (if it is made into a nonempty box). In the second case, if the move was made into a box containing one pebble, then the resulting configuration is still scant. On the other hand, if it is made into a box containing two pebbles, then the resulting configuration is equivalent to the scant configuration which has one pebble in the box the move was made into and exactly the same number of pebbles in all other boxes as the original configuration. Therefore, any sequence of moves from a scant configuration results in a configuration with more or the same number of empty boxes.