ionic-team / ionic-native-google-maps

Google maps plugin for Ionic Native
Other
221 stars 125 forks source link

Error run/build Android. Ionic 4 Cordova 9.0 Google Native Map 2.6.4 #228

Closed LiamKarlMitchell closed 5 years ago

LiamKarlMitchell commented 5 years ago

I'm submitting a ... (check one with "x")

If you choose 'problem or bug report', please select OS: (check one with "x")

cordova information:

cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-apprate 1.4.0 "AppRate"
cordova-plugin-camera 4.0.3 "Camera"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-dialogs 2.0.1 "Notification"
cordova-plugin-firebase 2.0.5 "Google Firebase Plugin"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-globalization 1.11.0 "Globalization"
cordova-plugin-google-analytics 1.8.6 "Google Universal Analytics Plugin"
cordova-plugin-googlemaps 2.6.2 "cordova-plugin-googlemaps"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.0.1 "cordova-plugin-ionic-webview"
cordova-plugin-mauron85-background-geolocation 3.0.0-alpha.50 "CDVBackgroundGeolocation"
cordova-plugin-nativestorage 2.3.2 "NativeStorage"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.4.4 "SocialSharing"
cordova-sqlite-storage 3.2.0 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version"
es6-promise-plugin 4.2.2 "Promise"

If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly) Yes native one, it works in cordova browser.

"@ionic-native/core": "^5.0.0",
"@ionic-native/google-maps": "^5.0.0-beta.27",

Current behavior: Error building but the API key is in config.xml as a preference.

config.xml

    <plugin name="cordova-plugin-whitelist" spec="1.3.3" />
    <plugin name="cordova-plugin-statusbar" spec="2.4.2" />
    <plugin name="cordova-plugin-device" spec="2.0.2" />
    <plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
    <plugin name="cordova-plugin-ionic-webview" spec="^4.0.0" />
    <plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
    <preference name="GOOGLE_MAPS_ANDROID_API_KEY" value="MyKeyHere" />
    <preference name="GOOGLE_MAPS_IOS_API_KEY" value="MyKeyHere" />
</widget>

Expected behavior: Build and run on android. When I run ionic cordova run android

Related code, data or error log (please format your code or data):

Command finished with error code 1: platforms\android\gradlew cdvBuildDebug,-b,platforms\android\build.gradle
platforms\android\gradlew: Command failed with exit code 1 Error output:
platforms\android\app\src\main\AndroidManifest.xml:39:66-112 Error:
        Attribute meta-data#com.google.android.geo.API_KEY@value at AndroidManifest.xml:39:66-112 requires a placeholder substitution but no value for <GOOGLE_MAPS_ANDROID_API_KEY> is provided.
platforms\android\app\src\main\AndroidManifest.xml Error:
        Validation failed, exiting

Node: v12.2.0 Windows: 10 x64 bit

wf9a5m75 commented 5 years ago

Please past all build log, not only particular log.

LiamKarlMitchell commented 5 years ago
ionic : 2019-07-11T00:29:14.168Z ionic:lib Terminal info: { ci: false, shell: 'C:\\WINDOWS\\system32\\cmd.exe', tty: false, windows: true }
At line:1 char:1
+ ionic cordova run android --verbose > F:\Output.txt 2>&1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (2019-07-11T00:2...windows: true }:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

2019-07-11T00:29:14.170Z ionic:lib CLI global options: { _: [ 'cordova', 'run', 'android' ], help: null, h: null, verbose: true, quiet: null, interactive: false, color: true, confirm: 
null, json: null, project: null, '--': [] }

2019-07-11T00:29:14.366Z ionic:lib:project Project type from config: @ionic/angular (angular)

2019-07-11T00:29:14.366Z ionic:lib:project Project details: { configPath: 'F:\\dev\\mapproject\\ionic.config.json', errors: [], context: 'app', type: 'angular' }

2019-07-11T00:29:14.369Z ionic Context: { binPath: 'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\ionic\\bin\\ionic', libPath: 
'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\ionic', execPath: 'F:\\dev\\mapproject', version: '5.2.1' }

2019-07-11T00:29:14.468Z ionic:lib:integrations:cordova:config Loading Cordova Config (config.xml: 'F:\\dev\\mapproject\\config.xml', package.json: 
'F:\\dev\\mapproject\\package.json')

