I tried to build a demo app of Ad Serving for App developers.
I download Android studio through http://developer.android.com/sdk/index.html .
However, I got a lot error like
Error: (3,19) java: package android.app does not exist
Error: (4,18) java: package android.os does not exist
Error: (5,20) java: package android.view does not exist
Error: (6,25) java: package android.view.View does not exist
Error: (7,20) java: package android.view does not exist
Error: (8,22) java: package android.widget does not exist
.....
I use original code from http://openx.com/product/mobile-ad-serving-for-app-developers/ without doing any modifications.
I tried Android API 19 and 21 Platform through Project Structure but in vain.
It seems the solution is very simple. However, I cannot solve it until now.
Related
I am trying to use HdmiCecMessage class in my android app, so I installed this dependency in my gradlef file:
dependencies {
implementation 'androidx.hardware:hardware-hdmi:1.0.0'
}
but when I try to import:
import android.hardware.hdmi.HdmiCecMessage;
I get an error I get an error "cannot find symbol HdmiCecMessage".
I saw in google open source that it exsists:
https://android.googlesource.com/platform/frameworks/base/+/9302a73/core/java/android/hardware/hdmi/
any ideas?
thanks
I am a new developer in Android Studio,
My Problem is when building my app using Kotlin Class in MainActivity Class, the error gives me not exists.
MainActivity is Java Code.
Other Classes are some Kotlin and some Java.
The picture below shows the error:
image_url
C:\Users\ammar\AndroidStudioProjects\SPMBot\app\src\main\java\com\infinitytechno\spmbot\MainActivity.java:11: error: package com.infinitytechno.spmbot.background.services does not exist
import com.infinitytechno.spmbot.background.services.Actions;
^
package com.infinitytechno.spmbot.background.services does not exist
if com.infinitytechno.spmbot is your package name, check your project directory, make sure background and services is in the right order .
seems your project has some red error lines, fix them before build them.
I am using IntelliJ.
I have added the JAR - https://mvnrepository.com/artifact/org.glassfish.jersey.core/jersey-client/2.0-m04
To my project,
{{ import org.glassfish.jersey.client.JerseyClientBuilder; }}
despite this I still get a compile error .
Error:(3, 35) java: cannot find symbol
symbol: class JerseyClientBuilder
location: package org.glassfish.jersey.client
I did have a lot of errors due to missing JARS , but I just found them on the web and added them to the project under project structure and that sorted all the errors except for the jersey Client Builder ...
Currently i am trying to upgrade my project into the android x but before that i was done the gradle wrapper 4.10.1 and tools.build:gradle:3.2.0 but i am getting the following error and all my code in java only.
Anybody knows how will resolve these kind of issues.
> Task :app:dataBindingGenBaseClassesProjectMDebug
> Task :app:compileProjectMDebugJavaWithJavac FAILED
E:\SVN\Hindi_v_28_Final_AndroidX\BM-6.3_v28\app\build\generated\data_binding_base_class_source_out\ProjectMDebug\dataBindingGenBaseClassesProjectMDebug\out\com\ProjectMs\databinding\ActivityAddDetailPopupBinding.java:16: error: cannot find symbol
import com.ProjectMs.viewmodel.AddDetail;
^
symbol: class AddDetail
location: package com.ProjectMs.viewmodel
E:\SVN\Hindi_v_28_Final_AndroidX\BM-6.3_v28\app\build\generated\data_binding_base_class_source_out\ProjectMDebug\dataBindingGenBaseClassesProjectMDebug\out\com\ProjectMs\databinding\ActivityAddDetailPopupBinding.java:129: error: package AddDetail does not exist
protected AddDetail.AddDetailViewModel mViewModel;
^
E:\SVN\Hindi_v_28_Final_AndroidX\BM-6.3_v28\app\build\generated\data_binding_base_class_source_out\ProjectMDebug\dataBindingGenBaseClassesProjectMDebug\out\com\ProjectMs\databinding\ActivityAddDetailPopupBinding.java:183: error: package AddDetail does not exist
public abstract void setViewModel(#Nullable AddDetail.AddDetailViewModel viewModel);
In Android Plugin 3.2.0 and above, the databinding V2 is enabled by default. I guess the databinding V2 compiler treats any component that starts with an upper case letter as a class, not a package
After change the lower case its works well like "adddetail" instead of "AddDetail".
import com.ProjectMs.viewmodel.adddetail;
Thanks. Refer url
Gradle Plugin 3.2.0 with databinding, can not resolve package name
I want to use Scribe within my Codename One project.
Copied the scribe jar file into the library folder. IDE used is eclipse.
When compiling, I get below error :
[javac] D:\Vasanth\eclipse_workspace\Testing\src\com\goTime\goTimeVideo\Vimeo.java:19: error: package org.scribe.builder does not exist
[javac] import org.scribe.builder.ServiceBuilder;
[javac] ^
[javac] D:\Vasanth\eclipse_workspace\Testing\src\com\goTime\goTimeVideo\Vimeo.java:20: error: package org.scribe.builder.api does not exist
[javac] import org.scribe.builder.api.VimeoApi;
How can I get this issue fixed ?
You can't just place JAR into the classpath of Codename One: http://www.codenameone.com/3/post/2013/07/jaring-and-libraries.html
You need to use the sources or use native interfaces http://www.codenameone.com/how-do-i---access-native-device-functionality-invoke-native-interfaces.html which support embedding a platform native jar.