如何解决upgrade plugin to version 2.3.3 and sync project
1个回答
2017-09-15 · 知道合伙人金融证券行家
关注
展开全部
在build.gradle根标签上加上useOldManifestMerger true,但是在使用这种方法时有可能会爆出下面的错误
Error:(4, 0) Gradle DSL method not found: 'useOldManifestMerger()'
Possible causes:<ul><li>The project 'JuliAPP_AS' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
<a href="fixGradleElements">Upgrade plugin to version 2.3.2 and sync project</a></li><li>The project 'JuliAPP_AS' may be using a version of Gradle that does not contain the method.
<a href="open.wrapper.file">Open Gradle wrapper file</a></li><li>The build file may be missing a Gradle plugin.
<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>
Error:(10, 0) Could not find method useOldManifestMerger() for arguments [true] on object of type com.android.build.gradle.AppExtension.
在AndroidMamifest.xml中修改成
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.juli.commonlibrary">
<application android:allowBackup="true" android:supportsRtl="true" >
<activity android:name="com.juli.commonlibrary.PhotoUtil.ImageGetActivity"/>
</application>
</manifest>
Error:(4, 0) Gradle DSL method not found: 'useOldManifestMerger()'
Possible causes:<ul><li>The project 'JuliAPP_AS' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
<a href="fixGradleElements">Upgrade plugin to version 2.3.2 and sync project</a></li><li>The project 'JuliAPP_AS' may be using a version of Gradle that does not contain the method.
<a href="open.wrapper.file">Open Gradle wrapper file</a></li><li>The build file may be missing a Gradle plugin.
<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>
Error:(10, 0) Could not find method useOldManifestMerger() for arguments [true] on object of type com.android.build.gradle.AppExtension.
在AndroidMamifest.xml中修改成
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.juli.commonlibrary">
<application android:allowBackup="true" android:supportsRtl="true" >
<activity android:name="com.juli.commonlibrary.PhotoUtil.ImageGetActivity"/>
</application>
</manifest>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询