[JAVA] I was addicted to the API version min23 setting of registerTorchCallback

A note of what I was addicted to when using registerTorchCallback

A method that can be used only at API level 23 (Android6) or later.

Since I originally created a project that can support up to Android 5.1 (API level 22), "There is a terminal that can support the method you are trying to use and the API level that you set. Please fix it. If you're Nao, don't build it. "

When I read it again, it says, "Write the minimum API level you want to support in the AndroidManifest file, or write it in build.gradle (module: app)."

First, write the following in the manifest file.

AndroidManifest.xml


<uses-sdk minSdkVersion="23" />

The error does not go away even if I execute it. An error occurs again "Write minSdkVersion in the manifest file. After all, overwrite from the gradle file"

Say that from the beginning! So, when I checked the build.gradle (module: app), I found the following description. Was this a mess?

build.gradle(module_app)



android{
...
  defaultConfig{
      minSdkVersion 22//← Corrected to 23
...
  }
}

After the correction, the error disappeared when the item was deleted from the manifest file. However, it is compatible with Android 6 and earlier. Well for personal use.

https://developer.android.com/reference/android/hardware/camera2/CameraManager.TorchCallback.html

Recommended Posts

I was addicted to the API version min23 setting of registerTorchCallback
I was addicted to the setting of laradock + VSCode + xdebug
I was addicted to the record of the associated model
The story I was addicted to when setting up STS
A memorandum because I was addicted to the setting of the Android project of IntelliJ IDEA
I was addicted to the roll method
I was addicted to the Spring-Batch test
Memorandum: What I was addicted to when I hit the accounting freee API
A story I was addicted to when testing the API using MockMVC
Recorded because I was addicted to the standard input of the Scanner class
[CircleCI] I was addicted to the automatic test of CircleCI (rails + mysql) [Memo]
What I was addicted to when updating the PHP version of the development environment (Docker) from 7.2.11 to 7.4.x
I was addicted to the NoSuchMethodError in Cloud Endpoints
The part I was addicted to in "Introduction to Ajax in Java Web Applications" of NetBeans
What I was addicted to when introducing the JNI library
I was addicted to setting default_url_options with Rails devise introduction
I was addicted to looping the Update statement on MyBatis
I was addicted to using Java's Stream API in Scala
I was addicted to starting sbt
About the matter that I was addicted to how to use hashmap
I was addicted to rewriting to @SpringApplicationConfiguration-> @SpringBootTest
I tried to summarize the Stream API
A memo that was soberly addicted to the request of multipart / form-data
[Rails] I was addicted to the nginx settings when using Action Cable.
I was addicted to a simple test of Jedis (Java-> Redis library)
Problems I was addicted to when building the digdag environment with docker
I was addicted to scrollview because I couldn't tap the variable size UIView
I was addicted to unit testing with the buffer operator in RxJava
I was addicted to using RXTX on Sierra
I want to output the day of the week
[Rails] I tried to raise the Rails version from 5.0 to 5.2
I was addicted to installing Ruby/Tk on MacOS
I was addicted to doing onActivityResult () with DialogFragment
Try the free version of Progate [Java I]
I was addicted to not being able to connect to AWS-S3 from the Docker container
I was a little addicted to the S3 Checksum comparison, so I made a note.
I was swallowed by the darkness of the romaji, trying to convert my name to romaji
I want to separate the handling of call results according to the API caller (call trigger)
I tried to check the operation of http request (Put) with Talented API Tester
I tried to summarize the state transition of docker
05. I tried to stub the source of Spring Boot
I tried to reduce the capacity of Spring Boot
I want to know the answer of the rock-paper-scissors app
GetXxxx of ResultSet was addicted to primitive type (Java)
[Android] How to get the setting language of the terminal
How to download the old version of Apache Tomcat
I want to be aware of the contents of variables!
I want to return the scroll position of UITableView!
I want to find out which version of java the jar file I have is available
A story I was addicted to with implicit type conversion of ActiveRecord during unit testing
What I fixed when updating to Spring Boot 1.5.12 ・ What I was addicted to
I tried to summarize the basics of kotlin and java
What I was addicted to while using rspec on rails
I want to change the log output settings of UtilLoggingJdbcLogger
[Swift] I tried to implement the function of the vending machine
I want to use the Java 8 DateTime API slowly (now)
What I did in the version upgrade from Ruby 2.5.2 to 2.7.1
A story I was addicted to in Rails validation settings
I tried to summarize the basic grammar of Ruby briefly
I tried to build the environment of WSL2 + Docker + VSCode
I want to narrow down the display of docker ps