java.lang.NoClassDefFoundError: com.google.android.gms.R$styleable in android

后端 未结 10 1939
忘掉有多难
忘掉有多难 2020-11-27 21:33

I tried a demo on displaying google maps v2 in android.

The java code is,

package com.example.gpslocator;

import android.os.Bundle;
import android         


        
10条回答
  •  情歌与酒
    2020-11-27 22:24

    When you've imported project google-play-services_lib to your IDE don't forget to check its properties. google-play-services_lib shall be build with the same version of Android SDK that you use for your project. For example your project and google-play-services are both build with Android 4.4.2. After that you should see that the lib is correctly built.

    Finally, you should add the following meta tag to the AndroidManifest.xml inside the ... tags:

    
    

提交回复
热议问题