I am trying to develop Android app, something with GPS, and using Google Maps API v2. This error (bigger picture in link) is showing up and app crashes immidiately after run.
我正在尝试开发Android应用程序,使用GPS,并使用Google Maps API v2。此错误(链接中的大图)显示,并且应用程序在运行后立即崩溃。
And here's the AndroidManifest.xml file:
这是AndroidManifest.xml文件:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bajo.moj.gpsreminder" >
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="19" />
<!-- dobivanje douštenja za MAPE -->
<permission
android:name="com.bajo.moj.gpsreminder.permission.MAPS_RECEIVE"
android:protectionLevel="signature"/>
<uses-permission android:name="com.bajo.moj.gpsreminder.MAPS_RECEIVE"/>
<!-- doupuštenje za Internet, vanjsku pohranu i ostalo-->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="com.google.android.providers.gfs.permission.READ_GSERVICES"/>
<!-- nije potrebno za Google Maps API v2, ali je recommended -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<!-- OpenGL verzija 2.0 za renderanje screen-a -->
<uses-feature
android:glEsVersion="0x00020000"
android:required="true"/>
<application
android:debuggable="true"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<!-- kljuc od Google-a -->
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyCV9Plzy-RcaJ30cnXw_jRgXjg5czLIS9A"/>
<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>
</application>
</manifest>
//Also, I am using 2 Java Activities like below: -> I am not.
//此外,我正在使用如下的2个Java活动: - >我不是。
- MainActivity code: MainActivity
-
LocationProvider code: LocationProvider
LocationProvider代码:LocationProvider
-
Error that's showing and why app still crashes...
显示错误以及为什么应用程序仍然崩溃...
MainActivity代码:MainActivity
1 个解决方案
#1
0
I am using 2 Java Activities like below
我正在使用2个Java活动,如下所示
Did you say you have two activities? If so, you haven't declared one of them in the manifest file.
你说你有两项活动吗?如果是这样,您还没有在清单文件中声明其中一个。
#1
0
I am using 2 Java Activities like below
我正在使用2个Java活动,如下所示
Did you say you have two activities? If so, you haven't declared one of them in the manifest file.
你说你有两项活动吗?如果是这样,您还没有在清单文件中声明其中一个。