vaenow / cordova-plugin-app-update

App updater for Cordova/PhoneGap
MIT License
299 stars 147 forks source link

Building error in task ':compileDebugJavaWithJavac' #106

Open flight9 opened 6 years ago

flight9 commented 6 years ago

I met the error when building:

Error: cmd: Command failed with exit code 1 Error output:
D:\Cordova\cordupd\platforms\android\src\com\vaenow\appupdate\android\DownloadHandler.java:3: ����: �Ҳ������ �
import org.apache.cordova.BuildHelper;
                         ^
  ����:   �� BuildHelper
  �: ����� org.apache.cordova
D:\Cordova\cordupd\platforms\android\src\com\vaenow\appupdate\android\DownloadHandler.java:106: ����: �Ҳ����� ��
            String applicationId = (String) BuildHelper.getBuildConfigValue((Activity) mContext, "APPLICATION_ID");
                                            ^
  ����:   ���� BuildHelper
  �: �� DownloadHandler
2 ������

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.

The problem seems different with others', I've tried:

  1. cordova plugin add cordova-plugin-android-support-v4 (#58) -- not working
  2. add following 2 line into platforms/android/project.properties (#17) cordova.system.library.1=com.android.support:support-v4:+ cordova.system.library.2=com.android.support:support-v4:24.1.1+ -- not working

My Cordova Version: 7.0.1 cordova-android 6.2.3 cordova-plugin-app-update 1.6.0