Closed PremkumarAgrawal closed 7 years ago
not enough information
what is the error? environment? etc
On 25 Nov 2016 11:24, "Premkumar Agrawal" notifications@github.com wrote:
Hey @pbakondy https://github.com/pbakondy I am facing error while building my app, at this line, in sim.java file at line number 233,
ContextCompat.checkSelfPermission(this.cordova.getActivity(), type));
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pbakondy/cordova-plugin-sim/issues/44, or mute the thread https://github.com/notifications/unsubscribe-auth/AAej2XBgE6qlFnjjf-oz5SXoDXfDOnFmks5rBrdWgaJpZM4K8TL6 .
After hitting ionic run android I am getting following response on command prompt,
`F:\A_LHS_Projects\DynamicApp\DA_Code\DynamicApp_V2\platforms\android\src\com\pbakondy\Sim.java:233: error: cannot find symbol ContextCompat.checkSelfPermission(this.cordova.getActivity(), type)); ^ symbol: method checkSelfPermission(Activity,String) location: class ContextCompat
Note: Some input files use or override a deprecated API.
FAILED
Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
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: 13.068 secs
Error: Error code 1 for command: cmd with args: /s,/c,"F:\A_LHS_Projects\DynamicApp\DA_Code\DynamicApp_V2\platforms\android\gradlew cdvBuildDebug -b F:\A_LHS_Projects\DynamicApp\DA_Code\DynamicApp_V2\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"
F:\A_LHS_Projects\DynamicApp\DA_Code\DynamicApp_V2>`
Hey @pbakondy did you understood the issue..
Did you install Android requirements? https://github.com/pbakondy/cordova-plugin-sim#requirements
@pbakondy I have following support files of Android SDK installed
What is the version of Android Support Library?
Please run Android SDK Manager
and install latest packages.
Which SDK are you using?
@pbakondy My Android SDK version is 6.0 (API 23)
Android Support Library 23.2.1
Ok, let's try something else. I will make a few code changes, could you try it for me by installing it from github?
On 25 Nov 2016 13:21, "Premkumar Agrawal" notifications@github.com wrote:
@pbakondy https://github.com/pbakondy My Android SDK version is 6.0 (API 23)
Android Support Library 23.2.1
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pbakondy/cordova-plugin-sim/issues/44#issuecomment-262945962, or mute the thread https://github.com/notifications/unsubscribe-auth/AAej2ZEL28JOV7kdA_5D2uRyPfTzC0NDks5rBtKxgaJpZM4K8TL6 .
Yaa Sure... @pbakondy
Please try install the latest:
cordova plugin rm cordova-plugin-sim
cordova plugin add https://github.com/pbakondy/cordova-plugin-sim.git
Should i run both the commands
Hey @pbakondy have some urgent work.. will try later and get back to you...
Thanks for your instant support....
Yes, both commands The first one removes the installed plugin from npm, the second one installs the latest code
Hey @pbakondy I installed SIM plugin successfully, & its working finely. Thanks for your support..
Hi. what changes have you made in the code. I am facing the same issue.. please mention the changes, it will be useful for me. Thanks in advance
Hey @pbakondy I am facing error while building my app, at this line, in sim.java file at line number 233,
ContextCompat.checkSelfPermission(this.cordova.getActivity(), type));