Picasso failed to load images in android kitkat - android

I'm using Picasso to download images I get from a web service that I display in a listview.
It works fine on devices running above kitkat 5+.
In kitkat it fails to load some images.
My config is set like below
android {
compileSdkVersion 24
buildToolsVersion '24.0.0'
defaultConfig {
applicationId ""
minSdkVersion 17
targetSdkVersion 24
}
}
dependencies {
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:design:24.0.0'
}
I'm calling Picasso in my listAdapter
Picasso.with(main)
.load(main.articles.get(position).image)
.into(holder.image);
My layout
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="#fff"
>
<ImageView
android:id="#+id/articleimage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="8dp"
android:paddingBottom="5dp"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:layout_alignParentTop="true"
/>
<TextView
android:id="#+id/categoryname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="12dp"
android:textSize="26dp"
android:layout_below="#id/articleimage"
android:layout_alignParentStart="true"
android:layout_marginTop="280dp"
android:layout_alignParentTop="true"
android:textColor="#ff48b0"
android:background="#FFFFFF"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:textStyle="bold"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="#+id/title"
android:gravity="center_vertical"
android:paddingStart="10dp"
android:paddingBottom="5dp"
android:clickable="false"
android:textColor="#3D3838"
android:textStyle="bold"
android:textSize="33dp"
android:focusable="false"
android:layout_below="#id/articleimage"
android:layout_marginTop="8dp"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="122dp"
android:id="#+id/excerpt"
android:gravity="center_vertical"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:textSize="26dp"
android:lineSpacingExtra="8dp"
android:textColor="#4c4d4e"
android:layout_below="#id/title"
/>
</RelativeLayout>
my logs
Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
08-11 06:30:19.406 28898-28898/com.s W/System.err: com.squareup.picasso.Downloader$ResponseException: 404 Not Found
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.UrlConnectionDownloader.load(UrlConnectionDownloader.java:96)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.NetworkRequestHandler.load(NetworkRequestHandler.java:47)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:206)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:159)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.lang.Thread.run(Thread.java:841)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:411)
"Picasso-/wp-content/uploads/Vous-consommez-chaque-jour-cet-aliment-qui-endommage-votre-cerveau-et-votre-foie.jpg" prio=5 tid=613 RUNNABLE
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: | group="main" sCount=0 dsCount=0 obj=0xb20862a8 self=0xb98f6fd0
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: | sysTid=18174 nice=10 sched=3/0 cgrp=[fopen-error:2] handle=-1186417376
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: | state=R schedstat=( 0 0 0 ) utm=2 stm=1 core=0
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:613)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:589)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at com.squareup.picasso.BitmapHunter.decodeStream(BitmapHunter.java:142)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:217)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:159)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at java.lang.Thread.run(Thread.java:841)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:411)
08-11 06:52:44.346 28898-18174/com.s D/skia: --- decoder->decode returned false
08-11 06:52:44.366 28898-28898/com.s W/System.err: java.lang.RuntimeException: ===============BEGIN PICASSO STATS ===============
08-11 06:52:44.366 28898-28898/com.s W/System.err: Memory Cache Stats
08-11 06:52:44.366 28898-28898/com.ss W/System.err: Max Cache Size: 9586980
08-11 06:52:44.366 28898-28898/com.s W/System.err: Cache Size: 0
08-11 06:52:44.366 28898-28898/com.s W/System.err: Cache % Full: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Cache Hits: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Cache Misses: 1
08-11 06:52:44.376 28898-28898/com.s W/System.err: Network Stats
08-11 06:52:44.376 28898-28898/com.s W/System.err: Download Count: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Total Download Size: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Average Download Size: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Bitmap Stats
08-11 06:52:44.376 28898-28898/com.s W/System.err: Total Bitmaps Decoded: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Total Bitmap Size: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Total Transformed Bitmaps: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Total Transformed Bitmap Size: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Average Bitmap Size: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Average Transformed Bitmap Size: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: ===============END PICASSO STATS ===============
08-11 06:52:44.376 28898-28898/com.s W/System.err: at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:180)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at java.lang.Thread.run(Thread.java:841)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:411)
08-11 06:52:44.376 28898-28898/com.s W/System.err: Caused by: java.lang.OutOfMemoryError
08-11 06:52:44.376 28898-28898/com.s W/System.err: at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:613)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:589)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at com.squareup.picasso.BitmapHunter.decodeStream(BitmapHunter.java:142)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:217)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:159)
08-11 06:52:44.376 28898-28898/com.s W/System.err: ... 6 more

