Google Maps Android API v2 - Sample Code crashes

前端 未结 8 1119
死守一世寂寞
死守一世寂寞 2020-11-30 22:43

I\'m trying to get the sample code of Android \'Google Maps Android API v2\' working. I get the project built without errors. However, when I try to run the app on my Galaxy

8条回答
  •  借酒劲吻你
    2020-11-30 23:30

    I had the same issue, I did the following to fix the problem.

    1. Go to "Properties" of the project.
    2. Select "Java Build Path"
    3. Select "Order and Export" Tab
    4. You should see the selected project's "src" and "gen" paths and dependencies here.

    The order how they listed were first "src" and then "gen" path I switch them, so that "gen" folder is build before the "src"

    THEN "Check" each one of the items listed

    see: NoClassDefFoundError for code in an Java library on Android

提交回复
热议问题