Android Development Novice Baidu Map, just started to encounter a problem, no map information, there is only one frame.
:
Search the Internet to say that it is a key problem, and then apply again. It's still not working.
Finally again looked at their own manifest file, found their <MataData> have problems. Put it in the new application tag. Should be put in the application of the self-contained. Then, it was conquered.
section of the manifest file:
<application android:allowbackup= "true" android:icon= "@drawable/ic_launcher" android:label= "@s Tring/app_name "Android:theme=" @style/apptheme "> <activity android:name=". Mainactivity "android:label=" @string/app_name "> <intent-filter> <action Android:name= "Android.intent.action.MAIN"/> <category android:name= "Android.intent.category.LAUNCHER "/> </intent-filter> </activity> <meta-data android:name=" com.baidu.lbs Api. Api_key "android:value=" Rsgguuanhapfn1mewsdg8vh2 "/> </application> <!--wrong place--><!-- <application>--><!--<meta-data>--><!--android:name= "Com.baidu.lbsapi.API_KE Y "--><!--android:value=" rsgguuanhapfn1mewsdg8vh2 "--><!-->--><!--</me ta-data>--><!--</aPplication>--
Hope to bring a solution to the same problem.
Either the problem with the key or the configuration of the manifest file.
Other others are not very clear.
。
Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.
Android Learning Record (c) Baidu Map Error---There is only one phone display frame, no map content.