skedgo / DateTimeRangePicker

A date time range picker for android written in Kotlin
MIT License
506 stars 76 forks source link

give gradle error #2

Closed rajam1215 closed 7 years ago

rajam1215 commented 7 years ago

Error:Failed to resolve: com.github.skedgo:activity-animations:v1.0

zakirhussain49 commented 7 years ago

Hi Rajam,

Put this

sourceSets { main.java.srcDirs += 'src/main/kotlin' }

in your app gradle .

like this

android { compileSdkVersion 25 buildToolsVersion "25.0.2" dataBinding { enabled = true } defaultConfig { applicationId "" minSdkVersion 21 targetSdkVersion 25 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } sourceSets { main.java.srcDirs += 'src/main/kotlin' } }

rajam1215 commented 7 years ago

hello sir

thanks i try this code

On Wed, Dec 21, 2016 at 4:01 PM, Zakir Hussain notifications@github.com wrote:

Hi Rajam,

Put this

sourceSets { main.java.srcDirs += 'src/main/kotlin' }

in your app gradle .

like this

android { compileSdkVersion 25 buildToolsVersion "25.0.2" dataBinding { enabled = true } defaultConfig { applicationId "" minSdkVersion 21 targetSdkVersion 25 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), ' proguard-rules.pro' } } sourceSets { main.java.srcDirs += 'src/main/kotlin' } }

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/skedgo/DateTimeRangePicker/issues/2#issuecomment-268489709, or mute the thread https://github.com/notifications/unsubscribe-auth/AP0pxMEbvh64W80Zq2qjo8aIdwTQKeDfks5rKQAIgaJpZM4LSx9U .

rajam1215 commented 7 years ago

steal problem not solve this error show Error:Failed to resolve: com.github.skedgo:activity-animations:v1.0

please give me any soultion thanks

rajam1215 commented 7 years ago

now error is solve with this sourceSets { main.java.srcDirs += 'src/main/kotlin' }

and other code is

repositories { maven { url "https://jitpack.io" } } with this code run..

after solving this issue .the recent problem is

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.a1neclick.myapplication/skedgo.datetimerangepicker.DateTimeRangePickerActivity}: java.lang.IllegalStateException: intent.extras must not be null

          Caused by: java.lang.IllegalStateException: intent.extras must not be null
                                                     at skedgo.datetimerangepicker.DateTimeRangePickerActivity.onCreate(DateTimeRangePickerActivity.kt:47)

can u give any solution

zakirhussain49 commented 7 years ago

put this repositories { jcenter() maven { url "https://jitpack.io" } }

in app gradle

problem will be solve

thuytrinh commented 7 years ago

Right, you'll need JitPack and Kotlin setup to successfully build the library project.

rajam1215 commented 7 years ago

ok, let me heck it

i put this already jcenter() maven { url "https://jitpack.io" } } Caused by: java.lang.IllegalStateException: intent.extras must not be null at skedgo.datetimerangepicker.DateTimeRangePickerActivity.onCreate(DateTimeRangePickerActivity.kt:47)

but give this error , i recheck from my end then i notify u

thuytrinh commented 7 years ago

@rajam1215 To launch DateTimeRangePickerActivity, u gotta use some newIntent()s. See https://github.com/skedgo/DateTimeRangePicker#usage.