2019-07-11T00:29:16.603Z ionic:commands:run Native platform devices: []

2019-07-11T00:29:16.606Z ionic:lib:integrations:cordova:config Loading Cordova Config (config.xml: 'F:\\dev\\mapproject\\config.xml', package.json: 
'F:\\dev\\mapproject\\package.json')

2019-07-11T00:29:16.607Z ionic:lib:telemetry Sending telemetry for command: 'ionic cordova run' [ 'android', '--verbose', '--interactive', '--color' ]

2019-07-11T00:29:16.738Z ionic:lib:build build options: {
  '--': [],
  engine: 'cordova',
  platform: 'android',
  project: undefined,
  verbose: false,
  configuration: undefined,
  sourcemaps: undefined,
  cordovaAssets: true,
  type: 'angular'
}

2019-07-11T00:29:16.741Z ionic:lib:hooks Looking for ionic:build:before npm script.

2019-07-11T00:29:16.742Z ionic:lib:build Looking for ionic:build npm script.

> ng.cmd run app:ionic-cordova-build --platform=android

Date: 2019-07-11T00:29:31.766Z
Hash: 5173558be05320f810af
Time: 10451ms
chunk {0} 0.js, 0.js.map () 19.8 kB  [rendered]
...
chunk {wizard-wizard-module} wizard-wizard-module.js, wizard-wizard-module.js.map (wizard-wizard-module) 4.82 kB  [rendered]
2019-07-11T00:29:31.862Z ionic:lib:hooks Looking for ionic:build:after npm script.

> cordova.cmd build android --verbose
No scripts found for hook "before_build".
No scripts found for hook "before_prepare".
Checking config.xml and package.json for saved platforms that haven't been added to the project
Config.xml and package.json platforms are the same. No pkg.json modification.
Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms.
PlatformApi successfully found for platform android
Checking for saved plugins that haven't been added to the project
Checking for any plugins added to the project that have not been installed in android platform
No differences found between plugins added to project and installed in android platform. Continuing...
Generating platform-specific config.xml from defaults for android at F:\dev\mapproject\platforms\android\app\src\main\res\xml\config.xml
Merging project's config.xml into platform-specific android config.xml
[Gradle Properties] Preparing Configuration
[Gradle Properties] Appending default configuration properties
[Gradle Properties] Appending custom configuration properties
[Gradle Properties] Updating and Saving File
Merging and updating files from [www, platforms\android\platform_www] to platforms\android\app\src\main\assets\www
  copy  www\0.js platforms\android\app\src\main\assets\www\0.js (updated file)
...
  copy  www\mapproject-mapproject-module.js.map platforms\android\app\src\main\assets\www\mapproject-mapproject-module.js.map (updated file)
  copy  www\terms-terms-module.js platforms\android\app\src\main\assets\www\terms-terms-module.js (updated file)
  copy  www\terms-terms-module.js.map platforms\android\app\src\main\assets\www\terms-terms-module.js.map (updated file)
  copy  www\tutorial-tutorial-module.js platforms\android\app\src\main\assets\www\tutorial-tutorial-module.js (updated file)
  copy  www\tutorial-tutorial-module.js.map platforms\android\app\src\main\assets\www\tutorial-tutorial-module.js.map (updated file)
  copy  www\user-user-module.js platforms\android\app\src\main\assets\www\user-user-module.js (updated file)
  copy  www\user-user-module.js.map platforms\android\app\src\main\assets\www\user-user-module.js.map (updated file)
  copy  www\vendor.js platforms\android\app\src\main\assets\www\vendor.js (updated file)
  copy  www\vendor.js.map platforms\android\app\src\main\assets\www\vendor.js.map (updated file)
  copy  www\vip-vip-module.js platforms\android\app\src\main\assets\www\vip-vip-module.js (updated file)
  copy  www\vip-vip-module.js.map platforms\android\app\src\main\assets\www\vip-vip-module.js.map (updated file)
  copy  www\wizard-wizard-module.js platforms\android\app\src\main\assets\www\wizard-wizard-module.js (updated file)
  copy  www\wizard-wizard-module.js.map platforms\android\app\src\main\assets\www\wizard-wizard-module.js.map (updated file)
