26
25

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Andoird Support Library v23入れた時にハマったポイント@AndroidStudio

Posted at
  • SDK 23にしたらビルドが失敗しまくった。
  • 色々ためしながら何とか成功までこぎつけたので、備忘録。
  • まだまだありそうなので見つかり次第追記していきます

エラーとして吐かれたもの

その1: processReleaseResourcesでこける

* What went wrong:
Execution failed for task ':share:processReleaseResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/suzuki/workspace/android/sdk/build-tools/21.1.2/aapt'' finished with non-zero exit value 1

その2: Appcompat内のstyleでparentが解決できない

Kobito.SxLQ1T.png

その3: drawer menu系のresourceが見つからない

Kobito.GBmQ7p.png

ためしたこと

  • 基本的にはcompileSdkVersion, buildToolsVersion, targetSdkVersionを合わせる様にしました

問題その1とその2への対応: build.gradle修正

  • compileSdkVersion, buildToolsVersion, targetSdkVersionを23にしました

問題その3

  • resource名の前に"design_"をつける(命名が変わったのか?)
  • 例:
before.xml
android:drawablePadding="@dimen/navigation_icon_padding"
after.xml
android:drawablePadding="@dimen/design_navigation_icon_padding"

26
25
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
26
25

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?