siwangqishiq / ImageEditor-Android

AndroidImageEdit 安卓设备上图形编辑开源控件,支持磨皮美白 自定义贴图 图片滤镜 图片旋转 图片剪裁 文字贴图 撤销 回退 等操作
2.17k stars 566 forks source link

Cannot build without making any changes (下載回來無法編譯) #73

Open carlchandev opened 5 years ago

carlchandev commented 5 years ago
* 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 5 years ago

Found the solution add back tag at ImageEditor-Android/imageeditlibrary/src/main/AndroidManifest.xml

salmankhalid876 commented 5 years ago

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>