Try this and print exception
Picasso.Builder builder = new Picasso.Builder(this);
builder.listener(new Picasso.Listener()
{
#Override
public void onImageLoadFailed(Picasso picasso, Uri uri, Exception exception)
{
exception.printStackTrace();
}
});
builder.build().load(URL).into(imageView);

Related

Android can't reach URL using Volley library

Hi I write my app and have many problems but this is really strange.
All connections to mysql by php was working good. Today I everything was ok but suddenly i couldn't reach URL.
Here is the logcat:
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie I/System.out: AsyncTask #8 calls detatch()
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.1.20 refused
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:248)
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:172)
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:130)
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.impl.client.DefaultRequestDirector.executeOriginal(DefaultRequestDirector.java:1337)
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:705)
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:579)
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:503)
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:481)
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at com.example.dawid.logowanie.JSONParser.makeHttpRequest(JSONParser.java:51)
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at com.example.dawid.logowanie.AddBookActivity$CreateNewProduct.doInBackground(AddBookActivity.java:197)
05-18 19:06:00.320 21093-21353/com.example.dawid.logowanie W/System.err: at com.example.dawid.logowanie.AddBookActivity$CreateNewProduct.doInBackground(AddBookActivity.java:156)
05-18 19:06:00.320 21093-21353/com.example.dawid.logowanie W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:295)
05-18 19:06:00.320 21093-21353/com.example.dawid.logowanie W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
05-18 19:06:00.320 21093-21353/com.example.dawid.logowanie W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
05-18 19:06:00.320 21093-21353/com.example.dawid.logowanie W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
05-18 19:06:00.320 21093-21353/com.example.dawid.logowanie W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
05-18 19:06:00.320 21093-21353/com.example.dawid.logowanie W/System.err: at java.lang.Thread.run(Thread.java:818)
05-18 19:06:00.320 21093-21353/com.example.dawid.logowanie W/System.err: Caused by: java.net.ConnectException: failed to connect to /192.168.1.20 (port 80): connect failed: ETIMEDOUT (Connection timed out)
05-18 19:06:00.330 21093-21353/com.example.dawid.logowanie W/System.err: at libcore.io.IoBridge.connect(IoBridge.java:124)
05-18 19:06:00.330 21093-21353/com.example.dawid.logowanie W/System.err: at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
05-18 19:06:00.330 21093-21353/com.example.dawid.logowanie W/System.err: at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:452)
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: at java.net.Socket.connect(Socket.java:884)
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:124)
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:193)
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: ... 16 more
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: Caused by: android.system.ErrnoException: connect failed: ETIMEDOUT (Connection timed out)
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: at libcore.io.Posix.connect(Native Method)
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:111)
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: at libcore.io.IoBridge.connectErrno(IoBridge.java:137)
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: at libcore.io.IoBridge.connect(IoBridge.java:122)
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: ... 21 more
In other cases pDialog shows I wait and wait and get nothing only:
05-18 19:10:05.850 27036-27036/com.example.dawid.logowanie E/RegisterActivity: Blad Rejestracji: null
05-18 19:10:05.900 27036-27036/com.example.dawid.logowanie D/ViewRootImpl: #3 mView = null
05-18 19:10:05.920 27036-27036/com.example.dawid.logowanie D/Volley: [1] Request.finish: 7625 ms: [ ] http://192.168.1.20/android_login_api/Check.php 0x676929da NORMAL 1
05-18 19:10:05.920 27036-27036/com.example.dawid.logowanie D/ViewRootImpl: #1 mView = android.widget.LinearLayout{4c07063 V.E...... ......I. 0,0-0,0 #102039d android:id/toast_layout_root}
05-18 19:10:05.930 27036-27036/com.example.dawid.logowanie E/ViewRootImpl: sendUserActionEvent() mView == null
Like I said earlier everything was working fine but suddenly stopped. I restarted my phone many times, I change phone and nothing. I did Invalidate Caches/Restart but still have the problem.
Solved! It was because of my home wifi network. I turned on hotspot on another phone and connect my laptop and phone to test and worked. I still don't understand how earlier everything was working on my home wifi and suddenly stopped.
Someone know how is it possible?

