1. Use the example project which is an Android project using Android Gradle Plugin 3.5.0-beta02 2. Ensure the project folder path contains a printf-style encoded folder name (ie My%2FApplication) 3. Ensure the project has no local.properties file, representing a fresh version control checkout 4. Run the gradle build task (./gradlew build --stacktrace --debug) 5. Observe the "stripDebugDebugSymbols" task failing while attempting to log an info level message for the missing local.properties file
[QUIET] [system.out] Conversion = 'F' [QUIET] [system.out] format = Gradle local properties file not found at /Users/Developer/My%2FApplication/local.properties [QUIET] [system.out] args[0] = [QUIET] [system.out] stacktrace = java.util.Formatter$FormatSpecifier.conversion(Formatter.java:2691)
Variations on this include changing the project directory name to contain any valid printf-style format syntax. For example a project directory of My%2dApplication results in a MissingFormatArgumentException: Format specifier '%2d'.
Other places where logging of the project directory through could cause the same issue.
This issue has been primarily observed on a CI system where the project folder structure is based on a url encoding of the git branch name.
Expectation is that the logged file path would not be string formatted.
Issue only observed while using the Android Gradle Plugin 3.5 (Beta 1 and Beta 2)
Build: AI-191.6707.61.35.5549111, 201905092142,
AI-191.6707.61.35.5549111, JRE 1.8.0_202-release-1483-b02x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.14.3, screens 1920x1080
AS: 3.5 Beta 2; Android Gradle Plugin: 3.5.0-beta02; Gradle: 5.4.1; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
Description
1. Use the example project which is an Android project using Android Gradle Plugin 3.5.0-beta02
2. Ensure the project folder path contains a printf-style encoded folder name (ie My%2FApplication)
3. Ensure the project has no local.properties file, representing a fresh version control checkout
4. Run the gradle build task (./gradlew build --stacktrace --debug)
5. Observe the "stripDebugDebugSymbols" task failing while attempting to log an info level message for the missing local.properties file
[QUIET] [system.out] Conversion = 'F'
[QUIET] [system.out] format = Gradle local properties file not found at /Users/Developer/My%2FApplication/local.properties
[QUIET] [system.out] args[0] =
[QUIET] [system.out] stacktrace = java.util.Formatter$FormatSpecifier.conversion(Formatter.java:2691)
Variations on this include changing the project directory name to contain any valid printf-style format syntax. For example a project directory of My%2dApplication results in a MissingFormatArgumentException: Format specifier '%2d'.
Other places where logging of the project directory through could cause the same issue.
This issue has been primarily observed on a CI system where the project folder structure is based on a url encoding of the git branch name.
Expectation is that the logged file path would not be string formatted.
Issue only observed while using the Android Gradle Plugin 3.5 (Beta 1 and Beta 2)
Build: AI-191.6707.61.35.5549111, 201905092142,
AI-191.6707.61.35.5549111, JRE 1.8.0_202-release-1483-b02x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.14.3, screens 1920x1080
AS: 3.5 Beta 2; Android Gradle Plugin: 3.5.0-beta02; Gradle: 5.4.1; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)