Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cordova build android android.support.v4.content.FileProvider #58

Closed
ttgzs opened this issue Oct 18, 2017 · 2 comments
Closed

cordova build android android.support.v4.content.FileProvider #58

ttgzs opened this issue Oct 18, 2017 · 2 comments

Comments

@ttgzs
Copy link

ttgzs commented Oct 18, 2017

D:\vsdemo\UpdateAppDemo\UpdateDemo\platforms\android\src\com\vaenow\appupdate\android\DownloadHandler.java:14: ����: ���
��android.support.v4.content������
import android.support.v4.content.FileProvider;
^
D:\vsdemo\UpdateAppDemo\UpdateDemo\platforms\android\src\com\vaenow\appupdate\android\GenericFileProvider.java:3: ����: ��
���android.support.v4.content������
import android.support.v4.content.FileProvider;
^
D:\vsdemo\UpdateAppDemo\UpdateDemo\platforms\android\src\com\vaenow\appupdate\android\GenericFileProvider.java:9: ����: �Ҳ
�������
public class GenericFileProvider extends FileProvider {
^
����: �� FileProvider
D:\vsdemo\UpdateAppDemo\UpdateDemo\platforms\android\src\com\vaenow\appupdate\android\DownloadHandler.java:96: ����: �Ҳ�
������
:compileDebugJavaWithJavac FAILED

BUILD FAILED

Total time: 18.571 secs
Uri uri = FileProvider.getUriForFile(mContext, "com.vaenow.appupdate.android.provider", apkFile);
^
����: ���� FileProvider
�: �� DownloadHandler
ע: ijЩ�����ļ�ʹ�û򸲸����ѹ�ʱ�� API��
ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:deprecation ���±��롣
4 ������

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Error: cmd: Command failed with exit code 1 Error output:
    ע: ijЩ�����ļ�ʹ�û򸲸����ѹ�ʱ�� API��
    ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:deprecation ���±��롣
    D:\vsdemo\UpdateAppDemo\UpdateDemo\platforms\android\src\com\vaenow\appupdate\android\DownloadHandler.java:14: ����: ���
    ��android.support.v4.content������
    import android.support.v4.content.FileProvider;
    ^
    D:\vsdemo\UpdateAppDemo\UpdateDemo\platforms\android\src\com\vaenow\appupdate\android\GenericFileProvider.java:3: ����: ��
    ���android.support.v4.content������
    import android.support.v4.content.FileProvider;
    ^
    D:\vsdemo\UpdateAppDemo\UpdateDemo\platforms\android\src\com\vaenow\appupdate\android\GenericFileProvider.java:9: ����: �Ҳ
    �������
    public class GenericFileProvider extends FileProvider {
    ^
    ����: �� FileProvider
    D:\vsdemo\UpdateAppDemo\UpdateDemo\platforms\android\src\com\vaenow\appupdate\android\DownloadHandler.java:96: ����: �Ҳ�
    ������
    Uri uri = FileProvider.getUriForFile(mContext, "com.vaenow.appupdate.android.provider", apkFile);
    ^
    ����: ���� FileProvider
    �: �� DownloadHandler
    ע: ijЩ�����ļ�ʹ�û򸲸����ѹ�ʱ�� API��
    ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:deprecation ���±��롣
    4 ������

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
@ttgzs
Copy link
Author

ttgzs commented Oct 18, 2017

IThe issue has been resolved.
1.npm install --save cordova-plugin-android-support-v4
2.cordova plugin add cordova-plugin-android-support-v4
3.check plugin ionic cordova plugin list
4.remove android platform
5.cordova platform add android --nofetch
6.cordova build android
BUILD SUCCESSFUL

@ttgzs ttgzs closed this as completed Oct 18, 2017
@vaenow
Copy link
Owner

vaenow commented Oct 18, 2017

Ref: #17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants