A quick solution to the inexplicable lack of androidstudio r files

Today, Android studio reminds me of this...

To speed up the construction of gradle, I clicked "update"...

After that, the project became popular, all due to the lack of R documents

Under normal circumstances, when the R file is missing, we only need to use build - > clean project and build - > rebuild project to reconstruct the project, but my repeated reconstruction is useless

I wonder. After tossing for half a day, I found this error in messages:

Error message:

Error:Execution Failed for task ':ua:processDebugAndroidTestManifest'. > java.lang.RuntimeException: Manifest merger Failed : uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library [com.zhy:okhttputils:2.6.1] D:\RTDL_ project\DriverApp\ua\build\intermediates\exploded-aar\com.zhy\okhttputils\2.6.1\AndroidManifest.xml Suggestion: use tools:overrideLibrary="com.zhy.http.okhttp" to force usage

This sentence is the key: manifest merge failed: uses SDK: minsdkversion 8 cannot be smaller than version 9 declared in Library

resolvent:

Modify the Android SDK version minsdkversion to a version number greater than 8

Find the build.gradle file under the corresponding module in the project

Modify minsdkversion to 9

After modification, use build - > clean project and build - > rebuild project to reconstruct the next project

The above quick solution to the inexplicable lack of androidstudio r files is all the content shared by Xiaobian. I hope it can give you a reference and support more programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>