can't load images from url with Picasso

i'm using Picasso to download images into a listview in my android app.
it's working like a charm except when running on Kitkat environment.
My layout
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<ImageView
android:id="#+id/articleimage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="8dp"
android:paddingBottom="5dp"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:layout_alignParentTop="true"
/>
</RelativeLayout>
My logs
08-11 06:30:19.406 28898-28898/com.s W/System.err: com.squareup.picasso.Downloader$ResponseException: 404 Not Found
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.UrlConnectionDownloader.load(UrlConnectionDownloader.java:96)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.NetworkRequestHandler.load(NetworkRequestHandler.java:47)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:206)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:159)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.lang.Thread.run(Thread.java:841)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:411)
my config
compileSdkVersion 23
buildToolsVersion '23.0.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:appcompat-v7:23.0.0'
compile 'com.android.support:design:23.0.0'
using ImageLoader i get an error in downloading the images
http://url/uploads/Vous-êtes-cerveau-droit-ou-cerveau-gauche-300x160.jpg
08-15 10:05:09.042 1915-2474/com.s W/System.err: java.io.FileNotFoundException: http://url/uploads/Vous-êtes-cerveau-droit-ou-cerveau-gauche-300x160.jpg
08-15 10:05:09.042 1915-2474/com.s W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:186)
08-15 10:05:09.042 1915-2474/com.s W/System.err: at java.net.URL.openStream(URL.java:470)
08-15 10:05:09.042 1915-2474/com.s W/System.err: at com.s.ArticleActivity$DownloadImageTask.doInBackground(ArticleActivity.java:446)
08-15 10:05:09.042 1915-2474/com.s W/System.err: at com.s.ArticleActivity$DownloadImageTask.doInBackground(ArticleActivity.java:436)
08-15 10:05:09.042 1915-2474/com.s W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:288)
08-15 10:05:09.042 1915-2474/com.s W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
08-15 10:05:09.042 1915-2474/com.s W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
08-15 10:05:09.042 1915-2474/com.s W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
08-15 10:05:09.042 1915-2474/com.s W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
08-15 10:05:09.042 1915-2474/com.s W/System.err: at java.lang.Thread.run(Thread.java:841)

HERE SDK offline navigation is not working

The scenario here is I am connected to a wifi and my app is calculating the route. It should still work since this supports offline navigation. There should be a way to force the SDK to work offline even if it is online. Thanks!
Here's the logs I got.
Application started.
03-10 10:17:43.185 32527-5764/global.Here.Map.Service.v2 D/NetworkSSLContextFactory: NetworkSSLContextFactory created successfully
03-10 10:17:43.185 32527-5764/global.Here.Map.Service.v2 D/NetworkSSLContextFactory: generateSSlContext BEGIN
03-10 10:17:43.260 32527-5764/global.Here.Map.Service.v2 D/NetworkSSLContextFactory: The number of files 164 found in /storage/emulated/0/.here-maps/certs/
03-10 10:17:43.767 32527-5764/global.Here.Map.Service.v2 D/NetworkSSLContextFactory: The number of valid certificates 164
03-10 10:17:43.806 32527-5764/global.Here.Map.Service.v2 D/NetworkSSLContextFactory: generateSSlContext END javax.net.ssl.SSLContext#25ec2d22
03-10 10:17:43.809 32527-5764/global.Here.Map.Service.v2 D/libc-netbsd: [getaddrinfo]: hostname=xxxxx; servname=(null); cache_mode=(null), netid=0; mark=0
03-10 10:17:43.809 32527-5764/global.Here.Map.Service.v2 D/libc: getaddrinfo called from pid =32527
03-10 10:17:43.809 32527-5764/global.Here.Map.Service.v2 D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=xxxxx; ai_flags=4; ai_family=0
03-10 10:17:43.809 32527-5764/global.Here.Map.Service.v2 D/libc-netbsd: [getaddrinfo]: hostname=xxxxx; servname=(null); cache_mode=(null), netid=0; mark=0
03-10 10:17:43.809 32527-5764/global.Here.Map.Service.v2 D/libc: getaddrinfo called from pid =32527
03-10 10:17:43.809 32527-5764/global.Here.Map.Service.v2 D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=xxxxx; ai_flags=1024; ai_family=0
03-10 10:17:46.815 32527-5764/global.Here.Map.Service.v2 E/NetworkProtocol: NetworkProtocol::GetTask::run exception: java.net.UnknownHostException: Unable to resolve host "version.hybrid.api.here.com": Unknown error
03-10 10:17:46.815 32527-5764/global.Here.Map.Service.v2 W/System.err: java.net.UnknownHostException: Unable to resolve host "version.hybrid.api.here.com": Unknown error
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:482)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at java.net.InetAddress.getAllByNameImpl(InetAddress.java:255)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at java.net.InetAddress.getAllByName(InetAddress.java:218)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.HostResolver$1.getAllByName(HostResolver.java:29)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:232)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:124)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:303)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:242)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:397)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:347)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:515)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
03-10 10:17:46.818 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25)
03-10 10:17:46.818 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.here.hype.NetworkProtocol$GetTask.run(NetworkProtocol.java:221)
03-10 10:17:46.818 32527-5764/global.Here.Map.Service.v2 W/System.err: at java.lang.Thread.run(Thread.java:818)
03-10 10:17:46.818 32527-5764/global.Here.Map.Service.v2 W/System.err: Caused by: android.system.GaiException: android_getaddrinfo failed: GAI_ error 401 (Unknown error)
03-10 10:17:46.818 32527-5764/global.Here.Map.Service.v2 W/System.err: at libcore.io.Posix.android_getaddrinfo(Native Method)
03-10 10:17:46.818 32527-5764/global.Here.Map.Service.v2 W/System.err: at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:55)
03-10 10:17:46.818 32527-5764/global.Here.Map.Service.v2 W/System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:446)
03-10 10:17:46.818 32527-5764/global.Here.Map.Service.v2 W/System.err: ... 14 more
Calculate route executed
03-10 10:21:06.554 32455-12106/com.maps.plot D/NetworkSSLContextFactory: NetworkSSLContextFactory created successfully
03-10 10:21:06.554 32455-12106/com.maps.plot D/NetworkSSLContextFactory: generateSSlContext BEGIN
03-10 10:21:06.557 32455-32455/com.maps.plot I/System.out: Route calculation progress:3%
03-10 10:21:06.630 32455-12106/com.maps.plot D/NetworkSSLContextFactory: The number of files 164 found in /storage/emulated/0/.here-maps/certs/
03-10 10:21:06.638 32455-32455/com.maps.plot I/System.out: Route calculation progress:6%
03-10 10:21:06.707 32455-32455/com.maps.plot I/System.out: Route calculation progress:9%
03-10 10:21:06.755 32455-32455/com.maps.plot I/System.out: Route calculation progress:12%
03-10 10:21:06.806 32455-32455/com.maps.plot I/System.out: Route calculation progress:15%
03-10 10:21:06.881 32455-32455/com.maps.plot I/System.out: Route calculation progress:18%
03-10 10:21:06.954 32455-32455/com.maps.plot I/System.out: Route calculation progress:21%
03-10 10:21:06.969 32455-12106/com.maps.plot D/NetworkSSLContextFactory: The number of valid certificates 164
03-10 10:21:07.001 32455-12106/com.maps.plot D/NetworkSSLContextFactory: generateSSlContext END javax.net.ssl.SSLContext#35325c17
03-10 10:21:07.002 32455-12106/com.maps.plot D/libc-netbsd: [getaddrinfo]: hostname=xxxxx; servname=(null); cache_mode=(null), netid=0; mark=0
03-10 10:21:07.002 32455-12106/com.maps.plot D/libc: getaddrinfo called from pid =32455
03-10 10:21:07.002 32455-12106/com.maps.plot D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=xxxxx; ai_flags=4; ai_family=0
03-10 10:21:07.002 32455-12106/com.maps.plot D/libc-netbsd: [getaddrinfo]: hostname=xxxxx; servname=(null); cache_mode=(null), netid=0; mark=0
03-10 10:21:07.002 32455-12106/com.maps.plot D/libc: getaddrinfo called from pid =32455
03-10 10:21:07.002 32455-12106/com.maps.plot D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=xxxxx; ai_flags=1024; ai_family=0
03-10 10:21:07.003 32455-12106/com.maps.plot D/libc: remote DNS query failed we don't need to try local DNS query result_code =401
03-10 10:21:07.003 32455-12106/com.maps.plot D/libc: dnsproxy getaddrinfo returns 401
03-10 10:21:07.003 32455-12106/com.maps.plot D/libc-netbsd: [getaddrinfo]: hostname=xxxxx; servname=(null); cache_mode=(null), netid=0; mark=0
03-10 10:21:07.003 32455-12106/com.maps.plot D/libc: getaddrinfo called from pid =32455
03-10 10:21:07.003 32455-12106/com.maps.plot D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=xxxxx; ai_flags=4; ai_family=0
03-10 10:21:07.004 32455-12106/com.maps.plot D/libc-netbsd: [getaddrinfo]: hostname=xxxxx; servname=(null); cache_mode=(null), netid=0; mark=0
03-10 10:21:07.004 32455-12106/com.maps.plot D/libc: getaddrinfo called from pid =32455
03-10 10:21:07.004 32455-12106/com.maps.plot D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=xxxxx; ai_flags=1024; ai_family=0
03-10 10:21:07.005 32455-12106/com.maps.plot E/NetworkProtocol: NetworkProtocol::GetTask::run exception: java.net.UnknownHostException: Unable to resolve host "v107-61-30-8.route.hybrid.api.here.com": Unknown error
03-10 10:21:07.005 32455-12106/com.maps.plot W/System.err: java.net.UnknownHostException: Unable to resolve host "v107-61-30-8.route.hybrid.api.here.com": Unknown error
03-10 10:21:07.005 32455-12106/com.maps.plot W/System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:482)
03-10 10:21:07.005 32455-12106/com.maps.plot W/System.err: at java.net.InetAddress.getAllByNameImpl(InetAddress.java:255)
03-10 10:21:07.005 32455-12106/com.maps.plot W/System.err: at java.net.InetAddress.getAllByName(InetAddress.java:218)
03-10 10:21:07.005 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.HostResolver$1.getAllByName(HostResolver.java:29)
03-10 10:21:07.005 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:232)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:124)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:303)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:242)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:397)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:347)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:515)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at com.here.hype.NetworkProtocol$GetTask.run(NetworkProtocol.java:221)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at java.lang.Thread.run(Thread.java:818)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: Caused by: android.system.GaiException: android_getaddrinfo failed: GAI_ error 401 (Unknown error)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at libcore.io.Posix.android_getaddrinfo(Native Method)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:55)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:446)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: ... 14 more
03-10 10:21:07.024 32455-32455/com.maps.plot I/System.out: Route calculation progress:24%
03-10 10:21:07.101 32455-32455/com.maps.plot I/System.out: Route calculation progress:27%
03-10 10:21:07.104 32455-32455/com.maps.plot I/System.out: Route calculation failed: REQUEST_TIMEOUT
03-10 10:21:50.626 32455-32455/com.maps.plot I/System.out: Location changed 42.10214493:-87.8712617
I have been working for this in a week and finally got this issue fixed. So I am working under company's network and it is been very unproductive because of this.
So what I did is add a proxy server under my WiFi settings because all external network request should go through the proxy or else it will have the SSL errors.

