Android Baidu map Error---Phone shows only one frame, no map content.

Source: Internet
Author: User

Android Novice Development Baidu Map, just started to encounter a problem, is that there is no map information, only a framework.



Surfing the internet to find out if it's a key problem, then reapply, or not.

Finally looked at their own manifest file, found their own <MataData> problems, placed in the new write application tag. Should be put in the application of the self-contained. Then, it's settled.

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 things are not very clear ...

Android Baidu map Error---Phone shows only one frame, no map content.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.