@kuraasu Thanks for sharing your solution
Android Studio Compiling Issues
-
Dear guys/girls,
I am new here. And I am new to android development. I hope I can find some help here as I have exhausted searching for answers on google.
I downloaded the latest Android Studio and imported the DavDroid project, I downloaded the zip files and extracted the dependencies like ical4android, cert4android etc.
I opened the Android Studio and it started running gradle build on its own and I am getting nothing on my emulator. Not sure what I am doing wrong. Any help is appreciated and I will be grateful if you can give elaborated steps for newbies like me please. Thank you.
Event log:
21-Jul-17
5:39 PM Gradle sync started
5:39 PM Gradle sync completed
5:39 PM Executing tasks: [:app:generateStandardDebugSources, :app:prepareStandardDebugUnitTestDependencies, :app:mockableAndroidJar, :app:generateStandardDebugAndroidTestSources, :cert4android:generateDebugSources, :cert4android:mockableAndroidJar, :cert4android:prepareDebugUnitTestDependencies, :cert4android:generateDebugAndroidTestSources, :dav4android:generateDebugSources, :dav4android:generateDebugAndroidTestSources, :dav4android:mockableAndroidJar, :dav4android:prepareDebugUnitTestDependencies, :ical4android:generateDebugSources, :ical4android:generateDebugAndroidTestSources, :ical4android:mockableAndroidJar, :ical4android:prepareDebugUnitTestDependencies, :vcard4android:generateDebugSources, :vcard4android:mockableAndroidJar, :vcard4android:prepareDebugUnitTestDependencies, :vcard4android:generateDebugAndroidTestSources]
5:40 PM Gradle build finished in 34s 192ms
5:42 PM Executing tasks: [:app:assembleStandardDebug]
5:43 PM Gradle build finished with 8 error(s) in 53s 886msThe errors are:
C:\Android Dev\davd2\app\src\main\java\at\bitfire\davdroid\resource\LocalTask.java
Error:(66, 20) error: populateTask(ContentValues) in LocalTask cannot override populateTask(ContentValues) in AndroidTask
overridden method does not throw RemoteExceptionC:\Android Dev\davd2\app\src\main\java\at\bitfire\davdroid\syncadapter\CalendarSyncManager.java
Error:(178, 47) error: incompatible types: HttpUrl[] cannot be converted to List<HttpUrl>
Error:(221, 27) error: cannot find symbol method fromStream(InputStream,Charset)C:\Android Dev\davd2\app\src\main\java\at\bitfire\davdroid\syncadapter\ContactsSyncManager.java
Error:(338, 50) error: incompatible types: HttpUrl[] cannot be converted to List<HttpUrl>
Error:(396, 41) error: cannot find symbol method fromStream(InputStream,Charset,Downloader)C:\Android Dev\davd2\app\src\main\java\at\bitfire\davdroid\syncadapter\TasksSyncManager.java
Error:(161, 47) error: incompatible types: HttpUrl[] cannot be converted to List<HttpUrl>
Error:(204, 25) error: cannot find symbol method fromStream(InputStream,Charset)Error:Execution failed for task ‘:app:compileStandardDebugJavaWithJavac’.
Compilation failed; see the compiler error output for details.
-
Hello,
If it’s just about compiling, have a look at https://gitlab.com/bitfireAT/davdroid/wikis/how-to-compile
-
I am not sure if there is something wrong with compiling or that I missed something compiling.
I followed your wiki under “Compile using Android Studio”.It just doesn’t work. Funny thing is it says “Gradle build finished in 3s 554ms” but when I click RUN to go emulator, it says “Gradle build finished with 8 error(s) in 6s 381ms”. Where the errors are described in my first post.
Still getting:
9:36 PM Gradle sync completed9:36 PM Executing tasks: [:app:generateStandardDebugSources, :app:generateStandardDebugAndroidTestSources, :app:prepareStandardDebugUnitTestDependencies, :app:mockableAndroidJar, :cert4android:generateDebugSources, :cert4android:generateDebugAndroidTestSources, :cert4android:mockableAndroidJar, :cert4android:prepareDebugUnitTestDependencies, :dav4android:generateDebugSources, :dav4android:generateDebugAndroidTestSources, :dav4android:mockableAndroidJar, :dav4android:prepareDebugUnitTestDependencies, :ical4android:generateDebugSources, :ical4android:mockableAndroidJar, :ical4android:prepareDebugUnitTestDependencies, :ical4android:generateDebugAndroidTestSources, :vcard4android:generateDebugSources, :vcard4android:generateDebugAndroidTestSources, :vcard4android:mockableAndroidJar, :vcard4android:prepareDebugUnitTestDependencies]
9:36 PM Gradle build finished in 3s 554ms
9:36 PM Executing tasks: [:app:assembleStandardDebug]
9:36 PM Gradle build finished with 8 error(s) in 10s 9ms
9:39 PM Executing tasks: [:app:assembleStandardDebug]
9:39 PM Gradle build finished with 8 error(s) in 6s 381ms