jGit fetch error: cannot open git-upload-pack

So I'm working with legacy code in an app I'm fixing up. The code uses jGit to pull a repo on startup. During the fetch call, I'm passing in the URL which is something like:
https://thisone#git.hungry.androider.com/myrepo.git
Problem is, when I make the fetch call, I get an error saying:
cannot open git-upload-pack
I noticed a few SO answers say to use a ProxySelector, but I noticed that in the ProxySelector, the select(Uri) call is being passed the following URI:
https://thisone#git.hungry.androider.com/myrepo.git/info/refs?service=git-upload-pack
My question is, where and why is
/info/refs?service=git-upload-pack
being added to my url/uri?
And how can I overcome this error?
Below is the full stack trace:
10-14 10:45:28.469 25237-25462/com.atimi.sportsapp W/System.err: org.eclipse.jgit.api.errors.TransportException: https://fugutest#git.sports.atimi.com/ahl-hershey-bears-qa.git: cannot open git-upload-pack
10-14 10:45:28.481 25237-25462/com.atimi.sportsapp W/System.err: at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)
10-14 10:45:28.492 25237-25462/com.atimi.sportsapp W/System.err: at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:261)
10-14 10:45:28.504 25237-25462/com.atimi.sportsapp W/System.err: at com.atimi.caviar.CaviarGitRepo$UpdateRunnable.update(CaviarGitRepo.java:577)
10-14 10:45:28.515 25237-25462/com.atimi.sportsapp W/System.err: at com.atimi.caviar.CaviarGitRepo$UpdateRunnable.run(CaviarGitRepo.java:441)
10-14 10:45:28.526 25237-25462/com.atimi.sportsapp W/System.err: at java.lang.Thread.run(Thread.java:818)
10-14 10:45:28.541 25237-25462/com.atimi.sportsapp W/System.err: Caused by: org.eclipse.jgit.errors.TransportException: https://fugutest#git.sports.atimi.com/ahl-hershey-bears-qa.git: cannot open git-upload-pack
10-14 10:45:28.562 25237-25462/com.atimi.sportsapp W/System.err: at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:524)
10-14 10:45:28.571 25237-25462/com.atimi.sportsapp W/System.err: at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:309)
10-14 10:45:28.580 25237-25462/com.atimi.sportsapp W/System.err: at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
10-14 10:45:28.589 25237-25462/com.atimi.sportsapp W/System.err: at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
10-14 10:45:28.597 25237-25462/com.atimi.sportsapp W/System.err: at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138)
10-14 10:45:28.606 25237-25462/com.atimi.sportsapp W/System.err: at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
10-14 10:45:28.611 25237-25462/com.atimi.sportsapp W/System.err: ... 4 more
10-14 10:45:28.625 25237-25462/com.atimi.sportsapp W/System.err: Caused by: java.net.UnknownHostException: Unable to resolve host "/ahl-hershey-bears-qa.git/info/refs": No address associated with hostname
10-14 10:45:28.659 25237-25462/com.atimi.sportsapp W/System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:457)
10-14 10:45:28.668 25237-25462/com.atimi.sportsapp W/System.err: at java.net.InetAddress.getAllByNameImpl(InetAddress.java:252)
10-14 10:45:28.677 25237-25462/com.atimi.sportsapp W/System.err: at java.net.InetAddress.getAllByName(InetAddress.java:215)
10-14 10:45:28.686 25237-25462/com.atimi.sportsapp W/System.err: at com.android.okhttp.HostResolver$1.getAllByName(HostResolver.java:29)
10-14 10:45:28.697 25237-25462/com.atimi.sportsapp W/System.err: at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:232)
10-14 10:45:28.706 25237-25462/com.atimi.sportsapp W/System.err: at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:124)
10-14 10:45:28.715 25237-25462/com.atimi.sportsapp W/System.err: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:272)
10-14 10:45:28.724 25237-25462/com.atimi.sportsapp W/System.err: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211)
10-14 10:45:28.735 25237-25462/com.atimi.sportsapp W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382)
10-14 10:45:28.746 25237-25462/com.atimi.sportsapp W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:332)
10-14 10:45:28.757 25237-25462/com.atimi.sportsapp W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:500)
10-14 10:45:28.769 25237-25462/com.atimi.sportsapp W/System.err: at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
10-14 10:45:28.780 25237-25462/com.atimi.sportsapp W/System.err: at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25)
10-14 10:45:28.790 25237-25462/com.atimi.sportsapp W/System.err: at org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode(JDKHttpConnection.java:98)
10-14 10:45:28.799 25237-25462/com.atimi.sportsapp W/System.err: at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:168)
10-14 10:45:28.808 25237-25462/com.atimi.sportsapp W/System.err: at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:475)
10-14 10:45:28.813 25237-25462/com.atimi.sportsapp W/System.err: ... 9 more
10-14 10:45:28.830 25237-25462/com.atimi.sportsapp W/System.err: Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
10-14 10:45:28.899 25237-25462/com.atimi.sportsapp W/System.err: at libcore.io.Posix.android_getaddrinfo(Native Method)
10-14 10:45:28.909 25237-25462/com.atimi.sportsapp W/System.err: at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:55)
10-14 10:45:28.919 25237-25462/com.atimi.sportsapp W/System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:438)
10-14 10:45:28.923 25237-25462/com.atimi.sportsapp W/System.err: ... 24 more