Wrote out android application name "MyApp" to F:\dev\mapproject\platforms\android\app\src\main\res\values\strings.xml
android-versionCode not found in config.xml. Generating a code based on version in config.xml (0.0.1): 1
Wrote out Android package name "io.ionic.starter" to F:\dev\mapproject\platforms\android\app\src\main\java\io\ionic\starter\MainActivity.java
Updating icons at platforms\android\app\src\main\res
  copy  resources/android/icon/drawable-hdpi-icon.png platforms\android\app\src\main\res\mipmap-hdpi\ic_launcher.png (updated file)
  copy  resources/android/icon/drawable-ldpi-icon.png platforms\android\app\src\main\res\mipmap-ldpi\ic_launcher.png (updated file)
  copy  resources/android/icon/drawable-mdpi-icon.png platforms\android\app\src\main\res\mipmap-mdpi\ic_launcher.png (updated file)
  copy  resources/android/icon/drawable-xhdpi-icon.png ...
This app does not have additional resource files defined
Prepared android project successfully
Executing script found in plugin cordova-plugin-firebase for hook "after_prepare": plugins\cordova-plugin-firebase\scripts\after_prepare.js
Preparing Firebase on Android
No scripts found for hook "before_compile".
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=C:\Users\Administrator\AppData\Local\Android\sdk (DEPRECATED)
Subproject Path: CordovaLib
Subproject Path: app
Running command: F:\dev\mapproject\platforms\android\gradlew cdvBuildDebug -b F:\dev\mapproject\platforms\android\build.gradle

F:\dev\mapproject>if "Windows_NT" == "Windows_NT" setlocal

F:\dev\mapproject>set DIRNAME=F:\Dev\mapproject\platforms\android\ 

F:\dev\mapproject>if "F:\Dev\mapproject\platforms\android\" == "" set DIRNAME=. 

F:\dev\mapproject>set APP_BASE_NAME=gradlew 

F:\dev\mapproject>set APP_HOME=F:\Dev\mapproject\platforms\android\ 

F:\dev\mapproject>set DEFAULT_JVM_OPTS= 

F:\dev\mapproject>if defined JAVA_HOME goto findJavaFromJavaHome 

F:\dev\mapproject>set JAVA_HOME=C:\Program Files\java\jdk1.8.0_171 

F:\dev\mapproject>set JAVA_EXE=C:\Program Files\java\jdk1.8.0_171/bin/java.exe 

F:\dev\mapproject>if exist "C:\Program Files\java\jdk1.8.0_171/bin/java.exe" goto init 

F:\dev\mapproject>if not "Windows_NT" == "Windows_NT" goto win9xME_args 

F:\dev\mapproject>set CMD_LINE_ARGS= 

F:\dev\mapproject>set _SKIP=2 

F:\dev\mapproject>if "xcdvBuildDebug" == "x" goto execute 

F:\dev\mapproject>set CMD_LINE_ARGS="cdvBuildDebug" "-b" "F:\dev\mapproject\platforms\android\build.gradle" 

F:\dev\mapproject>set CLASSPATH=F:\Dev\mapproject\platforms\android\\gradle\wrapper\gradle-wrapper.jar 

F:\dev\mapproject>"C:\Program Files\java\jdk1.8.0_171/bin/java.exe"    "-Dorg.gradle.appname=gradlew" -classpath "F:\Dev\mapproject\platforms\android\\gradle\wrapper\gradle-wrapper.jar" org.gradle.wrapper.GradleWrapperMain "cdvBuildDebug" "-b" "F:\dev\mapproject\platforms\android\build.gradle" 

