Cannot build without making any changes (下載回來無法編譯)
carlchandev opened this issue · 2 comments
carlchandev commented
* What went wrong:
Execution failed for task ':demo:instantRunMainApkResourcesDebug'.
> Android resource linking failed
/Users/user/Documents/dev/workspace-android/ImageEditor-Android/demo/build/intermediates/instant_run_merged_manifests/debug/processDebugManifest/instant-run/AndroidManifest.xml:20: error: unexpected element <activity> found in <manifest>.
carlchandev commented
Found the solution
add back tag at
ImageEditor-Android/imageeditlibrary/src/main/AndroidManifest.xml
salmankhalid876 commented
Just open manifest file of library module and surround EditImageActivity activity with tag.
so its contents will look like:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xinlan.imageeditlibrary" >
<!--图片编辑Activity-->
<application>
<activity android:name="com.xinlan.imageeditlibrary.editimage.EditImageActivity">
</activity>
</application>
</manifest>