Can't Repro
Status Update
Comments
uc...@google.com <uc...@google.com>
ks...@google.com <ks...@google.com> #2
I notice the same issue and LogCat shows the following message:
Google Play services out of date. Requires 3159100 but found 3136130
Google Play services out of date. Requires 3159100 but found 3136130
Description
Gradle version: 3.3
Select File > Project Structure, click Project, and then locate Gradle version.
Android Plugin Version: 2.3.3
On the same page as the Gradle version, locate Android Plugin Version.
Module Compile Sdk Version: 24
From the above page, select your module in the left pane and locate Compile Sdk Version.
Module Build Tools Version: 25.0.0
From the above page, locate Build Tools Version.
Android SDK Tools version: 26.0.2
Select Tools > Android > SDK Manager, click SDK Tools, and then locate Android SDK Tools
CMake version: 3.6.4111459
==========
The gradle is ignoring the following settings
android{
...
defaultConfig{
...
externalNativeBuild {
cmake {
cppFlags "-Wreturn-type", "-Wpointer-sign", "-Wparentheses", "-fexceptions", "-O2", "-std=c++11"
cFlags "-Wreturn-type", "-Wpointer-sign", "-Wparentheses", "-fexceptions", "-O2"
}
}
}
}
=== LOG
Information:Gradle tasks [:ModuleName:generateDebugSources, :ModuleName:generateDebugAndroidTestSources, :ModuleName:mockableAndroidJar, :ModuleName:prepareDebugUnitTestDependencies, :ModuleName:compileDebugSources, :ModuleName:compileDebugAndroidTestSources, :ModuleName:compileDebugUnitTestSources]
/ ... myfilepath ... mycppfile.cpp
Error:(52, 4) error: non-void function 'getJavaFunc' should return a value [-Wreturn-type]
Warning:(114, 50) warning: passing 'unsigned char *' to parameter of type 'const jbyte *' (aka 'const signed char *') converts between pointers to integer types with different sign [-Wpointer-sign]
Warning:(210, 18) warning: initializing 'unsigned char *' with an expression of type 'jbyte *' (aka 'signed char *') converts between pointers to integer types with different sign [-Wpo
...
Warning:(1271, 2) warning: 'register' storage class specifier is deprecated and incompatible with C++1z [-Wdeprecated-register]
...
Warning:(2240, 10) warning: using the result of an assignment as a condition without parentheses [-Wparentheses]