[清单文件&活动文件图片][1]我已将color=i
导入到我的项目中。在Android SDK
文件中,我尝试添加Manifest
中的activity
文件。但它显示为SDK
。我还尝试导入Unresolved Class
,抛出错误import com.socialize.ActionBarUtils;
。怎么解决?。
以下是我的清单文件
cannot resolve the symbol
下面是我的build.gradle文件
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.jeyashri.kitchen.jeyashriskitchen">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="@drawable/app_lg"
android:label="@string/app_name"
android:roundIcon="@drawable/app_lg"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity android:name=".Activity.SplashActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>>
<activity
android:name=".Activity.MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
</activity>
<activity android:name=".Activity.DetailActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
</activity>
<activity android:name=".Activity.RecipesActivity">
</activity>
<activity android:name=".Activity.AboutAuthActivity">
</activity>
<activity android:name=".Activity.FavouriteActivity">
</activity>
<!--Include the AdActivity configChanges and theme. -->
<activity
android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:theme="@android:style/Theme.Translucent" />
<!-- Activities Required by Socialize -->
<activity android:name="com.socialize.ui.comment.CommentArctivity" android:configChanges="orientation|keyboardHidden|screenSize"/>
<activity android:name="com.socialize.ui.action.ActionDetailActivity"/>
<activity android:name="com.socialize.ui.profile.ProfileActivity"/>
<activity android:name="com.socialize.auth.facebook.FacebookActivity"/>
<activity android:name="com.socialize.ui.SocializeLaunchActivity" android:noHistory="true"/>
</application>
</manifest>
这是我的SDK.gradle文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.jeyashri.kitchen.jeyashriskitchen"
minSdkVersion 21
targetSdkVersion 25
versionCode 1000
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
java.srcDirs = ['src/main/java', 'src/main/java/com.jeyashri.kitchen.jeyashrikitchen.Fragments', 'src/main/java/Fragements']
}
}
}
android {
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services-ads:8.4.0'
compile 'com.google.apis:google-api-services-youtube:v3-rev176-1.22.0'
}