I just downloaded the https://github.com/baugarten/Android-Image-Edit from git hub but when i import project i have a lot of errors.i think i should import the library's but i don't know which one
these are some errors
Error:(7, 27) error: package org.apache.sanselan does not exist
Error:(60, 22) error: package com.google.ads does not exist
Error:(136, 13) error: cannot find symbol class AdView
Error:(179, 40) error: package AdSize does not exist
Error:(666, 46) error: cannot find symbol variable ExifTagConstants
The errors like "cannot find symbol" is because this class is not found on your repository. Find and add them.
The errors like "...does not exist" is because you should import these libraries into your project.
Related
New to android dev.
I want to contribute to an open-source app that I use on a day to day basis but I'm struggling to run it on an emulator on Android Studio.
I've cloned it on my machine, clicked 'import project (Gradle, Eclipse,.. ADT)', selected my folder..etc..
I've created a virtual device and when I click on the triangle button, the project doesn't appear as an app on the phone?
There are some build errors which I suspect are the source of my problems but I have no idea how to resolve them.
Error:(11, 33) java: package android.support.v4.widget does not exist
Error:(28, 13) java: cannot find symbol
symbol: class SwipeRefreshLayout
location: class it.rignanese.leo.slimfacebook.MessagesActivity
_
Error:(18, 30) java: package android.support.v4.app does not exist
Error:(19, 34) java: package android.support.v4.content does not exist
Error:(96, 44) java: cannot find symbol
symbol: variable ContextCompat
location: class it.rignanese.leo.slimfacebook.PictureActivity
Error:(102, 13) java: cannot find symbol
symbol: variable ActivityCompat
location: class it.rignanese.leo.slimfacebook.PictureActivity
_
Error:(17, 33) java: package android.support.v4.widget does not exist
Error:(46, 13) java: cannot find symbol
symbol: class SwipeRefreshLayout
location: class it.rignanese.leo.slimfacebook.MainActivity
Googling on stackoverflow suggested adding a line to the dependencies section in build.gradle, but it already contains implementation 'com.android.support:support-v4:28.0.0' so the errors shouldn't be there, right?
Appreciate any advice.
Following the install instructions via fabric and doing everything via Android Studio but I'm getting the following errors
Error:(6, 39) error: package com.crashlytics.android.answers does not exist
Error:(26, 29) error: package io.fabric.sdk.android does not exist
Error:(66, 27) error: cannot find symbol class Answers
Error:(66, 5) error: cannot find symbol variable Fabric
I got it working by following the manual installation on the Fabric website.
I picked LoginActivity template from Android Studio and started working on it. When I tried to run the project it gave me following errors:
Error:(10, 37) error: cannot find symbol class GooglePlayServicesClient
Error:(12, 35) error: cannot find symbol class PlusClient
Error:(18, 44) error: package GooglePlayServicesClient does not exist
Error:(19, 33) error: package GooglePlayServicesClient does not exist
Error:(33, 13) error: cannot find symbol class PlusClient
Error:(276, 12) error: cannot find symbol class PlusClient
Error:(75, 31) error: package PlusClient does not exist
Error:(157, 65) error: package PlusClient does not exist
Error:(236, 5) error: method does not override or implement a method from a supertype
Attached is the screen shot for my Android Studio version and SDK downloaded on my machine.
I know that I need to migrate to Google API Client.
So my questions are:
Is there any document to do the same which provides step by step guide ?
Why default template provided with Android Studio are not working ?
I am trying to build following CyanogenMod (can be found here) projects:
android_packages_apps_Contacts
android_packages_apps_ContactsCommon
android_packages_apps_Calendar
android_packages_providers_ContactsProvider
android_packages_providers_CalendarProvider
I'm using AndroidStudio. Downloaded and imported the projects.
Changing the Android SDK versions with no result.
The errors are as follows:
Error:(37, 33) java: package com.google.common.collect does not exist
Error:(23, 25) java: package com.android.vcard does not exist
Error:(134, 6) java: cannot find symbol
symbol: class VisibleForTesting
location: class com.android.contacts.common.util.SearchUtil
How can I build these projects? Do I need some other libriaries? Maybe I need to use CyanogenMod libriaries instead of Android SDK?
Here is the detailed info.
I recently started using IntelliJ to build my android application project. I imported my sherlock library as a module and added the dependency to my project. However when I try to rebuild my project to check any errors I get a lines of 10 errors like this:
Error:(3, 17) java: package org.junit does not exist
Error:(4, 24) java: package org.junit.runner does not exist
Error:(5, 23) java: package org.robolectric does not exist
Error:(7, 38) java: package org.fest.assertions.api does not exist
Error:(7, 1) java: static import only from classes and interfaces
Error:(9, 2) java: cannot find symbol
symbol: class RunWith
Error:(11, 6) java: cannot find symbol
symbol: class Test
location: class com.actionbarsherlock.internal.ResourcesCompatTest
Error:(13, 20) java: cannot find symbol
symbol: method cleanActivityName(java.lang.String,java.lang.String)
location: class com.actionbarsherlock.internal.ResourcesCompatTest
Error:(15, 20) java: cannot find symbol
symbol: method cleanActivityName(java.lang.String,java.lang.String)
location: class com.actionbarsherlock.internal.ResourcesCompatTest
Error:(17, 19) java: cannot find symbol
symbol: method cleanActivityName(java.lang.String,java.lang.String)
location: class com.actionbarsherlock.internal.ResourcesCompatTest
looks like the junit.jar is missing in your classpath. Add it and it should work.
you can check if the plugin is installed if it is. it is just matter of adding it to class path you can do it automatically by selecting the junit word and then press on the inspection left side yellow bulb choose "add junit to classpath"
Adding below line in build.gradle solved the problem...
compile 'com.android.support.test:runner:0.5'