PHONEGAP APK version can't send and retrieve data from server - ajax

I am a beginner in Android programming. I have a problem with CORS security policy. The application runs fine and normal in PHONEGAP Developer for Android, but the application does not run properly when the build APK release. Anyone can help me.
index.html
... <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com; style-src 'self' 'unsafe-inline'; media-src *">...
...<script type="text/javascript" src="cordova.js" ></script>...
...$.ajax({
type: "POST",crossDomain: true, cache: false,
url: "http://example.com/process.php",
data:{"category":"book"},
success: function(data){
alert(data)
},
error: function(){
alert(error);
}
});...
config.xml
...<plugin name="cordova-plugin-whitelist" source="npm" spec="~1.3.4" />...
...<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<allow-navigation href="http://*/*" />
<allow-navigation href="https://*/*" />
<allow-navigation href="data:*" />...
AndroidManifest.xml
...<uses-permission android:name="android.permission.INTERNET" />...
Build log APK
Build Date: 2020-08-06 00:21:43 +0000
--------------------------------------------------------------------------------
PLUGIN OUTPUT
--------------------------------------------------------------------------------
Fetching plugin "cordova-plugin-device#~1.1.6" via npm
Installing "cordova-plugin-device" at "1.1.7" for android
Fetching plugin "cordova-plugin-dialogs#~1.3.3" via npm
Installing "cordova-plugin-dialogs" at "1.3.4" for android
Fetching plugin "cordova-plugin-file#~4.3.3" via npm
Installing "cordova-plugin-file" at "4.3.3" for android
Fetching plugin "cordova-plugin-compat#^1.0.0" via npm
Installing "cordova-plugin-compat" at "1.2.0" for android
The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.
If this is a new application no changes are required.
If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
"<preference name="AndroidPersistentFileLocation" value="Compatibility" />"
to config.xml in order for the application to find previously stored files.
Fetching plugin "cordova-plugin-geolocation#~2.4.3" via npm
Installing "cordova-plugin-geolocation" at "2.4.3" for android
Plugin dependency "cordova-plugin-compat#1.2.0" already fetched, using that version.
Dependent plugin "cordova-plugin-compat" already installed on android.
Fetching plugin "cordova-plugin-inappbrowser#~1.7.1" via npm
Installing "cordova-plugin-inappbrowser" at "1.7.2" for android
Fetching plugin "cordova-plugin-network-information#~2.0.2" via npm
Installing "cordova-plugin-network-information" at "2.0.2" for android
Fetching plugin "cordova-plugin-cors#~1.0.0" via npm
Installing "cordova-plugin-cors" at "1.0.0" for android
Fetching plugin "cordova-plugin-whitelist#~1.3.4" via npm
Installing "cordova-plugin-whitelist" at "1.3.4" for android
--------------------------------------------------------------------------------
PROJECT PROPERTIES
--------------------------------------------------------------------------------
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=android-25
android.library.reference.1=CordovaLib
--------------------------------------------------------------------------------
COMPILE OUTPUT
--------------------------------------------------------------------------------
Subproject Path: CordovaLib
Could not initialize analytics, treating as opt-out.
java.io.FileNotFoundException: /.android/analytics.settings (No such file or directory)
at java.io.RandomAccessFile.open0(Native Method)
at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
at com.android.tools.analytics.AnalyticsSettings.saveSettings(AnalyticsSettings.java:266)
at com.android.tools.analytics.AnalyticsSettings.createNewAnalyticsSettings(AnalyticsSettings.java:202)
at com.android.builder.profile.ProcessRecorderFactory.initializeAnalytics(ProcessRecorderFactory.java:196)
at com.android.builder.profile.ProcessRecorderFactory.get(ProcessRecorderFactory.java:220)
at com.android.builder.profile.ProcessRecorderFactory.initialize(ProcessRecorderFactory.java:122)
at com.android.build.gradle.internal.profile.ProfilerInitializer.init(ProfilerInitializer.java:66)
at com.android.build.gradle.BasePlugin.apply(BasePlugin.java:310)
at com.android.build.gradle.AppPlugin.apply(AppPlugin.java:75)
at com.android.build.gradle.AppPlugin.apply(AppPlugin.java:41)
at org.gradle.api.internal.plugins.ImperativeOnlyPluginApplicator.applyImperative(ImperativeOnlyPluginApplicator.java:35)
at org.gradle.api.internal.plugins.RuleBasedPluginApplicator.applyImperative(RuleBasedPluginApplicator.java:43)
at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:139)
at org.gradle.api.internal.plugins.DefaultPluginManager.apply(DefaultPluginManager.java:112)
at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.applyType(DefaultObjectConfigurationAction.java:113)
at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.access$200(DefaultObjectConfigurationAction.java:36)
at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction$3.run(DefaultObjectConfigurationAction.java:80)
at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.execute(DefaultObjectConfigurationAction.java:136)
at org.gradle.api.internal.project.AbstractPluginAware.apply(AbstractPluginAware.java:44)
at org.gradle.api.internal.project.ProjectScript.apply(ProjectScript.java:34)
at org.gradle.api.Script$apply$0.callCurrent(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
at build_8tzjah0b3soj8j450dh9ulzvu.run(/var/gimlet/tmp/3677609/project/build.gradle:39)
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:90)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl$2.run(DefaultScriptPluginFactory.java:176)
at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:77)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:181)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:39)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26)
at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)
at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:70)
at org.gradle.configuration.project.LifecycleProjectEvaluator.access$000(LifecycleProjectEvaluator.java:33)
at org.gradle.configuration.project.LifecycleProjectEvaluator$1.execute(LifecycleProjectEvaluator.java:53)
at org.gradle.configuration.project.LifecycleProjectEvaluator$1.execute(LifecycleProjectEvaluator.java:50)
at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61)
at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:50)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:628)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:129)
at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:35)
at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:60)
at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:38)
at org.gradle.initialization.DefaultGradleLauncher$1.execute(DefaultGradleLauncher.java:161)
at org.gradle.initialization.DefaultGradleLauncher$1.execute(DefaultGradleLauncher.java:158)
at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:158)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:119)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:102)
at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:71)
at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:47)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_8tzjah0b3soj8j450dh9ulzvu.run(/var/gimlet/tmp/3677609/project/build.gradle:156)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
The ProjectDependency.getProjectConfiguration() method has been deprecated and is scheduled to be removed in Gradle 4.0.
ModuleDependency.getConfiguration() has been deprecated and is scheduled to be removed in Gradle 4.0. Use ModuleDependency.getTargetConfiguration() instead.
:preBuild UP-TO-DATE
:preReleaseBuild UP-TO-DATE
:checkReleaseManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl
:CordovaLib:compileReleaseNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseShaders
:CordovaLib:compileReleaseShaders
:CordovaLib:generateReleaseAssets
:CordovaLib:mergeReleaseAssets
:CordovaLib:mergeReleaseProguardFiles
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:compileReleaseRenderscript
:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources
:CordovaLib:packageReleaseResources
:CordovaLib:processReleaseManifest
:CordovaLib:generateReleaseBuildConfig
:CordovaLib:processReleaseResources
:CordovaLib:generateReleaseSources
:CordovaLib:incrementalReleaseJavaCompilationSafeguard
:CordovaLib:compileReleaseJavaWithJavac
:CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
:CordovaLib:mergeReleaseJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease
:CordovaLib:bundleRelease
:prepareProjectCordovaLibUnspecifiedReleaseLibrary
:prepareReleaseDependencies
:compileReleaseAidl
:compileReleaseRenderscript
:generateReleaseBuildConfig
:generateReleaseResValues
:generateReleaseResources
:mergeReleaseResources
:processReleaseManifest
:processReleaseResources
:generateReleaseSources
:incrementalReleaseJavaCompilationSafeguard
:compileReleaseJavaWithJavac
:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /var/gimlet/tmp/3677609/project/src/org/apache/cordova/file/AssetFilesystem.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:compileReleaseNdk UP-TO-DATE
:compileReleaseSources
:mergeReleaseShaders
:compileReleaseShaders
:generateReleaseAssets
:mergeReleaseAssets
:transformClassesWithDexForRelease
:mergeReleaseJniLibFolders
:transformNative_libsWithMergeJniLibsForRelease
:processReleaseJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForRelease
:packageRelease
:assembleRelease
:cdvBuildRelease
BUILD SUCCESSFUL
Total time: 1.803 secs
Built the following apk(s):
/var/gimlet/tmp/3677609/project/build/outputs/apk/project-release-unsigned.apk
Starting application signing
updating: META-INF/MANIFEST.MF
adding: META-INF/LSTECH.SF
adding: META-INF/LSTECH.RSA
signing: AndroidManifest.xml
signing: assets/www/config.xml
signing: assets/www/cordova.js
signing: assets/www/cordova_plugins.js
signing: assets/www/cors.php
signing: assets/www/index.html
signing: assets/www/jquery.min.js
signing: assets/www/phonegap.js
signing: assets/www/plugins/cordova-plugin-device/www/device.js
signing: assets/www/plugins/cordova-plugin-dialogs/www/android/notification.js
signing: assets/www/plugins/cordova-plugin-dialogs/www/notification.js
signing: assets/www/plugins/cordova-plugin-file/www/DirectoryEntry.js
signing: assets/www/plugins/cordova-plugin-file/www/DirectoryReader.js
signing: assets/www/plugins/cordova-plugin-file/www/Entry.js
signing: assets/www/plugins/cordova-plugin-file/www/File.js
signing: assets/www/plugins/cordova-plugin-file/www/FileEntry.js
signing: assets/www/plugins/cordova-plugin-file/www/FileError.js
signing: assets/www/plugins/cordova-plugin-file/www/FileReader.js
signing: assets/www/plugins/cordova-plugin-file/www/FileSystem.js
signing: assets/www/plugins/cordova-plugin-file/www/FileUploadOptions.js
signing: assets/www/plugins/cordova-plugin-file/www/FileUploadResult.js
signing: assets/www/plugins/cordova-plugin-file/www/FileWriter.js
signing: assets/www/plugins/cordova-plugin-file/www/Flags.js
signing: assets/www/plugins/cordova-plugin-file/www/LocalFileSystem.js
signing: assets/www/plugins/cordova-plugin-file/www/Metadata.js
signing: assets/www/plugins/cordova-plugin-file/www/ProgressEvent.js
signing: assets/www/plugins/cordova-plugin-file/www/android/FileSystem.js
signing: assets/www/plugins/cordova-plugin-file/www/browser/isChrome.js
signing: assets/www/plugins/cordova-plugin-file/www/fileSystemPaths.js
signing: assets/www/plugins/cordova-plugin-file/www/fileSystems-roots.js
signing: assets/www/plugins/cordova-plugin-file/www/fileSystems.js
signing: assets/www/plugins/cordova-plugin-file/www/requestFileSystem.js
signing: assets/www/plugins/cordova-plugin-file/www/resolveLocalFileSystemURI.js
signing: assets/www/plugins/cordova-plugin-geolocation/www/PositionError.js
signing: assets/www/plugins/cordova-plugin-geolocation/www/android/geolocation.js
signing: assets/www/plugins/cordova-plugin-inappbrowser/www/inappbrowser.js
signing: assets/www/plugins/cordova-plugin-network-information/www/Connection.js
signing: assets/www/plugins/cordova-plugin-network-information/www/network.js
signing: assets/www/process.js
signing: classes.dex
signing: res/drawable-hdpi-v4/ic_action_next_item.png
signing: res/drawable-hdpi-v4/ic_action_previous_item.png
signing: res/drawable-hdpi-v4/ic_action_remove.png
signing: res/drawable-mdpi-v4/ic_action_next_item.png
signing: res/drawable-mdpi-v4/ic_action_previous_item.png
signing: res/drawable-mdpi-v4/ic_action_remove.png
signing: res/drawable-xhdpi-v4/ic_action_next_item.png
signing: res/drawable-xhdpi-v4/ic_action_previous_item.png
signing: res/drawable-xhdpi-v4/ic_action_remove.png
signing: res/drawable-xxhdpi-v4/ic_action_next_item.png
signing: res/drawable-xxhdpi-v4/ic_action_previous_item.png
signing: res/drawable-xxhdpi-v4/ic_action_remove.png
signing: res/mipmap-hdpi-v4/icon.png
signing: res/mipmap-ldpi-v4/icon.png
signing: res/mipmap-mdpi-v4/icon.png
signing: res/mipmap-xhdpi-v4/icon.png
signing: res/mipmap-xxhdpi-v4/icon.png
signing: res/mipmap-xxxhdpi-v4/icon.png
signing: res/mipmap/icon.png
signing: res/xml/config.xml
signing: resources.arsc
jar signed.
Warning:
The signer's certificate is self-signed.
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2045-07-28) or after any future revocation date.
Finished application signing
Verifying alignment of /var/gimlet/tmp/3677609/project/build/outputs/apk/project-release.apk (4)...
50 META-INF/MANIFEST.MF (OK - compressed)
2183 META-INF/LSTECH.SF (OK - compressed)
4416 META-INF/LSTECH.RSA (OK - compressed)
5582 AndroidManifest.xml (OK - compressed)
6799 assets/www/config.xml (OK - compressed)
8257 assets/www/cordova.js (OK - compressed)
25817 assets/www/cordova_plugins.js (OK - compressed)
26788 assets/www/cors.php (OK - compressed)
27048 assets/www/index.html (OK - compressed)
28799 assets/www/jquery.min.js (OK - compressed)
59209 assets/www/phonegap.js (OK - compressed)
76794 assets/www/plugins/cordova-plugin-device/www/device.js (OK - compressed)
78188 assets/www/plugins/cordova-plugin-dialogs/www/android/notification.js (OK - compressed)
79258 assets/www/plugins/cordova-plugin-dialogs/www/notification.js (OK - compressed)
81116 assets/www/plugins/cordova-plugin-file/www/DirectoryEntry.js (OK - compressed)
82661 assets/www/plugins/cordova-plugin-file/www/DirectoryReader.js (OK - compressed)
83882 assets/www/plugins/cordova-plugin-file/www/Entry.js (OK - compressed)
86423 assets/www/plugins/cordova-plugin-file/www/File.js (OK - compressed)
87694 assets/www/plugins/cordova-plugin-file/www/FileEntry.js (OK - compressed)
89142 assets/www/plugins/cordova-plugin-file/www/FileError.js (OK - compressed)
90022 assets/www/plugins/cordova-plugin-file/www/FileReader.js (OK - compressed)
93206 assets/www/plugins/cordova-plugin-file/www/FileSystem.js (OK - compressed)
94279 assets/www/plugins/cordova-plugin-file/www/FileUploadOptions.js (OK - compressed)
95258 assets/www/plugins/cordova-plugin-file/www/FileUploadResult.js (OK - compressed)
95976 assets/www/plugins/cordova-plugin-file/www/FileWriter.js (OK - compressed)
98713 assets/www/plugins/cordova-plugin-file/www/Flags.js (OK - compressed)
99534 assets/www/plugins/cordova-plugin-file/www/LocalFileSystem.js (OK - compressed)
100197 assets/www/plugins/cordova-plugin-file/www/Metadata.js (OK - compressed)
101044 assets/www/plugins/cordova-plugin-file/www/ProgressEvent.js (OK - compressed)
102269 assets/www/plugins/cordova-plugin-file/www/android/FileSystem.js (OK - compressed)
103345 assets/www/plugins/cordova-plugin-file/www/browser/isChrome.js (OK - compressed)
104111 assets/www/plugins/cordova-plugin-file/www/fileSystemPaths.js (OK - compressed)
105319 assets/www/plugins/cordova-plugin-file/www/fileSystems-roots.js (OK - compressed)
106244 assets/www/plugins/cordova-plugin-file/www/fileSystems.js (OK - compressed)
106963 assets/www/plugins/cordova-plugin-file/www/requestFileSystem.js (OK - compressed)
108327 assets/www/plugins/cordova-plugin-file/www/resolveLocalFileSystemURI.js (OK - compressed)
110019 assets/www/plugins/cordova-plugin-geolocation/www/PositionError.js (OK - compressed)
110843 assets/www/plugins/cordova-plugin-geolocation/www/android/geolocation.js (OK - compressed)
111942 assets/www/plugins/cordova-plugin-inappbrowser/www/inappbrowser.js (OK - compressed)
113510 assets/www/plugins/cordova-plugin-network-information/www/Connection.js (OK - compressed)
114268 assets/www/plugins/cordova-plugin-network-information/www/network.js (OK - compressed)
115708 assets/www/process.js (OK - compressed)
116196 classes.dex (OK - compressed)
213060 res/drawable-hdpi-v4/ic_action_next_item.png (OK)
213424 res/drawable-hdpi-v4/ic_action_previous_item.png (OK)
213780 res/drawable-hdpi-v4/ic_action_remove.png (OK)
214096 res/drawable-mdpi-v4/ic_action_next_item.png (OK)
214408 res/drawable-mdpi-v4/ic_action_previous_item.png (OK)
214716 res/drawable-mdpi-v4/ic_action_remove.png (OK)
214988 res/drawable-xhdpi-v4/ic_action_next_item.png (OK)
215384 res/drawable-xhdpi-v4/ic_action_previous_item.png (OK)
215776 res/drawable-xhdpi-v4/ic_action_remove.png (OK)
216124 res/drawable-xxhdpi-v4/ic_action_next_item.png (OK)
216596 res/drawable-xxhdpi-v4/ic_action_previous_item.png (OK)
217068 res/drawable-xxhdpi-v4/ic_action_remove.png (OK)
217472 res/mipmap-hdpi-v4/icon.png (OK)
226468 res/mipmap-ldpi-v4/icon.png (OK)
229448 res/mipmap-mdpi-v4/icon.png (OK)
234064 res/mipmap-xhdpi-v4/icon.png (OK)
248152 res/mipmap-xxhdpi-v4/icon.png (OK)
275412 res/mipmap-xxxhdpi-v4/icon.png (OK)
317548 res/mipmap/icon.png (OK)
322153 res/xml/config.xml (OK - compressed)
323564 resources.arsc (OK)
Verification succesful
process.php
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS');...
We have also signed the APK file, but we still can't access the server even though we have installed the signed APK on smartphone
Log APK alignment
Aligning "example-release.3677609.56_SIGNED_UNALIGNED.apk" (4)...
50 META-INF/MANIFEST.MF (Compressed, Passed)
...
5,581 AndroidManifest.xml (Compressed, Passed)
6,798 assets/www/config.xml (Compressed, Passed)
8,256 assets/www/cordova.js (Compressed, Passed)
25,816 assets/www/cordova_plugins.js (Compressed, Passed)
26,787 assets/www/cors.php (Compressed, Passed)
27,047 assets/www/index.html (Compressed, Passed)
28,798 assets/www/jquery.min.js (Compressed, Passed)
59,208 assets/www/phonegap.js (Compressed, Passed)
76,793 assets/www/plugins/cordova-plugin-device/www/device.js (Compressed, Passed)
...
86,422 assets/www/plugins/cordova-plugin-file/www/File.js (Compressed, Passed)
87,693 assets/www/plugins/cordova-plugin-file/www/FileEntry.js (Compressed, Passed)
...
110,018 assets/www/plugins/cordova-plugin-geolocation/www/PositionError.js (Compressed, Passed)
110,842 assets/www/plugins/cordova-plugin-geolocation/www/android/geolocation.js (Compressed, Passed)
111,941 assets/www/plugins/cordova-plugin-inappbrowser/www/inappbrowser.js (Compressed, Passed)
113,509 assets/www/plugins/cordova-plugin-network-information/www/Connection.js (Compressed, Passed)
114,267 assets/www/plugins/cordova-plugin-network-information/www/network.js (Compressed, Passed)
115,707 assets/www/process.js (Compressed, Passed)
116,195 classes.dex (Compressed, Passed)
213,056 res/drawable-hdpi-v4/ic_action_next_item.png (Compressed, Passed)
...
317,526 res/mipmap/icon.png (Aligned, 2 B)
322,131 res/xml/config.xml (Compressed, Passed)
323,542 resources.arsc (Compressed, Passed)
Alignment done, output file: "example-release.3677609.56_SIGNED_ALIGNED.apk"

