Merge "Update platform_apis error message" am: a7f0c39214
am: 2cfe9c9686
am: df9cd7e410
am: 8aceb7e934
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1893228 Change-Id: I84cbfab1b04c0660b3d4c3a6b227e70b290090c5
This commit is contained in:
@@ -144,14 +144,14 @@ func TestPlatformAPIs(t *testing.T) {
|
||||
}
|
||||
`)
|
||||
|
||||
testJavaError(t, "platform_apis must be true when sdk_version is empty.", `
|
||||
testJavaError(t, "This module has conflicting settings. sdk_version is empty, which means that this module is build against platform APIs. However platform_apis is not set to true", `
|
||||
android_app {
|
||||
name: "bar",
|
||||
srcs: ["b.java"],
|
||||
}
|
||||
`)
|
||||
|
||||
testJavaError(t, "platform_apis must be false when sdk_version is not empty.", `
|
||||
testJavaError(t, "This module has conflicting settings. sdk_version is not empty, which means this module cannot use platform APIs. However platform_apis is set to true.", `
|
||||
android_app {
|
||||
name: "bar",
|
||||
srcs: ["b.java"],
|
||||
|
Reference in New Issue
Block a user