Warning:project app:provided dependencies can only be jars. Com.android.support:appcompat-v7:22.2.0 is a android librarywarning:project app:provided dependencies can only be jars. Com.android.support:support-v4:22.2.0 is an android Library.
The above is the fault of the Androidstudio newspaper,
My build.gradle.
Apply plugin: ' Com.android.library ' android { compilesdkversion buildtoolsversion "23.0.0 RC2" defaultconfig { minsdkversion targetsdkversion versioncode 1 versionname "1.0" } Buildtypes { Release { minifyenabled false proguardfiles getdefaultproguardfile (' Proguard-android.txt '), ' Proguard-rules.pro ' } }}dependencies { compile filetree (dir: ' Libs ', Include: [' *.jar ']) provided ' com.android.support:appcompat-v7:22.2.0 ' provided ' Com.android.support: Support-v4:22.2.0 '}
Solution:
1. Open Project Settings
2. Modify the Gradle version
3. Complete the recompile and wish you success!
[Android Studio] dereference Library Packaging Exception--provided dependencies can only be jars