Hello,
first thank you for this very practical plugin and a great documentation!
I contact you after going around the forums and possible problems but I can not find solutions to my problem. I have no problem with ios but the apk is not generated I have compilation problems with phonegapbuild.
f I put the plugin in the config.xml I have the error "uses-sdk: minSdkVersion 16 can not be smaller than version 19 declared in library [: tbxml-android:] /.gradle/caches/transforms-1/files -1.1 / tbxml-android.aar / f313d12e23efbeaf652901203bb1ce3e / AndroidManifest.xml as the library might be using APIs not available in 16 "
I then try to specify the version of sdk in the config.xml by adding:
I then have an unspecified java error and when I play with the version of cli I have a mistake PLAY_SERVICES_VERSION I confess I do not know too much or look at what to do if you have an idea I am interested after all the work on the application will annoy me to return on the API google maps web v3
my project on github : https://github.com/Olvrdu44/Colisclub-0304
Thnak you
Since nobody use Android 4.0 anymore, minSdkVersion is 19 (Android 4.4).
Oh you're very fast for reply :) !
i tried to specify in config.xml like this:
but i have another error:
Execution failed for task ':app:compileDebugJavaWithJavac'.
when i remove the plugin from the config.xml it works :(
Please show all error logs.
Build Date: 2018-05-16 22:46:56 +0000
--------------------------------------------------------------------------------
PREPARE OUTPUT
--------------------------------------------------------------------------------
Android Studio project detected
Generating platform-specific config.xml from defaults for android at /app/src/main/res/xml/config.xml
Merging project's config.xml into platform-specific android config.xml
Merging and updating files from [www, ../platform_www] to ../app/src/main/assets/www
mkdir ../app/src/main/assets/www/cordova-js-src
mkdir ../app/src/main/assets/www/cordova-js-src/android
copy ../platform_www/cordova-js-src/android/nativeapiprovider.js ../app/src/main/assets/www/cordova-js-src/android/nativeapiprovider.js (new file)
copy ../platform_www/cordova-js-src/android/promptbasednativeapi.js ../app/src/main/assets/www/cordova-js-src/android/promptbasednativeapi.js (new file)
copy ../platform_www/cordova-js-src/exec.js ../app/src/main/assets/www/cordova-js-src/exec.js (new file)
copy ../platform_www/cordova-js-src/platform.js ../app/src/main/assets/www/cordova-js-src/platform.js (new file)
mkdir ../app/src/main/assets/www/cordova-js-src/plugin
mkdir ../app/src/main/assets/www/cordova-js-src/plugin/android
copy ../platform_www/cordova-js-src/plugin/android/app.js ../app/src/main/assets/www/cordova-js-src/plugin/android/app.js (new file)
copy ../platform_www/cordova.js ../app/src/main/assets/www/cordova.js (updated file)
copy www/coursier.html ../app/src/main/assets/www/coursier.html (new file)
copy www/css/desktop.ini ../app/src/main/assets/www/css/desktop.ini (new file)
copy www/css/index.css ../app/src/main/assets/www/css/index.css (updated file)
copy www/desktop.ini ../app/src/main/assets/www/desktop.ini (new file)
copy www/img/Thumbs.db ../app/src/main/assets/www/img/Thumbs.db (new file)
copy www/img/check_radio_sheet.png ../app/src/main/assets/www/img/check_radio_sheet.png (new file)
copy www/img/check_radio_sheet_2.png ../app/src/main/assets/www/img/check_radio_sheet_2.png (new file)
delete ../app/src/main/assets/www/img/cordova.png (no source)
copy www/img/desktop.ini ../app/src/main/assets/www/img/desktop.ini (new file)
copy www/img/logo.jpg ../app/src/main/assets/www/img/logo.jpg (new file)
delete ../app/src/main/assets/www/img/logo.png (no source)
copy www/img/photoProfil.png ../app/src/main/assets/www/img/photoProfil.png (new file)
copy www/img/pointer_10.png ../app/src/main/assets/www/img/pointer_10.png (new file)
copy www/img/pointer_150.png ../app/src/main/assets/www/img/pointer_150.png (new file)
copy www/img/pointer_7.png ../app/src/main/assets/www/img/pointer_7.png (new file)
copy www/img/pointer_800.png ../app/src/main/assets/www/img/pointer_800.png (new file)
copy www/img/pointer_livreur.png ../app/src/main/assets/www/img/pointer_livreur.png (new file)
copy www/index.html ../app/src/main/assets/www/index.html (updated file)
copy www/indexmap.html ../app/src/main/assets/www/indexmap.html (new file)
copy www/jquery.avatar.js ../app/src/main/assets/www/jquery.avatar.js (new file)
copy www/jquery.js ../app/src/main/assets/www/jquery.js (new file)
copy www/js/desktop.ini ../app/src/main/assets/www/js/desktop.ini (new file)
copy www/js/index.js ../app/src/main/assets/www/js/index.js (updated file)
Wrote out android application name "ColisClub" to /app/src/main/res/values/strings.xml
android-versionCode not found in config.xml. Generating a code based on version in config.xml (1.0.0): 10000
Wrote out Android package name "fr.rainetcom.colisclub" to /app/src/main/java/fr/rainetcom/colisclub/ColisClub.java
Updating icons at ../app/src/main/res
copy res/icon/android/icon-72-hdpi.png ../app/src/main/res/mipmap-hdpi/icon.png (updated file)
copy res/icon/android/icon-36-ldpi.png ../app/src/main/res/mipmap-ldpi/icon.png (updated file)
copy res/icon/android/icon-48-mdpi.png ../app/src/main/res/mipmap-mdpi/icon.png (updated file)
copy res/icon/android/icon-96-xhdpi.png ../app/src/main/res/mipmap-xhdpi/icon.png (updated file)
delete ../app/src/main/res/mipmap-xxhdpi/icon.png (no source)
delete ../app/src/main/res/mipmap-xxxhdpi/icon.png (no source)
Updating splash screens at ../app/src/main/res
copy res/screen/android/screen-hdpi-landscape.png ../app/src/main/res/drawable-land-hdpi/screen.png (updated file)
copy res/screen/android/screen-ldpi-landscape.png ../app/src/main/res/drawable-land-ldpi/screen.png (updated file)
copy res/screen/android/screen-mdpi-landscape.png ../app/src/main/res/drawable-land-mdpi/screen.png (updated file)
copy res/screen/android/screen-xhdpi-landscape.png ../app/src/main/res/drawable-land-xhdpi/screen.png (updated file)
delete ../app/src/main/res/drawable-land-xxhdpi/screen.png (no source)
delete ../app/src/main/res/drawable-land-xxxhdpi/screen.png (no source)
copy res/screen/android/screen-hdpi-portrait.png ../app/src/main/res/drawable-port-hdpi/screen.png (updated file)
copy res/screen/android/screen-ldpi-portrait.png ../app/src/main/res/drawable-port-ldpi/screen.png (updated file)
copy res/screen/android/screen-mdpi-portrait.png ../app/src/main/res/drawable-port-mdpi/screen.png (updated file)
copy res/screen/android/screen-xhdpi-portrait.png ../app/src/main/res/drawable-port-xhdpi/screen.png (updated file)
delete ../app/src/main/res/drawable-port-xxhdpi/screen.png (no source)
delete ../app/src/main/res/drawable-port-xxxhdpi/screen.png (no source)
This app does not have additional resource files defined
Prepared android project successfully
--------------------------------------------------------------------------------
PLUGIN OUTPUT
--------------------------------------------------------------------------------
Fetching plugin "onesignal-cordova-plugin@^2.2.2" via npm
Installing "onesignal-cordova-plugin" at "2.4.0" for android
Android Studio project detected
Subproject Path: CordovaLib
Subproject Path: app
Fetching plugin "cordova-plugin-whitelist@^1.3.3" via npm
Installing "cordova-plugin-whitelist" at "1.3.3" for android
Android Studio project detected
This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
Fetching plugin "cordova-plugin-media-capture@^3.0.1" via npm
Installing "cordova-plugin-media-capture" at "3.0.2" for android
Fetching plugin "cordova-plugin-file@^6.0.0" via npm
Installing "cordova-plugin-file" at "6.0.1" for android
Android Studio project detected
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-dialogs@^2.0.1" via npm
Installing "cordova-plugin-dialogs" at "2.0.1" for android
Android Studio project detected
Fetching plugin "cordova-plugin-network-information@^2.0.1" via npm
Installing "cordova-plugin-network-information" at "2.0.1" for android
Android Studio project detected
Plugin "cordova-plugin-file" already installed on android. Making it top-level.
Fetching plugin "cordova-plugin-camera@^4.0.2" via npm
Installing "cordova-plugin-camera" at "4.0.3" for android
Android Studio project detected
Subproject Path: CordovaLib
Subproject Path: app
Fetching plugin "cordova-plugin-file-transfer@^1.7.1" via npm
Installing "cordova-plugin-file-transfer" at "1.7.1" for android
Plugin dependency "[email protected]" already fetched, using that version.
Dependent plugin "cordova-plugin-file" already installed on android.
Android Studio project detected
Fetching plugin "cordova-plugin-console@^1.1.0" via npm
Installing "cordova-plugin-console" at "1.1.0" for android
Android Studio project detected
Fetching plugin "cordova-plugin-inappbrowser@^2.0.2" via npm
Installing "cordova-plugin-inappbrowser" at "2.0.2" for android
Android Studio project detected
Fetching plugin "cordova-plugin-googlemaps@^2.3.1" via npm
Installing "cordova-plugin-googlemaps" at "2.3.1" for android
Android Studio project detected
Subproject Path: CordovaLib
Subproject Path: app
Official document
https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/README.md
Fetching plugin "cordova-plugin-geolocation@^4.0.1" via npm
Installing "cordova-plugin-geolocation" at "4.0.1" for android
Android Studio project detected
Android Studio project detected
--------------------------------------------------------------------------------
COMPILE OUTPUT
--------------------------------------------------------------------------------
Android Studio project detected
studio
:wrapper
BUILD SUCCESSFUL in 1s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.1/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
Exception while marshalling /opt/android-sdk/extras/google/google_play_services/package.xml. Probably the SDK is read-only
Exception while marshalling /opt/android-sdk/platforms/android-P/package.xml. Probably the SDK is read-only
Exception while marshalling /opt/android-sdk/extras/google/google_play_services/package.xml. Probably the SDK is read-only
Exception while marshalling /opt/android-sdk/platforms/android-P/package.xml. Probably the SDK is read-only
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
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_7zfqg1pd7tgtm45aj72g101cd.run(/app/build.gradle:145)
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugAidl
:CordovaLib:compileDebugRenderscript
:CordovaLib:checkDebugManifest
:CordovaLib:generateDebugBuildConfig
:CordovaLib:prepareLintJar
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:platformAttrExtractor
:CordovaLib:processDebugManifest
:CordovaLib:javaPreCompileDebug
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:compileDebugJavaWithJavacNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:processDebugJavaRes NO-SOURCE
:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
:app:preBuild UP-TO-DATE
:app:preDebugBuild
:app:compileDebugAidl
:CordovaLib:packageDebugRenderscript NO-SOURCE
:app:compileDebugRenderscript
:app:checkDebugManifest
:app:generateDebugBuildConfig
:app:prepareLintJar
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
:app:createDebugCompatibleScreenManifests
:app:processDebugManifest
:app:splitsDiscoveryTaskDebug
:app:processDebugResources
:app:generateDebugSources
:app:javaPreCompileDebug
:app:compileDebugJavaWithJavac/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:17: error: cannot find symbol
import com.google.android.gms.maps.model.StreetViewSource;
^
symbol: class StreetViewSource
location: package com.google.android.gms.maps.model
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:87: error: cannot find symbol
StreetViewSource source = "OUTDOOR".equals(cameraOpts.getString("source")) ?
^
symbol: class StreetViewSource
location: class PluginStreetViewPanorama
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:88: error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
location: class PluginStreetViewPanorama
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:88: error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
location: class PluginStreetViewPanorama
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:280: error: cannot find symbol
StreetViewSource source = "OUTDOOR".equals(cameraOpts.getString("source")) ?
^
symbol: class StreetViewSource
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:281: error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:281: error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
7 errors
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app: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.
* Get more help at https://help.gradle.org
BUILD FAILED in 15s
27 actionable tasks: 27 executed
Error: /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.
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:17: error: cannot find symbol
import com.google.android.gms.maps.model.StreetViewSource;
^
symbol: class StreetViewSource
location: package com.google.android.gms.maps.model
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:87: error: cannot find symbol
StreetViewSource source = "OUTDOOR".equals(cameraOpts.getString("source")) ?
^
symbol: class StreetViewSource
location: class PluginStreetViewPanorama
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:88: error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
location: class PluginStreetViewPanorama
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:88: error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
location: class PluginStreetViewPanorama
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:280: error: cannot find symbol
StreetViewSource source = "OUTDOOR".equals(cameraOpts.getString("source")) ?
^
symbol: class StreetViewSource
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:281: error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:281: error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
7 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app: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.
* Get more help at https://help.gradle.org
BUILD FAILED in 15s
at ChildProcess.whenDone (/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
It is a problem with Play Services dependency I believe
On Thu, May 17, 2018 at 4:18 PM Olvrdu44 notifications@github.com wrote:
Build Date: 2018-05-16 22:46:56 +0000 PREPARE OUTPUT Android Studio
project detected
Generating platform-specific config.xml from defaults for android at
/app/src/main/res/xml/config.xml
Merging project's config.xml into platform-specific android config.xml
Merging and updating files from [www, ../platform_www] to
../app/src/main/assets/www
mkdir ../app/src/main/assets/www/cordova-js-src
mkdir ../app/src/main/assets/www/cordova-js-src/android
copy ../platform_www/cordova-js-src/android/nativeapiprovider.js
../app/src/main/assets/www/cordova-js-src/android/nativeapiprovider.js (new
file)
copy ../platform_www/cordova-js-src/android/promptbasednativeapi.js
../app/src/main/assets/www/cordova-js-src/android/promptbasednativeapi.js
(new file)
copy ../platform_www/cordova-js-src/exec.js
../app/src/main/assets/www/cordova-js-src/exec.js (new file)
copy ../platform_www/cordova-js-src/platform.js
../app/src/main/assets/www/cordova-js-src/platform.js (new file)
mkdir ../app/src/main/assets/www/cordova-js-src/plugin
mkdir ../app/src/main/assets/www/cordova-js-src/plugin/android
copy ../platform_www/cordova-js-src/plugin/android/app.js
../app/src/main/assets/www/cordova-js-src/plugin/android/app.js (new file)
copy ../platform_www/cordova.js ../app/src/main/assets/www/cordova.js
(updated file)
copy www/coursier.html ../app/src/main/assets/www/coursier.html (new file)
copy www/css/desktop.ini ../app/src/main/assets/www/css/desktop.ini (new
file)
copy www/css/index.css ../app/src/main/assets/www/css/index.css (updated
file)
copy www/desktop.ini ../app/src/main/assets/www/desktop.ini (new file)
copy www/img/Thumbs.db ../app/src/main/assets/www/img/Thumbs.db (new file)
copy www/img/check_radio_sheet.png
../app/src/main/assets/www/img/check_radio_sheet.png (new file)
copy www/img/check_radio_sheet_2.png
../app/src/main/assets/www/img/check_radio_sheet_2.png (new file)
delete ../app/src/main/assets/www/img/cordova.png (no source)
copy www/img/desktop.ini ../app/src/main/assets/www/img/desktop.ini (new
file)
copy www/img/logo.jpg ../app/src/main/assets/www/img/logo.jpg (new file)
delete ../app/src/main/assets/www/img/logo.png (no source)
copy www/img/photoProfil.png
../app/src/main/assets/www/img/photoProfil.png (new file)
copy www/img/pointer_10.png ../app/src/main/assets/www/img/pointer_10.png
(new file)
copy www/img/pointer_150.png
../app/src/main/assets/www/img/pointer_150.png (new file)
copy www/img/pointer_7.png ../app/src/main/assets/www/img/pointer_7.png
(new file)
copy www/img/pointer_800.png
../app/src/main/assets/www/img/pointer_800.png (new file)
copy www/img/pointer_livreur.png
../app/src/main/assets/www/img/pointer_livreur.png (new file)
copy www/index.html ../app/src/main/assets/www/index.html (updated file)
copy www/indexmap.html ../app/src/main/assets/www/indexmap.html (new file)
copy www/jquery.avatar.js ../app/src/main/assets/www/jquery.avatar.js (new
file)
copy www/jquery.js ../app/src/main/assets/www/jquery.js (new file)
copy www/js/desktop.ini ../app/src/main/assets/www/js/desktop.ini (new
file)
copy www/js/index.js ../app/src/main/assets/www/js/index.js (updated file)
Wrote out android application name "ColisClub" to
/app/src/main/res/values/strings.xml
android-versionCode not found in config.xml. Generating a code based on
version in config.xml (1.0.0): 10000
Wrote out Android package name "fr.rainetcom.colisclub" to
/app/src/main/java/fr/rainetcom/colisclub/ColisClub.java
Updating icons at ../app/src/main/res
copy res/icon/android/icon-72-hdpi.png
../app/src/main/res/mipmap-hdpi/icon.png (updated file)
copy res/icon/android/icon-36-ldpi.png
../app/src/main/res/mipmap-ldpi/icon.png (updated file)
copy res/icon/android/icon-48-mdpi.png
../app/src/main/res/mipmap-mdpi/icon.png (updated file)
copy res/icon/android/icon-96-xhdpi.png
../app/src/main/res/mipmap-xhdpi/icon.png (updated file)
delete ../app/src/main/res/mipmap-xxhdpi/icon.png (no source)
delete ../app/src/main/res/mipmap-xxxhdpi/icon.png (no source)
Updating splash screens at ../app/src/main/res
copy res/screen/android/screen-hdpi-landscape.png
../app/src/main/res/drawable-land-hdpi/screen.png (updated file)
copy res/screen/android/screen-ldpi-landscape.png
../app/src/main/res/drawable-land-ldpi/screen.png (updated file)
copy res/screen/android/screen-mdpi-landscape.png
../app/src/main/res/drawable-land-mdpi/screen.png (updated file)
copy res/screen/android/screen-xhdpi-landscape.png
../app/src/main/res/drawable-land-xhdpi/screen.png (updated file)
delete ../app/src/main/res/drawable-land-xxhdpi/screen.png (no source)
delete ../app/src/main/res/drawable-land-xxxhdpi/screen.png (no source)
copy res/screen/android/screen-hdpi-portrait.png
../app/src/main/res/drawable-port-hdpi/screen.png (updated file)
copy res/screen/android/screen-ldpi-portrait.png
../app/src/main/res/drawable-port-ldpi/screen.png (updated file)
copy res/screen/android/screen-mdpi-portrait.png
../app/src/main/res/drawable-port-mdpi/screen.png (updated file)
copy res/screen/android/screen-xhdpi-portrait.png
../app/src/main/res/drawable-port-xhdpi/screen.png (updated file)
delete ../app/src/main/res/drawable-port-xxhdpi/screen.png (no source)
delete ../app/src/main/res/drawable-port-xxxhdpi/screen.png (no source)
This app does not have additional resource files defined
Prepared android project successfully PLUGIN OUTPUTFetching plugin "onesignal-cordova-plugin@^2.2.2" via npm
Installing "onesignal-cordova-plugin" at "2.4.0" for android
Android Studio project detected
Subproject Path: CordovaLib
Subproject Path: app
Fetching plugin "cordova-plugin-whitelist@^1.3.3" via npm
Installing "cordova-plugin-whitelist" at "1.3.3" for android
Android Studio project detectedThis plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.Fetching plugin "cordova-plugin-media-capture@^3.0.1" via npm
Installing "cordova-plugin-media-capture" at "3.0.2" for android
Fetching plugin "cordova-plugin-file@^6.0.0" via npm
Installing "cordova-plugin-file" at "6.0.1" for android
Android Studio project detectedThe 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:"
" to config.xml in order for the application to find previously stored files.
Fetching plugin "cordova-plugin-dialogs@^2.0.1" via npm
Installing "cordova-plugin-dialogs" at "2.0.1" for android
Android Studio project detected
Fetching plugin "cordova-plugin-network-information@^2.0.1" via npm
Installing "cordova-plugin-network-information" at "2.0.1" for android
Android Studio project detected
Plugin "cordova-plugin-file" already installed on android. Making it
top-level.
Fetching plugin "cordova-plugin-camera@^4.0.2" via npm
Installing "cordova-plugin-camera" at "4.0.3" for android
Android Studio project detected
Subproject Path: CordovaLib
Subproject Path: app
Fetching plugin "cordova-plugin-file-transfer@^1.7.1" via npm
Installing "cordova-plugin-file-transfer" at "1.7.1" for android
Plugin dependency "[email protected]" already fetched, using that
version.
Dependent plugin "cordova-plugin-file" already installed on android.
Android Studio project detected
Fetching plugin "cordova-plugin-console@^1.1.0" via npm
Installing "cordova-plugin-console" at "1.1.0" for android
Android Studio project detected
Fetching plugin "cordova-plugin-inappbrowser@^2.0.2" via npm
Installing "cordova-plugin-inappbrowser" at "2.0.2" for android
Android Studio project detected
Fetching plugin "cordova-plugin-googlemaps@^2.3.1" via npm
Installing "cordova-plugin-googlemaps" at "2.3.1" for android
Android Studio project detected
Subproject Path: CordovaLib
Subproject Path: appOfficial document https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/README.mdFetching plugin "cordova-plugin-geolocation@^4.0.1" via npm
Installing "cordova-plugin-geolocation" at "4.0.1" for android
Android Studio project detected
Android Studio project detected COMPILE OUTPUTAndroid Studio project detected
studio
:wrapperBUILD SUCCESSFUL in 1s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
To honour the JVM settings for this build a new JVM will be forked. Please
consider using the daemon:
https://docs.gradle.org/4.1/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing
publishNonDefault is deprecated and has no effect anymore. All variants
are now published.
Exception while marshalling
/opt/android-sdk/extras/google/google_play_services/package.xml. Probably
the SDK is read-only
Exception while marshalling
/opt/android-sdk/platforms/android-P/package.xml. Probably the SDK is
read-only
Exception while marshalling
/opt/android-sdk/extras/google/google_play_services/package.xml. Probably
the SDK is read-only
Exception while marshalling
/opt/android-sdk/platforms/android-P/package.xml. Probably the SDK is
read-only
Configuration 'compile' in project ':app' is deprecated. Use
'implementation' instead.
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_7zfqg1pd7tgtm45aj72g101cd.run(/app/build.gradle:145)
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugAidl
:CordovaLib:compileDebugRenderscript
:CordovaLib:checkDebugManifest
:CordovaLib:generateDebugBuildConfig
:CordovaLib:prepareLintJar
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:platformAttrExtractor
:CordovaLib:processDebugManifest
:CordovaLib:javaPreCompileDebug
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:compileDebugJavaWithJavacNote: Some input files use or
override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.:CordovaLib:processDebugJavaRes NO-SOURCE
:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
:app:preBuild UP-TO-DATE
:app:preDebugBuild
:app:compileDebugAidl
:CordovaLib:packageDebugRenderscript NO-SOURCE
:app:compileDebugRenderscript
:app:checkDebugManifest
:app:generateDebugBuildConfig
:app:prepareLintJar
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
:app:createDebugCompatibleScreenManifests
:app:processDebugManifest
:app:splitsDiscoveryTaskDebug
:app:processDebugResources
:app:generateDebugSources
:app:javaPreCompileDebug
:app:compileDebugJavaWithJavac/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:17:
error: cannot find symbol
import com.google.android.gms.maps.model.StreetViewSource;
^
symbol: class StreetViewSource
location: package com.google.android.gms.maps.model
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:87:
error: cannot find symbol
StreetViewSource source = "OUTDOOR".equals(cameraOpts.getString("source"))
?
^
symbol: class StreetViewSource
location: class PluginStreetViewPanorama
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:88:
error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
location: class PluginStreetViewPanorama
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:88:
error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
location: class PluginStreetViewPanorama
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:280:
error: cannot find symbol
StreetViewSource source = "OUTDOOR".equals(cameraOpts.getString("source"))
?
^
symbol: class StreetViewSource
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:281:
error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:281:
error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
7 errors
FAILEDFAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app: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.
-Get more help at https://help.gradle.org
BUILD FAILED in 15s
27 actionable tasks: 27 executed
Error: /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.
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:17:
error: cannot find symbol
import com.google.android.gms.maps.model.StreetViewSource;
^
symbol: class StreetViewSource
location: package com.google.android.gms.maps.model
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:87:
error: cannot find symbol
StreetViewSource source = "OUTDOOR".equals(cameraOpts.getString("source"))
?
^
symbol: class StreetViewSource
location: class PluginStreetViewPanorama
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:88:
error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
location: class PluginStreetViewPanorama
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:88:
error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
location: class PluginStreetViewPanorama
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:280:
error: cannot find symbol
StreetViewSource source = "OUTDOOR".equals(cameraOpts.getString("source"))
?
^
symbol: class StreetViewSource
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:281:
error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:281:
error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
7 errorsFAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app: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.
-Get more help at https://help.gradle.org
BUILD FAILED in 15s
at ChildProcess.whenDone
(/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/2272#issuecomment-389882736,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABJzANjML57CXtrMwaotVtpXp8Qezxy0ks5tzYaqgaJpZM4UDGCg
.
@battika correct.
And this problem causes by onesignal-cordova-plugin
https://github.com/OneSignal/OneSignal-Cordova-SDK/blob/master/build-extras-onesignal.gradle#L15
Correct, all you need to do is fork OneSignal locally, change the build-extras-onesignal.gradle file and replace Firebase and Play Service versions with something supported by Google Maps like below:
// ### Google Play Services library
'com.google.android.gms': [
'version': '12.0.1'
],
// ### Google Firebase library
// Although not used by OneSignal Firebase has some dependencies on gms
// If present, ensuring they are aligned
'com.google.firebase': [
'version': '12.0.1'
],
Once done, install the OneSignal plugin from your local directory (cordova plugin install directory name)
Oh thank you very much :) indeed I take off onesignal and it works :)
but i really need onesignal to send notifications, i understand the theory of your answer but i admit not to know exactly what to do exactly to force the version
I need a create file in my project folder ? or can i make that on the config.xml ?
sorry I did not look much but I found the file .gradle ! thank you very much but it still does not work, i tried with 12.0.1 and with 15.0.1
You need to specify all 15.0.1
You can not specify different versions
i specify in 2 files :
-"platforms/android/onesignal-cordova-plugin/colisclub-build-extras-onesignal.gradle"
and in
like this
android.defaultConfig {
manifestPlaceholders = [onesignal_app_id: '', // Use from js code
onesignal_google_project_number: 'REMOTE']
}
repositories {
maven { url 'https://maven.google.com' }
}
// ## Align gms and support group versions on all dependencies
def versionGroupAligns = [
// ### Google Play Services library
'com.google.android.gms': [
'version': '15.0.1'
],
// ### Google Firebase library
// Although not used by OneSignal Firebase has some dependencies on gms
// If present, ensuring they are aligned
'com.google.firebase': [
'version': '15.0.1'
],
// ### Android Support Library
'com.android.support': [
'requiredCompileSdkVersion': 26,
'version': '26.1.+',
'omitModules': ['multidex', 'multidex-instrumentation'],
// Can't use 26 of com.android.support when compileSdkVersion 25 is set
// The following error will be thrown if there is a mismatch here.
// "No resource found that matches the given name: attr 'android:keyboardNavigationCluster'"
'versionFallback': '25.+'
]
]
def resolveVersion(def versionOverride) {
def curCompileSdkVersion = android.compileSdkVersion.split('-')[1].toInteger()
def requiredCompileSdk = versionOverride['requiredCompileSdkVersion']
if (curCompileSdkVersion < requiredCompileSdk)
return versionOverride['versionFallback']
return versionOverride['version']
}
configurations.all { resolutionStrategy {
// Enable to find root causes of any remaining version mismatches
// failOnVersionConflict()
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def versionOverride = versionGroupAligns[details.requested.group]
if (!versionOverride)
return
def omitModules = versionOverride['omitModules']
if (omitModules && omitModules.contains(details.requested.name))
return
details.useVersion(resolveVersion(versionOverride))
}
}}
and in my config xml i have :
<plugin name="cordova-plugin-googlemaps" spec="^2.3.1">
<variable name="API_KEY_FOR_ANDROID" value="MYKEY" />
<variable name="API_KEY_FOR_IOS" value="MYKEY" />
<variable name="PLAY_SERVICES_VERSION" value="15.0.1" />
<variable name="ANDROID_SUPPORT_V4_VERSION" value="27.1.1" />
<variable name="LOCATION_WHEN_IN_USE_DESCRIPTION" value="L'application colis club a besoin d'accéder au gps afin de vous géolocaliser et de vous proposer les courses autour de vous" />
<variable name="LOCATION_ALWAYS_USAGE_DESCRIPTION" value="L'application colis club a besoin d'accéder au gps afin de vous géolocaliser et de vous proposer les courses autour de vous !" />
</plugin>
<preference name="android-minSdkVersion" value="19" />
<preference name="android-targetSdkVersion" value="27" />
and it's not working :( with one-signal
and in my config xml i have :
<plugin name="cordova-plugin-googlemaps" spec="^2.3.1">
<variable name="API_KEY_FOR_ANDROID" value="APIKEY" />
<variable name="API_KEY_FOR_IOS" value="APIKEY" />
<variable name="PLAY_SERVICES_VERSION" value="15.0.1" />
<variable name="ANDROID_SUPPORT_V4_VERSION" value="27.1.1" />
<variable name="LOCATION_WHEN_IN_USE_DESCRIPTION" value="L'application colis club a besoin d'accéder au gps afin de vous géolocaliser et de vous proposer les courses autour de vous" />
<variable name="LOCATION_ALWAYS_USAGE_DESCRIPTION" value="L'application colis club a besoin d'accéder au gps afin de vous géolocaliser et de vous proposer les courses autour de vous !" />
</plugin>
it's not working :(
Do not behavior like kids.
Please explain with more details at once, such as showing error logs
Build Date: 2018-05-17 15:15:12 +0000
--------------------------------------------------------------------------------
PREPARE OUTPUT
--------------------------------------------------------------------------------
Android Studio project detected
Generating platform-specific config.xml from defaults for android at /app/src/main/res/xml/config.xml
Merging project's config.xml into platform-specific android config.xml
Merging and updating files from [www, ../platform_www] to ../app/src/main/assets/www
mkdir ../app/src/main/assets/www/cordova-js-src
mkdir ../app/src/main/assets/www/cordova-js-src/android
copy ../platform_www/cordova-js-src/android/nativeapiprovider.js ../app/src/main/assets/www/cordova-js-src/android/nativeapiprovider.js (new file)
copy ../platform_www/cordova-js-src/android/promptbasednativeapi.js ../app/src/main/assets/www/cordova-js-src/android/promptbasednativeapi.js (new file)
copy ../platform_www/cordova-js-src/exec.js ../app/src/main/assets/www/cordova-js-src/exec.js (new file)
copy ../platform_www/cordova-js-src/platform.js ../app/src/main/assets/www/cordova-js-src/platform.js (new file)
mkdir ../app/src/main/assets/www/cordova-js-src/plugin
mkdir ../app/src/main/assets/www/cordova-js-src/plugin/android
copy ../platform_www/cordova-js-src/plugin/android/app.js ../app/src/main/assets/www/cordova-js-src/plugin/android/app.js (new file)
copy ../platform_www/cordova.js ../app/src/main/assets/www/cordova.js (updated file)
copy www/coursier.html ../app/src/main/assets/www/coursier.html (new file)
copy www/css/desktop.ini ../app/src/main/assets/www/css/desktop.ini (new file)
copy www/css/index.css ../app/src/main/assets/www/css/index.css (updated file)
copy www/desktop.ini ../app/src/main/assets/www/desktop.ini (new file)
copy www/img/Thumbs.db ../app/src/main/assets/www/img/Thumbs.db (new file)
copy www/img/check_radio_sheet.png ../app/src/main/assets/www/img/check_radio_sheet.png (new file)
copy www/img/check_radio_sheet_2.png ../app/src/main/assets/www/img/check_radio_sheet_2.png (new file)
delete ../app/src/main/assets/www/img/cordova.png (no source)
copy www/img/desktop.ini ../app/src/main/assets/www/img/desktop.ini (new file)
copy www/img/logo.jpg ../app/src/main/assets/www/img/logo.jpg (new file)
delete ../app/src/main/assets/www/img/logo.png (no source)
copy www/img/photoProfil.png ../app/src/main/assets/www/img/photoProfil.png (new file)
copy www/img/pointer_10.png ../app/src/main/assets/www/img/pointer_10.png (new file)
copy www/img/pointer_150.png ../app/src/main/assets/www/img/pointer_150.png (new file)
copy www/img/pointer_7.png ../app/src/main/assets/www/img/pointer_7.png (new file)
copy www/img/pointer_800.png ../app/src/main/assets/www/img/pointer_800.png (new file)
copy www/img/pointer_livreur.png ../app/src/main/assets/www/img/pointer_livreur.png (new file)
copy www/index.html ../app/src/main/assets/www/index.html (updated file)
copy www/indexmap.html ../app/src/main/assets/www/indexmap.html (new file)
copy www/jquery.avatar.js ../app/src/main/assets/www/jquery.avatar.js (new file)
copy www/jquery.js ../app/src/main/assets/www/jquery.js (new file)
copy www/js/desktop.ini ../app/src/main/assets/www/js/desktop.ini (new file)
copy www/js/index.js ../app/src/main/assets/www/js/index.js (updated file)
Wrote out android application name "ColisClub" to /app/src/main/res/values/strings.xml
android-versionCode not found in config.xml. Generating a code based on version in config.xml (1.0.0): 10000
Wrote out Android package name "fr.rainetcom.colisclub" to /app/src/main/java/fr/rainetcom/colisclub/ColisClub.java
Updating icons at ../app/src/main/res
copy res/icon/android/icon-72-hdpi.png ../app/src/main/res/mipmap-hdpi/icon.png (updated file)
copy res/icon/android/icon-36-ldpi.png ../app/src/main/res/mipmap-ldpi/icon.png (updated file)
copy res/icon/android/icon-48-mdpi.png ../app/src/main/res/mipmap-mdpi/icon.png (updated file)
copy res/icon/android/icon-96-xhdpi.png ../app/src/main/res/mipmap-xhdpi/icon.png (updated file)
delete ../app/src/main/res/mipmap-xxhdpi/icon.png (no source)
delete ../app/src/main/res/mipmap-xxxhdpi/icon.png (no source)
Updating splash screens at ../app/src/main/res
copy res/screen/android/screen-hdpi-landscape.png ../app/src/main/res/drawable-land-hdpi/screen.png (updated file)
copy res/screen/android/screen-ldpi-landscape.png ../app/src/main/res/drawable-land-ldpi/screen.png (updated file)
copy res/screen/android/screen-mdpi-landscape.png ../app/src/main/res/drawable-land-mdpi/screen.png (updated file)
copy res/screen/android/screen-xhdpi-landscape.png ../app/src/main/res/drawable-land-xhdpi/screen.png (updated file)
delete ../app/src/main/res/drawable-land-xxhdpi/screen.png (no source)
delete ../app/src/main/res/drawable-land-xxxhdpi/screen.png (no source)
copy res/screen/android/screen-hdpi-portrait.png ../app/src/main/res/drawable-port-hdpi/screen.png (updated file)
copy res/screen/android/screen-ldpi-portrait.png ../app/src/main/res/drawable-port-ldpi/screen.png (updated file)
copy res/screen/android/screen-mdpi-portrait.png ../app/src/main/res/drawable-port-mdpi/screen.png (updated file)
copy res/screen/android/screen-xhdpi-portrait.png ../app/src/main/res/drawable-port-xhdpi/screen.png (updated file)
delete ../app/src/main/res/drawable-port-xxhdpi/screen.png (no source)
delete ../app/src/main/res/drawable-port-xxxhdpi/screen.png (no source)
This app does not have additional resource files defined
Prepared android project successfully
--------------------------------------------------------------------------------
PLUGIN OUTPUT
--------------------------------------------------------------------------------
Fetching plugin "cordova-plugin-whitelist@^1.3.3" via npm
Installing "cordova-plugin-whitelist" at "1.3.3" for android
Android Studio project detected
This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
Fetching plugin "cordova-plugin-media-capture@^3.0.1" via npm
Installing "cordova-plugin-media-capture" at "3.0.2" for android
Fetching plugin "cordova-plugin-file@^6.0.0" via npm
Installing "cordova-plugin-file" at "6.0.1" for android
Android Studio project detected
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-dialogs@^2.0.1" via npm
Installing "cordova-plugin-dialogs" at "2.0.1" for android
Android Studio project detected
Fetching plugin "cordova-plugin-network-information@^2.0.1" via npm
Installing "cordova-plugin-network-information" at "2.0.1" for android
Android Studio project detected
Plugin "cordova-plugin-file" already installed on android. Making it top-level.
Fetching plugin "cordova-plugin-camera@^4.0.2" via npm
Installing "cordova-plugin-camera" at "4.0.3" for android
Android Studio project detected
Subproject Path: CordovaLib
Subproject Path: app
Fetching plugin "cordova-plugin-file-transfer@^1.7.1" via npm
Installing "cordova-plugin-file-transfer" at "1.7.1" for android
Plugin dependency "[email protected]" already fetched, using that version.
Dependent plugin "cordova-plugin-file" already installed on android.
Android Studio project detected
Fetching plugin "cordova-plugin-console@^1.1.0" via npm
Installing "cordova-plugin-console" at "1.1.0" for android
Android Studio project detected
Fetching plugin "cordova-plugin-inappbrowser@^2.0.2" via npm
Installing "cordova-plugin-inappbrowser" at "2.0.2" for android
Android Studio project detected
Fetching plugin "cordova-plugin-googlemaps@^2.3.1" via npm
Installing "cordova-plugin-googlemaps" at "2.3.3" for android
Android Studio project detected
Subproject Path: CordovaLib
Subproject Path: app
Official document
https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.3.0/README.md
Please consider to buy a beer for us :beer:
https://github.com/mapsplugin/cordova-plugin-googlemaps#buy-us-a-beer
Fetching plugin "cordova-plugin-geolocation@^4.0.1" via npm
Installing "cordova-plugin-geolocation" at "4.0.1" for android
Android Studio project detected
Fetching plugin "onesignal-cordova-plugin@^2.4.0" via npm
Installing "onesignal-cordova-plugin" at "2.4.0" for android
Android Studio project detected
Subproject Path: CordovaLib
Subproject Path: app
Android Studio project detected
--------------------------------------------------------------------------------
COMPILE OUTPUT
--------------------------------------------------------------------------------
Android Studio project detected
studio
:wrapper
BUILD SUCCESSFUL in 2s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.1/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
Exception while marshalling /opt/android-sdk/extras/google/google_play_services/package.xml. Probably the SDK is read-only
Exception while marshalling /opt/android-sdk/platforms/android-P/package.xml. Probably the SDK is read-only
Exception while marshalling /opt/android-sdk/extras/google/google_play_services/package.xml. Probably the SDK is read-only
Exception while marshalling /opt/android-sdk/platforms/android-P/package.xml. Probably the SDK is read-only
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
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_3yvgkg4mnkvp819ywrfs8t3tr.run(/app/build.gradle:145)
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugAidl
:CordovaLib:compileDebugRenderscript
:CordovaLib:checkDebugManifest
:CordovaLib:generateDebugBuildConfig
:CordovaLib:prepareLintJar
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:platformAttrExtractor
:CordovaLib:processDebugManifest
:CordovaLib:javaPreCompileDebug
:CordovaLib:processDebugJavaRes NO-SOURCE
:app:preBuild UP-TO-DATE
:app:preDebugBuild
:app:compileDebugAidl
:CordovaLib:packageDebugRenderscript NO-SOURCE
:app:compileDebugRenderscript
:app:checkDebugManifest
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:compileDebugJavaWithJavacNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
:app:generateDebugBuildConfig
:app:prepareLintJar
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
:app:createDebugCompatibleScreenManifests
:app:processDebugManifest
:app:splitsDiscoveryTaskDebug
:app:processDebugResources
:app:generateDebugSources
:app:javaPreCompileDebug
:app:compileDebugJavaWithJavac/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:17: error: cannot find symbol
import com.google.android.gms.maps.model.StreetViewSource;
^
symbol: class StreetViewSource
location: package com.google.android.gms.maps.model
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:87: error: cannot find symbol
StreetViewSource source = "OUTDOOR".equals(cameraOpts.getString("source")) ?
^
symbol: class StreetViewSource
location: class PluginStreetViewPanorama
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:88: error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
location: class PluginStreetViewPanorama
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:88: error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
location: class PluginStreetViewPanorama
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:280: error: cannot find symbol
StreetViewSource source = "OUTDOOR".equals(cameraOpts.getString("source")) ?
^
symbol: class StreetViewSource
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:281: error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:281: error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
7 errors
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app: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.
* Get more help at https://help.gradle.org
BUILD FAILED in 13s
27 actionable tasks: 27 executed
Error: /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.
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:17: error: cannot find symbol
import com.google.android.gms.maps.model.StreetViewSource;
^
symbol: class StreetViewSource
location: package com.google.android.gms.maps.model
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:87: error: cannot find symbol
StreetViewSource source = "OUTDOOR".equals(cameraOpts.getString("source")) ?
^
symbol: class StreetViewSource
location: class PluginStreetViewPanorama
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:88: error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
location: class PluginStreetViewPanorama
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:88: error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
location: class PluginStreetViewPanorama
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:280: error: cannot find symbol
StreetViewSource source = "OUTDOOR".equals(cameraOpts.getString("source")) ?
^
symbol: class StreetViewSource
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:281: error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:281: error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
7 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app: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.
* Get more help at https://help.gradle.org
BUILD FAILED in 13s
at ChildProcess.whenDone (/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
I just show that I put everything on 15.0.1 in config.xml and in the 2 .gradle files and to know if my construction seems correct
I think local plugins folder does not work for PhoneGap.
https://github.com/Olvrdu44/Colisclub-0304/tree/master/plugins
I thought so thin, but there are no solutions to force the version via phonegapbuild you think?
Usage of PhoneGap Build is out of my coverage.
ok thanks i still found it was a cause of onesignal thanks to you thanks for your time and your quickly answer :)
<variable name="PLAY_SERVICES_VERSION" value="15.0.1" />
I tried like this :
<plugin name="onesignal-cordova-plugin" spec="^2.4.0" >
<variable name="PLAY_SERVICES_VERSION" value="15.0.1" />
</plugin>
but always error in compilation :(
No. This plugin needs 15.0.1. OneSignal? I don't know.
You need to fork the OneSignal repository, modify the files, and specify the same Google Play Services version with this plugin.
Otherwise, you just give up this plugin, and use alternative maps plugins.
@Olvrdu44 I was able to make [email protected] and [email protected] by doing following step as a temporary solution
1) Update Google Play services and Android Support Repository In Android Studio if needed!
2) ionic cordova platform remove android
3) change lines in file plugins/onesignal-cordova-plugin/build-extras-onesignal.gradle to
// ### Google Play Services library
'com.google.android.gms': [
'version': '15.0.0+'
],
// ### Google Firebase library
// Although not used by OneSignal Firebase has some dependencies on gms
// If present, ensuring they are aligned
'com.google.firebase': [
'version': '15.0.0+'
],
make sure both are version '15.0.0+'
4) ionic cordova platform add android@latest
5) build
This is just a workaround i found working for me as a temporary solution!
Cloning OneSignal and changing same file is better,.
Please wait for OneSignal to update their repository with latest Google Play service!
I think @Olvrdu44 uses PhoneGap Build (cloud build)
correct @wf9a5m75
But @Olvrdu44 should try to resolve the issue by yourself. @shajeeck and I gave hints.
ping
Hello
Thank you,
Bryan Stober
On May 21, 2018, at 12:08 PM, Masashi Katsumata notifications@github.com wrote:
ping
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
@Olvrdu44: sir why you have closed above issue this issue is still here..i got below error and sir i am using cordova plugin firebase not using Onesignal plugin sir...
PluginStreetViewPanorama.java:17: error: cannot find symbol
import com.google.android.gms.maps.model.StreetViewSource;