By definition, hydrolysis is the breaking down of something (lysis) by water (hydro). So yes, strictly speaking you need water present for a hydrolysis. In principle this would mean it cannot occur in other liquids, but insofar as there are usually trace amounts of water in other solvents unless specific methods have been used to remove it, hydrolysis or other water-based reactions can still happen. It will depend on how sensitive your substance is to this kind of reaction.
If you are concerned about reactivity with water, you can simply dry your solvent using an appropriate drying agent before dissolution. Or you can store your substance in a dessicator or other dry environment if you are concerned with atmospheric water. It might be more helpful if you described your problem in a little more detail.
Also, just be aware that some substances that react with water can also react with alcohols as well, although the rate is usually slower. This may not be technically hydrolysis, in which water is actually added to the other reactant and consumed wholly in the process, but sometimes the term hydrolysis is used loosely to refer to any reaction with water. I'm not sure what the reaction is here, though, so I can't speculate further.