Giter Club home page Giter Club logo

Comments (10)

chaosnote avatar chaosnote commented on July 21, 2024

any error message ?

from cordova-plugin-app-update.

developerGroup avatar developerGroup commented on July 21, 2024

I use mac book:

 ionic start myApp blank


cd myApp


ionic platforms add android

ionic plugin add cordova-plugin-app-update

npm install --save @ionic-native/app-update


then

ionic build android  


they will output:

:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

/Users/richard.g/Documents/workspaces/myApp/platforms/android/src/com/vaenow/appupdate/android/CheckAppUpdate.java:6: error: package android.support.v4.app does not exist
import android.support.v4.app.ActivityCompat;
                             ^

/Users/richard.g/Documents/workspaces/myApp/platforms/android/src/com/vaenow/appupdate/android/CheckAppUpdate.java:52: error: cannot find symbol
        int permission = ActivityCompat.checkSelfPermission(activity,
                         ^
  symbol:   variable ActivityCompat
  location: class CheckAppUpdate


/Users/richard.g/Documents/workspaces/myApp/platforms/android/src/com/vaenow/appupdate/android/CheckAppUpdate.java:57: error: cannot find symbol

            ActivityCompat.requestPermissions(activity, PERMISSIONS_STORAGE,

            ^
  symbol:   variable ActivityCompat

  location: class CheckAppUpdate

Note: /Users/richard.g/Documents/workspaces/myApp/platforms/android/src/org/apache/cordova/splashscreen/SplashScreen.java uses or overrides a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

3 errors

:compileDebugJavaWithJavac 
FAILED


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.


BUILD FAILED

Total time: 3.072 secs

Error: /Users/richard.g/Documents/workspaces/myApp/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/Users/richard.g/Documents/workspaces/myApp/platforms/android/src/com/vaenow/appupdate/android/CheckAppUpdate.java:6: error: package android.support.v4.app does not exist
import android.support.v4.app.ActivityCompat;
                             ^
/Users/richard.g/Documents/workspaces/myApp/platforms/android/src/com/vaenow/appupdate/android/CheckAppUpdate.java:52: error: cannot find symbol
        int permission = ActivityCompat.checkSelfPermission(activity,
                         ^
  symbol:   variable ActivityCompat
  location: class CheckAppUpdate
/Users/richard.g/Documents/workspaces/myApp/platforms/android/src/com/vaenow/appupdate/android/CheckAppUpdate.java:57: error: cannot find symbol
            ActivityCompat.requestPermissions(activity, PERMISSIONS_STORAGE,
            ^
  symbol:   variable ActivityCompat
  location: class CheckAppUpdate
Note: /Users/richard.g/Documents/workspaces/myApp/platforms/android/src/org/apache/cordova/splashscreen/SplashScreen.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors

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.

from cordova-plugin-app-update.

chaosnote avatar chaosnote commented on July 21, 2024

@developerGroup
see issues#17
#17

guess no import package android.support.v4

from cordova-plugin-app-update.

elysium93 avatar elysium93 commented on July 21, 2024

I have the same problem,how to solve it?
`:compileDebugJavaWithJavac FAILED

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.

BUILD FAILED

Total time: 2.76 secs

Error: cmd: Command failed with exit code 1 Error output:
C:\Users\Administrator\Desktop\love_xi2\platforms\android\src\com\vaenow\appupdate\android\CheckAppUpdate.java:52: ����: �Ҳ�������
int permission = ActivityCompat.checkSelfPermission(activity,
^
����: ���� checkSelfPermission(Activity,String)
�: �� ActivityCompat
C:\Users\Administrator\Desktop\love_xi2\platforms\android\src\com\vaenow\appupdate\android\CheckAppUpdate.java:57: ����: �Ҳ�������
ActivityCompat.requestPermissions(activity, PERMISSIONS_STORAGE,
^
����: ���� requestPermissions(Activity,String[],int)
�: �� ActivityCompat
ע: C:\Users\Administrator\Desktop\love_xi2\platforms\android\src\org\apache\cordova\splashscreen\SplashScreen.javaʹ�û򸲸����ѹ�ʱ�� API��
ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:deprecation ���±��롣
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.
    `

from cordova-plugin-app-update.

 avatar commented on July 21, 2024

Hello ,

in terminal insert this command:

ionic cordova plugin list

after in your list of plugin you would see

cordova-plugin-app-update 1.3.* "AppUpdate"

do now :

ionic cordova plugin remove cordova-plugin-app-update

and then it's would be fix !!

now run in your emalator :

ionic cordova run android

I hope this has helped you !

from cordova-plugin-app-update.

timataran avatar timataran commented on July 21, 2024

Hello, vaenow!
Recently I had the same issue, I couldn't build apk with AppUpdate plugin.
I've managed to get it back to work with some changes in plugin code.
Please, take a look. Does this solution have any downsides on your opinion?

from cordova-plugin-app-update.

arthursp avatar arthursp commented on July 21, 2024

resolved with last version ?

from cordova-plugin-app-update.

Amarpret avatar Amarpret commented on July 21, 2024

can this plugin work in ionic 1?

from cordova-plugin-app-update.

carlo318 avatar carlo318 commented on July 21, 2024

Yes, I am using it with Ionic 1 on Android 6.
Still have the issue that some times it works, some other times it hangs at the end of the download (I guess it is not related to Ionic).
See issue #107

from cordova-plugin-app-update.

Amarpret avatar Amarpret commented on July 21, 2024

after install plugin when build it show error
untitled

from cordova-plugin-app-update.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.