a method for producing an electronic device , the method including : encasing an electronic assembly with a first casing material ; holding the first electronic assembly encased by the first casing material over a holding element such that the holding element is spaced apart from the electronic assembly above the first casing material , and encasing the assembly retained on the holding element with a second casing material .