AdMob making my app crash in release version

i just added AdMob to my app. Everything seem to work well when i debug or install release version of app (HTC m7). The problem occurs on CHUWI VX2 device (esky82_tb_cn_kk, Android 4.4). It is very strange because on this device my App works in debug mode but doesn't works in release version. I try turn of pro-gourd but it doesn't help me.
Any one have idea for that?
my manifest
instruction inside my onCreate method:
mAdView = (AdView) findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.setAdListener(new AdListener() {
#Override
public void onAdClosed() {
super.onAdClosed();
mAdView.setVisibility(View.GONE);
}
#Override
public void onAdOpened() {
super.onAdOpened();
mAdView.startAnimation(fade_in);
mAdView.setVisibility(View.VISIBLE);
}
#Override
public void onAdFailedToLoad(int errorCode) {
super.onAdFailedToLoad(errorCode);
mAdView.setVisibility(View.GONE);
}
#Override
public void onAdLoaded() {
super.onAdLoaded();
mAdView.startAnimation(fade_in);
mAdView.setVisibility(View.VISIBLE);
}
#Override
public void onAdLeftApplication() {
super.onAdLeftApplication();
mAdView.setVisibility(View.GONE);
}
});
mAdView.loadAd(adRequest);
code inside layout.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<com.google.android.gms.ads.AdView android:id="#+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
ads:adSize="SMART_BANNER"
ads:adUnitId="#string/banner_ad_unit_id"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:visibility="gone">
</com.google.android.gms.ads.AdView>
</RelativeLayout>
Crash log:
05-01 19:39:16.305 124-124/? I/SurfaceFlinger﹕ Skip composition for [Built-in Screen (type:0)] since dirtyRegion is empty
05-01 19:39:16.321 124-124/? I/SurfaceFlinger﹕ Skip composition for [Built-in Screen (type:0)] since dirtyRegion is empty
05-01 19:39:16.330 2162-2162/? D/AndroidRuntime﹕ Shutting down VM
05-01 19:39:16.330 2162-2162/? W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x41d79c98)
05-01 19:39:16.330 2162-2162/? W/dalvikvm﹕ threadid=1: uncaught exception occurred
05-01 19:39:16.331 2162-2162/? W/System.err﹕ java.lang.RuntimeException: Unable to start activity ComponentInfo{freshfrog.pytomat/freshfrog.pytomat.Main}: java.lang.NullPointerException
05-01 19:39:16.332 2162-2162/? W/System.err﹕ at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2338)
05-01 19:39:16.332 2162-2162/? W/System.err﹕ at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
05-01 19:39:16.332 2162-2162/? W/System.err﹕ at android.app.ActivityThread.access$800(ActivityThread.java:151)
05-01 19:39:16.332 2162-2162/? W/System.err﹕ at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
05-01 19:39:16.332 2162-2162/? W/System.err﹕ at android.os.Handler.dispatchMessage(Handler.java:110)
05-01 19:39:16.332 2162-2162/? W/System.err﹕ at android.os.Looper.loop(Looper.java:193)
05-01 19:39:16.333 2162-2162/? W/System.err﹕ at android.app.ActivityThread.main(ActivityThread.java:5292)
05-01 19:39:16.333 2162-2162/? W/System.err﹕ at java.lang.reflect.Method.invokeNative(Native Method)
05-01 19:39:16.333 2162-2162/? W/System.err﹕ at java.lang.reflect.Method.invoke(Method.java:515)
05-01 19:39:16.333 2162-2162/? W/System.err﹕ at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
05-01 19:39:16.333 2162-2162/? W/System.err﹕ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
05-01 19:39:16.333 2162-2162/? W/System.err﹕ at dalvik.system.NativeStart.main(Native Method)
05-01 19:39:16.334 2162-2162/? W/System.err﹕ Caused by: java.lang.NullPointerException
05-01 19:39:16.334 2162-2162/? W/System.err﹕ at freshfrog.pytomat.Main.onCreate(Main.java:450)
05-01 19:39:16.334 2162-2162/? W/System.err﹕ at android.app.Activity.performCreate(Activity.java:5264)
05-01 19:39:16.334 2162-2162/? W/System.err﹕ at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
05-01 19:39:16.334 2162-2162/? W/System.err﹕ at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2302)
05-01 19:39:16.335 2162-2162/? W/System.err﹕ ... 11 more
05-01 19:39:16.335 2162-2162/? W/dalvikvm﹕ threadid=1: calling UncaughtExceptionHandler
05-01 19:39:16.336 124-124/? I/SurfaceFlinger﹕ Skip composition for [Built-in Screen (type:0)] since dirtyRegion is empty
05-01 19:39:16.339 2162-2162/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: freshfrog.pytomat, PID: 2162
java.lang.RuntimeException: Unable to start activity ComponentInfo{freshfrog.pytomat/freshfrog.pytomat.Main}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2338)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5292)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at freshfrog.pytomat.Main.onCreate(Main.java:450)
at android.app.Activity.performCreate(Activity.java:5264)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2302)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
            at android.app.ActivityThread.access$800(ActivityThread.java:151)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
            at android.os.Handler.dispatchMessage(Handler.java:110)
            at android.os.Looper.loop(Looper.java:193)
            at android.app.ActivityThread.main(ActivityThread.java:5292)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
            at dalvik.system.NativeStart.main(Native Method)