Related

problem with downloading with yt-dlp, getting time out error

i tried to download from youtube with yt-dlp, and got an error:
i've made sure i have yt-dlp installed and i also removed and installed it again ,
sudo pacman -Qi yt-dlp
Version : 2021.12.27-1
and im using windscribe vpn too,
the error is:
yt-dlp -F https://www.youtube.com/watch\?v=-bt_y4Loofg  ✔
[youtube] -bt_y4Loofg: Downloading webpage
WARNING: [youtube] Unable to download webpage: <urlopen error timed out>
[youtube] -bt_y4Loofg: Downloading android player API JSON
WARNING: [youtube] <urlopen error timed out>. Retrying ...
[youtube] -bt_y4Loofg: Downloading android player API JSON (retry #1)
WARNING: [youtube] <urlopen error timed out>. Retrying ...
[youtube] -bt_y4Loofg: Downloading android player API JSON (retry #2)
WARNING: [youtube] <urlopen error timed out>. Retrying ...
[youtube] -bt_y4Loofg: Downloading android player API JSON (retry #3)
[youtube] -bt_y4Loofg: Downloading iframe API JS
WARNING: [youtube] Unable to download webpage: <urlopen error timed out>
[youtube] -bt_y4Loofg: Downloading web player API JSON
WARNING: [youtube] <urlopen error timed out>. Retrying ...
[youtube] -bt_y4Loofg: Downloading web player API JSON (retry #1)
WARNING: [youtube] <urlopen error timed out>. Retrying ...
[youtube] -bt_y4Loofg: Downloading web player API JSON (retry #2)
WARNING: [youtube] <urlopen error timed out>. Retrying ...
[youtube] -bt_y4Loofg: Downloading web player API JSON (retry #3)
WARNING: [youtube] Unable to download API page: <urlopen error timed out> (caused by URLError(TimeoutError('timed out')))
ERROR: [youtube] -bt_y4Loofg: Unable to download API page: <urlopen error timed out> (caused by URLError(TimeoutError('timed out'))) (caused by URLError(TimeoutError('timed out')))
and i also tried with vpn off, and with youtube-dl too and it still didn't work,
here's the youtube-dl error:
youtube-dl -F https://www.youtube.com/watch\?v=-bt_y4Loofg  1 ✘  31s 
[youtube] -bt_y4Loofg: Downloading webpage
WARNING: Unable to download webpage: <urlopen error [Errno 104] Connection reset by peer>
[youtube] -bt_y4Loofg: Downloading API JSON
ERROR: Unable to download API page: <urlopen error [Errno 104] Connection reset by peer> (caused by URLError(ConnectionResetError(104, 'Connection reset by peer')))
i tried both with the url between single quotations and dbl-quotations and also without quotations but special characters scaped, so url doesn't seem to be the problem
and neither yt-dlp nor youtube-dl are working, so that's something to note,
and when i debug it with -v :
yt-dlp -v https://www.youtube.com/watch\?v=-bt_y4Loofg  1 ✘
[debug] Command-line config: ['-v', 'https://www.youtube.com/watch?v=-bt_y4Loofg']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2021.12.27 [6223f67a8]
[debug] Python version 3.10.1 (CPython 64bit) - Linux-5.15.16-1-MANJARO-x86_64-with-glibc2.33
[debug] exe versions: ffmpeg 4.4.1 (setts), ffprobe 4.4.1, rtmpdump 2.4
[debug] Optional libraries: Cryptodome, secretstorage, mutagen, sqlite, websockets
[debug] Proxy map: {}
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=-bt_y4Loofg
[youtube] -bt_y4Loofg: Downloading webpage
WARNING: [youtube] Unable to download webpage: <urlopen error [Errno 104] Connection reset by peer>
[youtube] -bt_y4Loofg: Downloading android player API JSON
WARNING: [youtube] <urlopen error [Errno 104] Connection reset by peer>. Retrying ...
[youtube] -bt_y4Loofg: Downloading android player API JSON (retry #1)
WARNING: [youtube] <urlopen error [Errno 104] Connection reset by peer>. Retrying ...
[youtube] -bt_y4Loofg: Downloading android player API JSON (retry #2)

mouseMove not working in firefox; giving http method not allowed

mouseMove is not working in firefox with the latest versions of Firefox, geckodriver, and protractor. Same code works fine for chrome 77.
I have the following environment:
Node: v10.16.3
Protractor: 5.4.2
Geckodriver: v0.25.0
firefox: 69.0.1 (64-bit)
browser.actions().mouseMove(element(by.xpath('//app-admin-panel/div/div/div/div[2]/table/tbody/tr/td[1]'))).perform();
This code snippet should hover over the specified element, but it throws the following error:
Message:
Failed: HTTP method not allowed
Stack:
WebDriverError: HTTP method not allowed
at parseHttpResponse (C:\Users\Hassan Sohail\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\http.js:536:11)
at doSend.then.response (C:\Users\Hassan Sohail\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\http.js:441:30)
at process._tickCallback (internal/process/next_tick.js:68:7)
From: Task: mouseMove
at Driver.schedule (C:\Users\Hassan Sohail\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver.js:807:17)
at actions.map.action (C:\Users\Hassan Sohail\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\actions.js:124:23)
at Array.map (<anonymous>)
at C:\Users\Hassan Sohail\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\actions.js:123:29
at TaskQueue.execute_ (C:\Users\Hassan Sohail\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:3084:14)
at TaskQueue.executeNext_ (C:\Users\Hassan Sohail\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:3067:27)
at asyncRun (C:\Users\Hassan Sohail\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2927:27)
at C:\Users\Hassan Sohail\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:668:7
at process._tickCallback (internal/process/next_tick.js:68:7)
From: Task: ActionSequence.perform
at ActionSequence.perform (C:\Users\Hassan Sohail\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\actions.js:122:33)
at UserContext.<anonymous> (E:\Office\Protractor\Wallboard\Smoketest.js:39:207)
at C:\Users\Hassan Sohail\AppData\Roaming\npm\node_modules\protractor\node_modules\jasminewd2\index.js:112:25
at new ManagedPromise (C:\Users\Hassan Sohail\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:1077:7)
at ControlFlow.promise (C:\Users\Hassan Sohail\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2505:12)
at schedulerExecute (C:\Users\Hassan Sohail\AppData\Roaming\npm\node_modules\protractor\node_modules\jasminewd2\index.js:95:18)
at TaskQueue.execute_ (C:\Users\Hassan Sohail\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:3084:14)
at TaskQueue.executeNext_ (C:\Users\Hassan Sohail\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:3067:27)
at asyncRun (C:\Users\Hassan Sohail\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2974:25)
at C:\Users\Hassan Sohail\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:668:7
From: Task: Run it("Make a Copy of Dashboard") in control flow
at UserContext.<anonymous> (C:\Users\Hassan Sohail\AppData\Roaming\npm\node_modules\protractor\node_modules\jasminewd2\index.js:94:19)
From asynchronous test:
Error
at Suite.<anonymous> (E:\Office\Protractor\Wallboard\Smoketest.js:38:5)
at Object.<anonymous> (E:\Office\Protractor\Wallboard\Smoketest.js:2:1)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
4 specs, 1 failure
Finished in 21.836 seconds
[11:41:20] I/launcher - 0 instance(s) of WebDriver still running
[11:41:20] I/launcher - firefox #01 failed 1 test(s)
[11:41:20] I/launcher - overall: 1 failed spec(s)
[11:41:20] E/launcher - Process exited with error code 1
It's a known issue (not sure if they fixed it yet) for FF.
I suggest you to use this https://www.npmjs.com/package/protractor-firefox-support
solved by updating direct connect value to false in protractor config
in case of chrome set it to true for local testing
directConnect: false

Network error using Chocolatey to install programs

I have tried just about everything on https://chocolatey.org/install
Here is the error I get using the method most strongly recommended:
Per their instructions, I used PowerShell to
'Set-ExecutionPolicy AllSigned'
I have also tried performing the install from PowerShell
with the following result:
I have also tried the "completely offline install" which involves manually downloading and extracting a nupkg file, but with similar results as the above. Do you have any insight into the errors I'm receiving? What should I do to get chocolatey installed?
Thank you in advance for any ideas you might have.
UPDATE: Click Here for the chocolatey log file. Snippet below to satisfy SO requirement:
2017-04-26 11:47:33,091 [DEBUG] - Configuration:
CommandName='install'|
CacheLocation='C:\Users\PARAGON\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='False'|Verbose='False'|Trace='False'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='True'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='choco'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='choco'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='6.2.9200.0'|
Information.PlatformName='Windows 8'|
Information.ChocolateyVersion='0.10.5.0'|
Information.ChocolateyProductVersion='0.10.5'|
Information.FullName='choco, Version=0.10.5.0, Culture=neutral,
PublicKeyToken=79d02ea9cad655eb'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.IsUserAdministrator='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.ScriptsCheckLastExitCode='False'|
ListCommand.LocalOnly='False'|
ListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'|
ListCommand.Exact='False'|ListCommand.ByIdOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
FeatureCommand.Command='unknown'|
ConfigCommand.Command='unknown'|PinCommand.Command='unknown'|
Proxy.BypassOnLocal='True'| 2017-04-26 11:47:33,095 [DEBUG] - _
Chocolatey:ChocolateyInstallCommand - Normal Run Mode _ 2017-04-26
11:47:33,102 [INFO ] - Installing the following packages: 2017-04-26
11:47:33,111 [INFO ] - choco 2017-04-26 11:47:33,119 [INFO ] - By
installing you accept licenses for the packages. 2017-04-26
11:47:33,517 [WARN ] - [NuGet] An error occurred while loading
packages from 'https://chocolatey.org/api/v2/': The remote server
returned an error: (403) Forbidden. 2017-04-26 11:47:33,531 [ERROR] -
choco not installed. The package was not found with the source(s)
listed. If you specified a particular version and are receiving this
message, it is possible that the package name exists but the version
does not. Version: "" Source(s): "https://chocolatey.org/api/v2/"
2017-04-26 11:47:33,558 [WARN ] - Chocolatey installed 0/1 packages.
1 packages failed. See the log for details
(C:\ProgramData\chocolatey\logs\chocolatey.log). 2017-04-26
11:47:33,569 [INFO ] - 2017-04-26 11:47:33,577 [ERROR] - Failures
2017-04-26 11:47:33,586 [ERROR] - - choco - choco not installed. The
package was not found with the source(s) listed. If you specified a
particular version and are receiving this message, it is possible that
the package name exists but the version does not. Version: ""
Source(s): "https://chocolatey.org/api/v2/" 2017-04-26 11:47:33,596
[WARN ] - Enjoy using Chocolatey? Explore more amazing features to
take your experience to the next level at
https://chocolatey.org/compare 2017-04-26 11:47:33,606 [DEBUG] -
Sending message 'PostRunMessage' out if there are subscribers...
2017-04-26 11:47:33,613 [DEBUG] - Exiting with 1
My guess is that most likely you are running into a SSL/TLS issue. We just switched the certificates out on Monday, and the old certificate expired on Tuesday. My guess is that you need to update your certificates or you have a caching of the old certificate for some reason.
The other possibility is there is a proxy in the way that is stopping you from reaching out.
Don't forget about your chocolatey.config. Appears you got blocked but for anyone visiting this question these are the relevant keys you'll need to fill out. Unless you've been a bad boy and got your IP black listed.
<config>
<add key="cacheLocation" value="" description="Cache location if not TEMP folder." />
<add key="containsLegacyPackageInstalls" value="true" description="Install has packages installed prior to 0.9.9 series." />
<add key="commandExecutionTimeoutSeconds" value="2700" description="Default timeout for command execution. '0' for infinite (starting in 0.10.4)." />
<add key="proxy" value="" description="Explicit proxy location. Available in 0.9.9.9+." />
<add key="proxyUser" value="" description="Optional proxy user. Available in 0.9.9.9+." />
<add key="proxyPassword" value="" description="Optional proxy password. Encrypted. Available in 0.9.9.9+." />
<add key="webRequestTimeoutSeconds" value="30" description="Default timeout for web requests. Available in 0.9.10+." />
<add key="proxyBypassList" value="" description="Optional proxy bypass list. Comma separated. Available in 0.10.4+." />
<add key="proxyBypassOnLocal" value="true" description="Bypass proxy for local connections. Available in 0.10.4+." />

Unable to run analysis on SonarQube after upgrade to version 6.2

I’m trying to run the analysis on SonarQube 6.2 using MSBuild scanner but I'm receiving an error immediately on the first C# file analyzed.
The error occurs also on a very simple test solution containing only two C# files.
The error is the following:
SonarAnalyzer for C# version 1.20.1.1275
0/2 files analyzed, starting to analyze: C:\TF\16\35\src\Net Projects\Solutions\Test\TestSonarQube\Program.cs
Failed to analyze the file: C:\TF\16\35\src\Net Projects\Solutions\Test\TestSonarQube\Program.cs
System.UnauthorizedAccessException: Access to the path 'C:\TF\16\35\src\Net Projects\Solutions\Test\TestSonarQube\Program.cs' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at SonarAnalyzer.Runner.CompilationHelper.GetSolutionFromFiles(String filePath, Encoding encoding, AnalyzerLanguage language)
at SonarAnalyzer.Runner.Program.RunAnalysis(ScannerAnalyzerConfiguration conf)
The analysis was working fine before the upgrade. The user used to run the analysis has full rights on all files to be analyzed. The files do not appear to be locked before the analysis.
I'm using the following configuration:
SonarQube v. 6.2
C# Plugin v 5.5.1.522
Sonar scanner for MsBuild v2.2.0.24
Here the full scanner log:
SonarQube Scanner for MSBuild 2.2
Default properties file was found at C:\SonarQube\sonar-scanner-msbuild-2.2.0.24\SonarQube.Analysis.xml
Loading analysis properties from C:\SonarQube\sonar-scanner-msbuild-2.2.0.24\SonarQube.Analysis.xml
sonar.verbose=true was specified - setting the log verbosity to 'Debug'
Pre-processing started.
Preparing working directories...
Using environment variables to determine the download directory...
Removing the existing directory: C:\**root path***\Sonar\.sonarqube
Creating directory: C:\**root path***\Sonar\.sonarqube
SonarQube server URL: http://**server***:9000
SonarQube Scanner for MSBuild 2.2
10:40:36.698 Loading analysis properties from C:\SonarQube\sonar-scanner-msbuild-2.2.0.24\SonarQube.Analysis.xml
10:40:36.713 sonar.verbose=true was specified - setting the log verbosity to 'Debug'
10:40:36.715 Updating build integration targets...
10:40:36.72 Installed SonarQube.Integration.ImportBefore.targets to C:\Users\**user***\AppData\Local\Microsoft\MSBuild\14.0\Microsoft.Common.targets\ImportBefore
10:40:36.721 Installed SonarQube.Integration.ImportBefore.targets to C:\Users\**user***\AppData\Local\Microsoft\MSBuild\12.0\Microsoft.Common.targets\ImportBefore
10:40:36.724 Installed SonarQube.Integration.targets to C:\**root path***\Sonar\.sonarqube\bin\targets
10:40:36.726 Creating config and output folders...
10:40:36.726 Creating directory: C:\**root path***\Sonar\.sonarqube\conf
10:40:36.727 Creating directory: C:\**root path***\Sonar\.sonarqube\out
10:40:36.736 Fetching analysis configuration settings...
10:40:36.745 Fetching properties for project 'TestSonarQube:MAIN' from http://**server***:9000/api/properties?resource=TestSonarQube%3AMAIN...
10:40:36.746 Downloading from http://**server***:9000/api/properties?resource=TestSonarQube%3AMAIN...
10:40:37.514 Downloading from http://**server***:9000/api/updatecenter/installed_plugins...
10:40:37.575 Fetching quality profile for project 'TestSonarQube:MAIN' from http://**server***:9000/api/qualityprofiles/search?projectKey=TestSonarQube%3AMAIN...
10:40:37.575 Downloading from http://**server***:9000/api/qualityprofiles/search?projectKey=TestSonarQube%3AMAIN...
10:40:37.755 Downloading from http://**server***:9000/api/rules/search?f=repo,name,severity,lang,internalKey,templateKey,params,actives&ps=500&activation=true&qprofile=cs-sonar-way-15151&p=1...
10:40:37.898 No active rules for cs
10:40:37.953 Pre-processing succeeded.
SonarQube Scanner for MSBuild 2.2
Default properties file was found at C:\SonarQube\sonar-scanner-msbuild-2.2.0.24\SonarQube.Analysis.xml
Loading analysis properties from C:\SonarQube\sonar-scanner-msbuild-2.2.0.24\SonarQube.Analysis.xml
Post-processing started.
SonarQube Scanner for MSBuild 2.2
10:40:39.425 Loading the SonarQube analysis config from C:\**root path***\Sonar\.sonarqube\conf\SonarQubeAnalysisConfig.xml
10:40:39.428 Not running under TeamBuild
10:40:39.428 Analysis base directory: C:\**root path***\Sonar\.sonarqube
Build directory:
Bin directory: C:\**root path***\Sonar\.sonarqube\bin
Config directory: C:\**root path***\Sonar\.sonarqube\conf
Output directory: C:\**root path***\Sonar\.sonarqube\out
Config file: C:\**root path***\Sonar\.sonarqube\conf\SonarQubeAnalysisConfig.xml
Generating SonarQube project properties file to C:\**root path***\Sonar\.sonarqube\out\sonar-project.properties
The supplied Code Analysis ErrorLog file is a valid json file and does not need to be fixed: C:\Software Development\Net Projects\Solutions\Test\TestSonarQube\bin\Debug\SampleProjectForAnalysis.exe.RoslynCA.json
WARNING: File is not under the project directory and cannot currently be analysed by SonarQube. File: C:\Users\**user***\AppData\Local\Temp\.NETFramework,Version=v4.5.1.AssemblyAttributes.cs, project: C:\Software Development\Net Projects\Solutions\Test\TestSonarQube\SampleProjectForAnalysis.csproj
Setting analysis property: sonar.visualstudio.enable=false
Writing processing summary to C:\**root path***\Sonar\.sonarqube\out\ProjectInfo.log
SONAR_SCANNER_OPTS is already set. Value: -Xmx2048m
Calling the SonarQube Scanner...
Overwriting the value of environment variable 'SONAR_SCANNER_OPTS'. Old value: -Xmx2048m, new value: -Xmx2048m
Executing file C:\SonarQube\sonar-scanner-msbuild-2.2.0.24\sonar-scanner-2.8\bin\sonar-scanner.bat
Args: -Dsonar.scanAllFiles=true -Dproject.settings=C:\**root path***\Sonar\.sonarqube\out\sonar-project.properties
Working directory: C:\**root path***\Sonar
Timeout (ms):-1
Process id: 17152
C:\SonarQube\sonar-scanner-msbuild-2.2.0.24\sonar-scanner-2.8\bin\..
INFO: Scanner configuration file: C:\SonarQube\sonar-scanner-msbuild-2.2.0.24\sonar-scanner-2.8\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: C:\**root path***\Sonar\.sonarqube\out\sonar-project.properties
10:40:40.025 INFO: SonarQube Scanner 2.8
10:40:40.031 INFO: Java 1.8.0_101 Oracle Corporation (64-bit)
10:40:40.032 INFO: Windows 10 10.0 amd64
10:40:40.032 INFO: SONAR_SCANNER_OPTS=-Xmx2048m
10:40:40.345 DEBUG: keyStore is :
10:40:40.346 DEBUG: keyStore type is : jks
10:40:40.346 DEBUG: keyStore provider is :
10:40:40.346 DEBUG: init keystore
10:40:40.347 DEBUG: init keymanager of type SunX509
10:40:40.575 INFO: User cache: C:\Users\**user***\.sonar\cache
10:40:40.575 DEBUG: Extract sonar-scanner-api-batch in temp...
10:40:40.583 DEBUG: Get bootstrap index...
10:40:40.584 DEBUG: Download: http://**server***:9000/batch_bootstrap/index
10:40:40.701 DEBUG: Get bootstrap completed
10:40:40.702 DEBUG: Create isolated classloader...
10:40:40.715 DEBUG: Start temp cleaning...
10:40:40.753 DEBUG: Temp cleaning done
10:40:40.754 DEBUG: Execution getVersion
10:40:40.764 DEBUG: Execution start
10:40:41.295 DEBUG: Publish global mode
10:40:41.454 INFO: Load global repositories
10:40:41.635 DEBUG: GET 200 http://**server***:9000/batch/global | time=176ms
10:40:41.729 INFO: Load global repositories (done) | time=276ms
10:40:41.754 INFO: User cache: C:\Users\**user***\.sonar\cache
10:40:42.059 INFO: Load plugins index
10:40:42.071 DEBUG: GET 200 http://**server***:9000/deploy/plugins/index.txt | time=12ms
10:40:42.071 INFO: Load plugins index (done) | time=12ms
10:40:42.073 DEBUG: Load plugins
10:40:42.093 DEBUG: Load plugins (done) | time=20ms
10:40:42.110 DEBUG: API compatibility mode is enabled on plugin ***custom*** Analyzer [***custom***codeanalysiscsharp] (built with API lower than 5.2)
10:40:42.112 DEBUG: API compatibility mode is enabled on plugin TFVC [scmtfvc] (built with API lower than 5.2)
10:40:42.403 DEBUG: Plugins:
10:40:42.404 DEBUG: * C# 5.5.1.522 (csharp)
10:40:42.404 DEBUG: * ***custom*** Analyzer 1.0.0.4 (***custom***codeanalysiscsharp)
10:40:42.404 DEBUG: * LDAP 2.1.0.507 (ldap)
10:40:42.404 DEBUG: * JavaScript 2.19.0.3866 (javascript)
10:40:42.405 DEBUG: * TFVC 2.1.2 (scmtfvc)
10:40:42.426 DEBUG: Execution getVersion
10:40:42.427 INFO: SonarQube server 6.2
10:40:42.427 INFO: Default locale: "en_US", source code encoding: "UTF-8"
10:40:42.428 DEBUG: Work directory: C:\**root path***\Sonar\.sonarqube\out\.sonar
10:40:42.429 DEBUG: Execution getVersion
10:40:42.429 DEBUG: Execution execute
10:40:43.192 INFO: Process project properties
10:40:43.206 DEBUG: Process project properties (done) | time=15ms
10:40:43.320 INFO: Load project repositories
10:40:43.791 DEBUG: GET 200 http://**server***:9000/batch/project.protobuf?key=TestSonarQube%3AMAIN | time=469ms
10:40:43.904 INFO: Load project repositories (done) | time=584ms
10:40:43.980 DEBUG: Available languages:
10:40:43.980 DEBUG: * C# => "cs"
10:40:43.980 DEBUG: * JavaScript => "js"
10:40:43.984 INFO: Load quality profiles
10:40:44.039 DEBUG: GET 200 http://**server***:9000/api/qualityprofiles/search.protobuf?projectKey=TestSonarQube%3AMAIN | time=54ms
10:40:44.045 INFO: Load quality profiles (done) | time=61ms
10:40:44.050 INFO: Load active rules
10:40:44.097 DEBUG: GET 200 http://**server***:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=cs-sonar-way-15151&p=1&ps=500 | time=46ms
10:40:44.169 DEBUG: GET 200 http://**server***:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=js-sonar-way-47608&p=1&ps=500 | time=49ms
10:40:44.176 INFO: Load active rules (done) | time=126ms
10:40:44.251 INFO: Publish mode
10:40:44.251 DEBUG: Start recursive analysis of project modules
10:40:44.253 INFO: ------------- Scan SampleProjectForAnalysis
10:40:44.393 INFO: Load server rules
10:40:44.610 DEBUG: GET 200 http://**server***:9000/api/rules/list.protobuf | time=217ms
10:40:44.632 INFO: Load server rules (done) | time=239ms
10:40:44.695 DEBUG: Initializers : GenericCoverageSensor
10:40:44.696 INFO: Initializer GenericCoverageSensor
10:40:44.696 INFO: Initializer GenericCoverageSensor (done) | time=0ms
10:40:44.697 INFO: Base dir: C:\Software Development\Net Projects\Solutions\Test\TestSonarQube
10:40:44.697 INFO: Working dir: C:\**root path***\Sonar\.sonarqube\out\.sonar\TestSonarQube_MAIN_TestSonarQube_MAIN_F1F49A3C-2CDE-4DC2-943C-BDE756CF7E64
10:40:44.698 INFO: Source paths: Program.cs, Properties/AssemblyInfo.cs, app.config, NuGet.config, packages.config
10:40:44.698 INFO: Source encoding: UTF-8, default locale: en_US
10:40:44.699 INFO: Index files
10:40:44.703 DEBUG: Declared extensions of language C# were converted to sonar.lang.patterns.cs : **/*.cs
10:40:44.703 DEBUG: Declared extensions of language JavaScript were converted to sonar.lang.patterns.js : **/*.js
10:40:44.710 DEBUG: Language of file 'Program.cs' is detected to be 'cs'
10:40:44.711 DEBUG: Language of file 'Properties/AssemblyInfo.cs' is detected to be 'cs'
10:40:44.728 INFO: Analyzer working directory does not exist
10:40:44.729 INFO: 2 files indexed
10:40:44.737 INFO: Quality profile for cs: Sonar way
10:40:44.741 DEBUG: Code colorizer, supported languages:
10:40:45.768 DEBUG: 'Generic Coverage Report' skipped because one of the required properties is missing
10:40:45.768 DEBUG: 'Generic Test Executions Report' skipped because one of the required properties is missing
10:40:45.779 DEBUG: 'JavaScript Squid Sensor' skipped because there is no related file in current project
10:40:45.781 DEBUG: Sensors : Lines Sensor -> SCM Sensor -> C# -> Coverage Report Import -> Coverage Report Import -> Unit Test Results Import -> Zero Coverage Sensor -> Code Colorizer Sensor -> CPD Block Indexer
10:40:45.782 INFO: Sensor Lines Sensor
10:40:45.800 INFO: Sensor Lines Sensor (done) | time=18ms
10:40:45.807 INFO: Sensor SCM Sensor
10:40:45.840 INFO: Sensor SCM Sensor (done) | time=33ms
10:40:45.841 INFO: Sensor C#
10:40:45.859 INFO: SonarAnalyzer.Scanner needs to be executed: true
10:40:47.974 INFO: SonarAnalyzer for C# version 1.20.1.1275
10:40:48.355 INFO: 0/2 files analyzed, starting to analyze: C:\Software Development\Net Projects\Solutions\Test\TestSonarQube\Program.cs
10:40:49.606 ERROR: Failed to analyze the file: C:\Software Development\Net Projects\Solutions\Test\TestSonarQube\Program.cs
10:40:49.611 ERROR: System.UnauthorizedAccessException: Access to the path 'C:\Software Development\Net Projects\Solutions\Test\TestSonarQube\Program.cs' is denied.
10:40:49.611 ERROR: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
10:40:49.611 ERROR: at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
10:40:49.611 ERROR: at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
10:40:49.611 ERROR: at SonarAnalyzer.Runner.CompilationHelper.GetSolutionFromFiles(String filePath, Encoding encoding, AnalyzerLanguage language)
10:40:49.612 ERROR: at SonarAnalyzer.Runner.Program.RunAnalysis(ScannerAnalyzerConfiguration conf)
10:40:49.637 INFO: ------------------------------------------------------------------------
10:40:49.637 INFO: EXECUTION FAILURE
10:40:49.637 INFO: ------------------------------------------------------------------------
10:40:49.637 INFO: Total time: 9.694s
10:40:49.769 INFO: Final Memory: 47M/254M
10:40:49.769 INFO: ------------------------------------------------------------------------
10:40:49.770 ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: The .NET analyzer failed with exit code: 1 - Verify that the .NET Framework version 4.5.2 at least is installed.
at org.sonar.plugins.csharp.CSharpSensor.analyze(CSharpSensor.java:159)
at org.sonar.plugins.csharp.CSharpSensor.executeInternal(CSharpSensor.java:104)
at org.sonar.plugins.csharp.CSharpSensor.execute(CSharpSensor.java:82)
at org.sonar.scanner.sensor.SensorWrapper.analyse(SensorWrapper.java:53)
at org.sonar.scanner.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:57)
at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:49)
at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:78)
at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:182)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:247)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:242)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:240)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:232)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:47)
at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:86)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:115)
at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:116)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at com.sun.proxy.$Proxy0.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233)
at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:110)
at org.sonarsource.scanner.cli.Main.execute(Main.java:74)
at org.sonarsource.scanner.cli.Main.main(Main.java:61)
10:40:49.806 ERROR:
10:40:49.806 ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
Process returned exit code 1
The SonarQube Scanner did not complete successfully
10:40:49.946 Creating a summary markdown file...
10:40:49.948 Post-processing failed. Exit code: 1

"Reference in the manifest does not match the identity..." Error

I've been looking around at how other people were solving this error and nothing worked for me. The library I am trying to include in my Application comes from an .exe (PowerTool.exe), everytime I try to install the application onto either my computer or a third parties computer, I receive this error:
PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.34209
System.Deployment.dll : 4.0.30319.34244 built by: FX452RTMGDR
clr.dll : 4.0.30319.34209 built by: FX452RTMGDR
dfdll.dll : 4.0.30319.34244 built by: FX452RTMGDR
dfshim.dll : 4.0.41209.0 (Main.041209-0000)
SOURCES
Deployment url : file:///C:/Users/zmcpher/Desktop/Apps/BatteryAutomation/MyAccount%20Battery%20Automation.application
Application url : file:///C:/Users/zmcpher/Desktop/Apps/BatteryAutomation/Application%20Files/MyAccount%20Battery%20Automation_1_0_0_5/MyAccount%20Battery%20Automation.exe.manifest
IDENTITIES
Deployment Identity : MyAccount Battery Automation.application, Version=1.0.0.5, Culture=neutral, PublicKeyToken=fba777f97efbcb75, processorArchitecture=msil
Application Identity : MyAccount Battery Automation.exe, Version=1.0.0.5, Culture=neutral, PublicKeyToken=fba777f97efbcb75, processorArchitecture=msil, type=win32
APPLICATION SUMMARY
* Installable application.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\zmcpher\Desktop\Apps\BatteryAutomation\MyAccount Battery Automation.application resulted in exception. Following failure messages were detected:
+ Reference in the manifest does not match the identity of the downloaded assembly PowerTool.exe.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [4/22/2015 12:43:19 PM] : Activation of C:\Users\zmcpher\Desktop\Apps\BatteryAutomation\MyAccount Battery Automation.application has started.
* [4/22/2015 12:43:19 PM] : Processing of deployment manifest has successfully completed.
* [4/22/2015 12:43:19 PM] : Installation of the application has started.
* [4/22/2015 12:43:19 PM] : Processing of application manifest has successfully completed.
* [4/22/2015 12:43:21 PM] : Found compatible runtime version 4.0.30319.
* [4/22/2015 12:43:21 PM] : Request of trust and detection of platform is complete.
ERROR DETAILS
Following errors were detected during this operation.
* [4/22/2015 12:43:21 PM] System.Deployment.Application.InvalidDeploymentException (RefDefValidation)
- Reference in the manifest does not match the identity of the downloaded assembly PowerTool.exe.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.DownloadManager.ProcessDownloadedFile(Object sender, DownloadEventArgs e)
at System.Deployment.Application.FileDownloader.DownloadModifiedEventHandler.Invoke(Object sender, DownloadEventArgs e)
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
I've tried changing the manifest, changing/deleting the refrences, deleting/rebuilding, opening/closing, and changing the project properties - and nothing seemed to work.
What am I missing? The program works fine when in debug mode, why wont it compile into an installation file? I am using VS2013
Thanks for any and all help
I know this is old but I saw someone just upvoted the question so I am assuming they are having the same problem.
The error was coming from an exe file that I was trying to bundle with the application. The exe file itself was a third party exe and I think that was where the problem was (even though I know I have bundled with other exe's in the past). Maybe this one had some kind of write protection - I dont know.
Anyways, how I solved it was to take the exe out of the installation files and just include the file separately in a zip file. Then have some instructions about which folder the exe file needs to go. As long as they follow the instructions, everything works as if you've bundled it.
I hope that helps.

Resources