android studio problem

1.  About "minSdk>deviceSdk" solution

--Click on build.gradle, change minSdkVersion to 16, then Sync Now, and then it succeeded.


2. How to introduce the so library.

- See http://blog.csdn.net/wulianghuan/article/details/44567001 for details, create a jniLibs folder under the main folder of the corresponding module, and then put the so dynamic library of the corresponding platform in it. The reason is in the previous There are instructions in the connection.


3. Where is the jar package downloaded by gradle.

- Mac system is downloaded by default to: /Users/(user name)/.gradle/caches/modules-2/files-2.1
Windows system is downloaded by default to: C:\Users\(user name)\.gradle\caches\modules -2\files-2.1



4. Error: Plugin with id'me.tatarka.retrolambda' not found.


- Solution: Because when using lambda expressions, you need to add
apply plugin:'me.tatarka.retrolambda to the outermost layer in the module's build.gradle 'You  
also need to add the
classpath'me.tatarka:gradle-retrolambda:3.2.0'   to the dependencies node in the project's build.gradle.
Remember to synchronize it after modifying the gradle file.


5. Error Plugin with id'com.jfrog .bintray' not found.
Plugin with id'com.github.dcendents.android-maven' not found. --The


reason for this is that the original author of the project will publish the project to the maven central warehouse, so add it in gradle Related Maven release tasks. And we can't connect to the maven repository. To solve this problem, we only need to
find the build.gradle file of the Module, delete the original author’s configuration of the maven repository, and keep only:
apply plugin:'com.android.library'


android {     ..... } dependices(){     ....










Guess you like

Origin blog.csdn.net/u012049463/article/details/54586067