05-01 19:39:16.341 654-669/? V/Provider/Settings﹕ from settings cache , name = dropbox:data_app_crash , value = null
05-01 19:39:16.342 654-669/? D/dalvikvm﹕ create interp thread : stack size=128KB
05-01 19:39:16.342 654-669/? D/dalvikvm﹕ create new thread
05-01 19:39:16.343 654-669/? D/dalvikvm﹕ new thread created
05-01 19:39:16.343 654-669/? D/dalvikvm﹕ update thread list
05-01 19:39:16.343 916-2188/? D/dalvikvm﹕ create interp thread : stack size=128KB
05-01 19:39:16.343 916-2188/? D/dalvikvm﹕ create new thread
05-01 19:39:16.343 916-2188/? D/dalvikvm﹕ new thread created
05-01 19:39:16.343 916-2188/? D/dalvikvm﹕ update thread list
05-01 19:39:16.343 654-2191/? D/dalvikvm﹕ threadid=82: interp stack at 0x64403000
05-01 19:39:16.343 654-2191/? D/dalvikvm﹕ threadid=82: created from interp
05-01 19:39:16.343 654-669/? D/dalvikvm﹕ start new thread
05-01 19:39:16.343 654-669/? V/Provider/Settings﹕ from settings cache , name = send_action_app_error , value = 1
05-01 19:39:16.343 654-669/? W/ActivityManager﹕ Force finishing activity freshfrog.pytomat/.Main
Logcat indicate this line (Main.java:450)
mAdView.setAdListener(new AdListener() {
what is this ?
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
what were you expecting? to hit both sides?
try this
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
and let the rest go
You are getting a NullPointerException on line 450 of Main.
Look at that line. Something there has not been initialised.
I solve my problem. This issue isn't connect with AdView. It was problem with project. I made small mistakes. I don't have this line
<?xml version="1.0" encoding="utf-8"?>
on the start of xml layout file. I don't know how it can event works.
I reboot device
I added missing line to xml
I clean project (Build > Clean Project)
I rebuild project (Build > Rebuild Project)
Then my apk starts work without progourd but crash when I enable this feature. So i find this solution
I configure progourd configuration file like this.

Categories

Resources