Closed mrunde closed 10 years ago
Hi, how do you run your application? in which IDE? The error might come from 'vtm' or 'vtm-android' not being packaged into the apk
I'm using eclipse and have the vtm
and vtm-android
folders added to the build path as JARs.
With eclipse one has to include android library projects also as eclipse project otherwise files from 'res' folders are not added to the apk
I have these external libraries included in the project to use the vtm:
vtm
and vtm-android
)I can use all files from the res
folder so I don't think that this might be the problem.
Did you create the vtm jars with gradle? If not, you can run './gradlew --info clean install' to see where gradle puts them and then include them manually in your project - vtm,vtm-android and vtm-themes are the ones you need.
Oh, I think that was the error. I didn't use gradle and created the jars manually. Thanks for your help.
Hi,
I always get an
ExceptionInInitializerError
when I set the content view in theonCreate(...)
function withsetContentView(R.layout.main);
. Do you have any idea what I may have done wrong? When I use the MapView from MapQuest it works. I followed your example fromBaseMapActivity
. You can find my main layout here.Thanks in advance! Marius