> Configure project :app
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
config.xml
../config.xml
../../config.xml
../../../config.xml
preference = 10
name = ScrollEnabled, value = false
name = android-minSdkVersion, value = 19
name = BackupWebStorage, value = none
name = SplashMaintainAspectRatio, value = true
name = FadeSplashScreenDuration, value = 300
name = SplashShowOnlyFirstTime, value = false
name = SplashScreen, value = screen
name = SplashScreenDelay, value = 3000
name = GOOGLE_MAPS_ANDROID_API_KEY, value = MyKey
name = GOOGLE_MAPS_IOS_API_KEY, value = MyKey
WARNING: API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getAssemble(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
WARNING: API 'variantOutput.getProcessResources()' is obsolete and has been replaced with 'variantOutput.getProcessResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
WARNING: API 'variantOutput.getProcessManifest()' is obsolete and has been replaced with 'variantOutput.getProcessManifestProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessManifest(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
WARNING: API 'variant.getPackageApplication()' is obsolete and has been replaced with 'variant.getPackageApplicationProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getPackageApplication(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
WARNING: API 'variant.getExternalNativeBuildTasks()' is obsolete and has been replaced with 'variant.getExternalNativeBuildProviders()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getExternalNativeBuildTasks(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.

> Task :app:preBuild UP-TO-DATE
...
> Task :CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
> Task :app:javaPreCompileDebug UP-TO-DATE
> Task :app:mainApkListPersistenceDebug UP-TO-DATE
> Task :app:mergeDebugShaders UP-TO-DATE
> Task :app:compileDebugShaders UP-TO-DATE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :CordovaLib:mergeDebugShaders UP-TO-DATE
> Task :CordovaLib:compileDebugShaders UP-TO-DATE
> Task :CordovaLib:generateDebugAssets UP-TO-DATE
> Task :CordovaLib:packageDebugAssets UP-TO-DATE
> Task :app:mergeDebugAssets UP-TO-DATE
> Task :app:createDebugCompatibleScreenManifests UP-TO-DATE

> Task :app:processDebugManifest FAILED
F:\Dev\mapproject\platforms\android\app\src\main\AndroidManifest.xml:39:66-112 Error:
    Attribute meta-data#com.google.android.geo.API_KEY@value at AndroidManifest.xml:39:66-112 requires a placeholder substitution but no value for <GOOGLE_MAPS_ANDROID_API_KEY> is provided.
F:\Dev\mapproject\platforms\android\app\src\main\AndroidManifest.xml Error:
    Validation failed, exiting

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

26 actionable tasks: 1 executed, 25 up-to-date
BUILD FAILED in 21s

F:\dev\mapproject>if "1" == "0" goto mainEnd 

F:\dev\mapproject>rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 

F:\dev\mapproject>rem the _cmd.exe /c_ return code! 

F:\dev\mapproject>if not "" == "" exit 1 

F:\dev\mapproject>exit /b 1 
Command finished with error code 1: F:\dev\mapproject\platforms\android\gradlew cdvBuildDebug,-b,F:\dev\mapproject\platforms\android\build.gradle
F:\dev\mapproject\platforms\android\gradlew: Command failed with exit code 1 Error output:
F:\Dev\mapproject\platforms\android\app\src\main\AndroidManifest.xml:39:66-112 Error:
    Attribute meta-data#com.google.android.geo.API_KEY@value at AndroidManifest.xml:39:66-112 requires a placeholder substitution but no value for <GOOGLE_MAPS_ANDROID_API_KEY> is provided.
F:\Dev\mapproject\platforms\android\app\src\main\AndroidManifest.xml Error:
    Validation failed, exiting

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 21s
Error: F:\dev\mapproject\platforms\android\gradlew: Command failed with exit code 1 Error output:
F:\Dev\mapproject\platforms\android\app\src\main\AndroidManifest.xml:39:66-112 Error:
    Attribute meta-data#com.google.android.geo.API_KEY@value at AndroidManifest.xml:39:66-112 requires a placeholder substitution but no value for <GOOGLE_MAPS_ANDROID_API_KEY> is provided.
F:\Dev\mapproject\platforms\android\app\src\main\AndroidManifest.xml Error:
    Validation failed, exiting

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 21s
    at ChildProcess.whenDone (F:\dev\mapproject\node_modules\cordova-common\src\superspawn.js:125:23)
    at ChildProcess.emit (events.js:196:13)
    at ChildProcess.cp.emit (F:\dev\mapproject\node_modules\cordova-common\node_modules\cross-spawn\lib\enoent.js:34:29)
    at maybeClose (internal/child_process.js:1011:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:268:5)
[ERROR] An error occurred while running subprocess cordova.

        cordova.cmd build android --verbose exited with exit code 1.

        Re-running this command with the --verbose flag may provide more information.

2019-07-11T00:29:57.546Z ionic:utils-process onBeforeExit handler: 'process.exit' received

2019-07-11T00:29:57.546Z ionic:utils-process onBeforeExit handler: running 2 functions

2019-07-11T00:29:57.670Z ionic:utils-process error while killing process tree for 30428: Error: Command failed: taskkill /pid 30428 /T /F
ERROR: The process "30428" not found.

    at ChildProcess.exithandler (child_process.js:304:12)
    at ChildProcess.emit (events.js:196:13)
    at maybeClose (internal/child_process.js:1011:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:268:5) {
  killed: false,
  code: 128,
  signal: null,
  cmd: 'taskkill /pid 30428 /T /F'
}

2019-07-11T00:29:57.670Z ionic:utils-process onBeforeExit handler: error from function: Error: Command failed: taskkill /pid 30428 /T /F
ERROR: The process "30428" not found.

    at ChildProcess.exithandler (child_process.js:304:12)
    at ChildProcess.emit (events.js:196:13)
    at maybeClose (internal/child_process.js:1011:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:268:5) {
  killed: false,
  code: 128,
  signal: null,
  cmd: 'taskkill /pid 30428 /T /F'
}

2019-07-11T00:29:57.690Z ionic:utils-process error while killing process tree for 30320: Error: Command failed: taskkill /pid 30320 /T /F
ERROR: The process "30320" not found.

    at ChildProcess.exithandler (child_process.js:304:12)
    at ChildProcess.emit (events.js:196:13)
    at maybeClose (internal/child_process.js:1011:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:268:5) {
  killed: false,
  code: 128,
  signal: null,
  cmd: 'taskkill /pid 30320 /T /F'
}

2019-07-11T00:29:57.690Z ionic:utils-process onBeforeExit handler: error from function: Error: Command failed: taskkill /pid 30320 /T /F
ERROR: The process "30320" not found.

    at ChildProcess.exithandler (child_process.js:304:12)
    at ChildProcess.emit (events.js:196:13)
    at maybeClose (internal/child_process.js:1011:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:268:5) {
  killed: false,
  code: 128,
  signal: null,
  cmd: 'taskkill /pid 30320 /T /F'
}

2019-07-11T00:29:57.690Z ionic:utils-process processExit: exiting (exit code: 1)

Edit: Removed Keys. Sorry I thought log was too big so I only included part of it. The preference is set but Attribute meta-data#com.google.android.geo.API_KEY@value says it is not?

wf9a5m75 commented 5 years ago

Thank you, I also removed unnecessary lines. Um, it looks program works correctly.

wf9a5m75 commented 5 years ago

At least the plugin found API keys:

name = ScrollEnabled, value = false
name = android-minSdkVersion, value = 19
name = BackupWebStorage, value = none
name = SplashMaintainAspectRatio, value = true
name = FadeSplashScreenDuration, value = 300
name = SplashShowOnlyFirstTime, value = false
name = SplashScreen, value = screen
name = SplashScreenDelay, value = 3000
name = GOOGLE_MAPS_ANDROID_API_KEY, value = MyKey
name = GOOGLE_MAPS_IOS_API_KEY, value = MyKey

https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/64fff8a30a13b026526d927fb7511c76dbea64a6/src/android/frameworks/apikey.gradle#L45

wf9a5m75 commented 5 years ago

Please show me the output of $> gradle -v

LiamKarlMitchell commented 5 years ago

gradle : The term 'gradle' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.```
LiamKarlMitchell commented 5 years ago

Found it, different on windows.

F:\dev\mapproject\platforms\android> ./gradlew -v

------------------------------------------------------------
Gradle 4.10.3
------------------------------------------------------------

Build time:   2018-12-05 00:50:54 UTC
Revision:     e76905e3a1034e6f724566aeb985621347ff43bc

Kotlin DSL:   1.0-rc-6
Kotlin:       1.2.61
Groovy:       2.4.15
Ant:          Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM:          1.8.0_191 (Oracle Corporation 25.191-b12)
OS:           Windows 10 10.0 amd64
wf9a5m75 commented 5 years ago

Umm, please share your project files on GitHub repository.

LiamKarlMitchell commented 5 years ago

Thanks for your time looking into this @wf9a5m75 , I'll create a stripped down project to reproduce this and put it on github tomorrow.

LiamKarlMitchell commented 5 years ago

Weird, unable to reproduce with a new project. I'll diff it with the current project and what is different maybe some error somewhere.

Thanks.