本文介绍了清单合并在添加io.github.jeancsanchez.jcplayer:jcplayer:0.0.2时失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在项目中添加jc播放器.但是当我尝试同步gradle时,出现以下错误.我该怎么办?错误:任务':app:processDebugManifest'的执行失败.
I am trying add jc player in my project. but when i try to sync gradle the give the following error. what should i do?Error:Execution failed for task ':app:processDebugManifest'.
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25"
defaultConfig {
applicationId "com.inc.musyc.musyc"
minSdkVersion 21
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
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'
compile 'com.google.firebase:firebase-auth:10.0.1'
compile 'com.google.firebase:firebase-database:10.0.1'
compile 'com.android.support:support-v4:25.3.1'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.theartofdev.edmodo:android-image-cropper:2.4.+'
compile 'com.google.firebase:firebase-storage:10.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.firebaseui:firebase-ui-database:1.1.1'
compile 'com.squareup.okhttp:okhttp:2.5.0'
compile 'com.google.firebase:firebase-messaging:10.0.1'
compile 'io.github.jeancsanchez.jcplayer:jcplayer:0.0.2'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
我的项目清单:
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.inc.musyc.musyc">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission
android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:name=".Persistence"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher_round"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<service android:name=".FirebaseMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<activity android:name=".AppMainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="com.inc.musyc.musyc_TARGET_NOTIFICATION" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".StartActivity"
android:parentActivityName=".AppMainActivity" />
<activity
android:name=".SignUpActivity"
android:parentActivityName=".StartActivity" />
<activity
android:name=".LogInActivity"
android:parentActivityName=".StartActivity" />
<activity
android:name=".SocialMainActivity"
android:parentActivityName=".AppMainActivity" />
<activity
android:name=".ForgotpassActivity"
android:parentActivityName=".LogInActivity" />
<activity android:name=".VerificationActivity" />
<activity android:name=".AccountSettingActivity" />
<activity android:name=".ChangeIntroActivity" />
<activity android:name=".ChangePassActivity" />
<activity android:name=".ChangeDesActivity" />
<activity
android:name="com.theartofdev.edmodo.cropper.CropImageActivity"
android:theme="@style/Base.Theme.AppCompat" />
<activity android:name=".DemoActivity" />
<activity android:name=".ProfileActivity" />
<activity android:name=".dumbActivity" />
<activity android:name=".CreatepostActivity" />
<activity android:name=".SinglePostViewActivity"></activity>
</application>
</manifest>
推荐答案
将其添加到AndroidManifest.xml
add This in AndroidManifest.xml
<application
android:name=".Persistence"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher_round"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:replace="android:icon">
这篇关于清单合并在添加io.github.jeancsanchez.jcplayer:jcplayer:0.0.2时失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!