Home > Mobile >  Android studio add third party controls go wrong
Android studio add third party controls go wrong

Time:10-18

I am in https://github.com/PhilJay/MPAndroidChart#gradle-setup
Add a third party controls,

CodePudding user response:

Create a new project will gradle file configuration copied to you on this project

CodePudding user response:

Add the wrong place, you should add to the corresponding moudle gradle file, added in the root directory of gradle file

CodePudding user response:


Dependencies {
Implementation fileTree (include: [' *. Jar '], dir: 'libs')
Implementation 'com. Android. Support: appcompat - v7:27.1.1'
Implementation 'com. Android. Support. The constraint, the constraint - layout: 1.1.3'
TestImplementation 'junit: junit: 4.12'
AndroidTestImplementation 'com. Android. Support. Test: runner: 1.0.2'
AndroidTestImplementation 'com. Android. Support. Test. Espresso: espresso - core: 3.0.2'}
Add in the app directory of the build

CodePudding user response:


Still wrong!!!!!!!!!!

CodePudding user response:

reference no fucker said reply: 3/f

Dependencies {
Implementation fileTree (include: [' *. Jar '], dir: 'libs')
Implementation 'com. Android. Support: appcompat - v7:27.1.1'
Implementation 'com. Android. Support. The constraint, the constraint - layout: 1.1.3'
TestImplementation 'junit: junit: 4.12'
AndroidTestImplementation 'com. Android. Support. Test: runner: 1.0.2'
AndroidTestImplementation 'com. Android. Support. Test. Espresso: espresso - core: 3.0.2'}
Add in the app directory of the build

Or make a mistake, I tried

CodePudding user response:

Implementation to compile also?

CodePudding user response:

Under their dependent packages manually add good
  • Related