如何解决致命异常并且无法在android中解析符号'R'?

时间:2016-12-24 05:45:34

标签: android

enter image description here

我正在研究我的大学最后一年项目,因为我对android开发没有太多了解我遇到这两个错误,当我一次又一次地添加一些文件或图像时,只能在我的主文件中只是,我尝试了所有stackoverflow解决方案(重建清洁项目的一切),谁能告诉我我在这里缺少什么?而且我在android清单文件中遇到问题,我已经按照developer.android.com和udacity的所有步骤进行了操作,但我认为这也存在一些问题,这里是我的清单文件:`

<!--
     The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
     Google Maps Android API v2, but you must specify either coarse or fine
     location permissions for the 'MyLocation' functionality. 
-->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">

    <!--
         The API key for Google Maps-based APIs is defined as a string resource.
         (See the file "res/values/google_maps_api.xml").
         Note that the API key is linked to the encryption key used to sign the APK.
         You need a different API key for each encryption key, including the release key that is used to
         sign the APK for publishing.
         You can define the keys for the debug and release targets in src/debug/ and src/release/. 
    -->
    <meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value="@string/google_maps_key" />

    <activity
        android:name=".Splash"
        android:label="@string/title_activity_maps">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <activity
        android:name="com.example.pinalmeruliya.current.MapsActivity"
        android:label="@string/title_activity_maps"
        android:parentActivityName="com.example.pinalmeruliya.current.Splash" >
        <!-- Parent activity meta-data to support 4.0 and lower -->
        <intent-filter>
            <action android:name="android.intent.action.VIEW" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>

        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="com.example.pinalmeruliya.current.Splash" />
    </activity>
    <activity
        android:name=".LoginActivity"
        android:label="@string/title_activity_maps"
        android:parentActivityName = "com.example.pinalmeruliya.current.MapsActivity" >
        <!-- Parent activity meta-data to support 4.0 and lower -->
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="com.example.pinalmeruliya.current.Splash" />
    </activity>


</application>

`

请帮助我......提前致谢!

0 个答案:

没有答案